snippet, shopping, or organic results. These elements are sorted by priority from highest to lowest.The results method returns a JSON response configured according to the parameters set in the wrapper. This allows for more flexibility in terms of what data you want to return from the API.Getting Results as JSON‚ÄãYou can customize the result types and fields you want to return in the JSON response. You can also set a maximum count for the number of top results to return.json_wrapper = DataForSeoAPIWrapper(    json_result_types=["organic", "knowledge_graph", "answer_box"],    json_result_fields=["type", "title", "description", "text"],    top_count=3,)json_wrapper.results("Bill Gates")Customizing Location and Language‚ÄãYou can specify the location and language of your search results by passing additional parameters to the API wrapper.customized_wrapper = DataForSeoAPIWrapper(    top_count=10,    json_result_types=["organic", "local_pack"],    json_result_fields=["title", "description", "type"],    params={"location_name": "Germany", "language_code": "en"},)customized_wrapper.results("coffee near me")Customizing the Search Engine‚ÄãYou can also specify the search engine you want to use.customized_wrapper = DataForSeoAPIWrapper(    top_count=10,    json_result_types=["organic", "local_pack"],    json_result_fields=["title", "description", "type"],    params={"location_name": "Germany", "language_code": "en", "se_name": "bing"},)customized_wrapper.results("coffee near me")Customizing the Search Type‚ÄãThe API wrapper also allows you to specify the type of search you want to perform. For example, you can perform a maps search.maps_search = DataForSeoAPIWrapper(    top_count=10,    json_result_fields=["title", "value", "address", "rating", "type"],    params={        "location_coordinate": "52.512,13.36,12z",        "language_code": "en",        "se_type": "maps",    },)maps_search.results("coffee near me")Integration with Langchain Agents‚ÄãYou can use the Tool class
This notebook demonstrates how to use the DataForSeo API to obtain search engine results. The DataForSeo API retrieves SERP from most popular search engines like Google, Bing, Yahoo. It also allows to get SERPs from different search engine types like Maps, News, Events, etc.
This notebook demonstrates how to use the DataForSeo API to obtain search engine results. The DataForSeo API retrieves SERP from most popular search engines like Google, Bing, Yahoo. It also allows to get SERPs from different search engine types like Maps, News, Events, etc. ->: snippet, shopping, or organic results. These elements are sorted by priority from highest to lowest.The results method returns a JSON response configured according to the parameters set in the wrapper. This allows for more flexibility in terms of what data you want to return from the API.Getting Results as JSON‚ÄãYou can customize the result types and fields you want to return in the JSON response. You can also set a maximum count for the number of top results to return.json_wrapper = DataForSeoAPIWrapper(    json_result_types=["organic", "knowledge_graph", "answer_box"],    json_result_fields=["type", "title", "description", "text"],    top_count=3,)json_wrapper.results("Bill Gates")Customizing Location and Language‚ÄãYou can specify the location and language of your search results by passing additional parameters to the API wrapper.customized_wrapper = DataForSeoAPIWrapper(    top_count=10,    json_result_types=["organic", "local_pack"],    json_result_fields=["title", "description", "type"],    params={"location_name": "Germany", "language_code": "en"},)customized_wrapper.results("coffee near me")Customizing the Search Engine‚ÄãYou can also specify the search engine you want to use.customized_wrapper = DataForSeoAPIWrapper(    top_count=10,    json_result_types=["organic", "local_pack"],    json_result_fields=["title", "description", "type"],    params={"location_name": "Germany", "language_code": "en", "se_name": "bing"},)customized_wrapper.results("coffee near me")Customizing the Search Type‚ÄãThe API wrapper also allows you to specify the type of search you want to perform. For example, you can perform a maps search.maps_search = DataForSeoAPIWrapper(    top_count=10,    json_result_fields=["title", "value", "address", "rating", "type"],    params={        "location_coordinate": "52.512,13.36,12z",        "language_code": "en",        "se_type": "maps",    },)maps_search.results("coffee near me")Integration with Langchain Agents‚ÄãYou can use the Tool class