@@ -134,6 +134,7 @@ def search_news(
134134 geo_lon : Optional [float ] = None ,
135135 geo_radius : Optional [float ] = None ,
136136 geo_polygon : Optional [str ] = None ,
137+ sort_by : Optional [Literal ["relevance" , "pub_date" ]] = None ,
137138 * ,
138139 http_headers : Optional [Dict ] = None ,
139140 ) -> SearchResponse :
@@ -242,6 +243,7 @@ def search_news(
242243 "geo_lon" : geo_lon ,
243244 "geo_radius" : geo_radius ,
244245 "geo_polygon" : geo_polygon ,
246+ "sort_by" : sort_by ,
245247 },
246248 headers = http_headers ,
247249 accept = [(SearchResponse .__content_type__ , 1.0 )],
@@ -612,6 +614,11 @@ async def search_news(
612614 premium : Optional [bool ] = False ,
613615 authors : Optional [List [str ]] = None ,
614616 try_cache : Optional [Literal ["1h" , "6h" , "12h" , "24h" , "3d" , "7d" ]] = None ,
617+ geo_lat : Optional [float ] = None ,
618+ geo_lon : Optional [float ] = None ,
619+ geo_radius : Optional [float ] = None ,
620+ geo_polygon : Optional [str ] = None ,
621+ sort_by : Optional [Literal ["relevance" , "pub_date" ]] = None ,
615622 * ,
616623 http_headers : Optional [Dict ] = None ,
617624 ) -> SearchResponse :
@@ -661,6 +668,11 @@ async def search_news(
661668 "premium" : premium ,
662669 "authors" : authors ,
663670 "try_cache" : try_cache ,
671+ "geo_lat" : geo_lat ,
672+ "geo_lon" : geo_lon ,
673+ "geo_radius" : geo_radius ,
674+ "geo_polygon" : geo_polygon ,
675+ "sort_by" : sort_by ,
664676 },
665677 headers = http_headers ,
666678 accept = [(SearchResponse .__content_type__ , 1.0 )],
0 commit comments