You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c20e70c
Browse filesBrowse the repository at this point in the historyBrowse files
Integrate search data into your AI workflow, RAG / fine-tuning, or Python application using this official [SerpApi Python SDK](https://serpapi.com/integrations/python).
@@ -85,13 +85,13 @@ except serpapi.TimeoutError as e:
85
85
86
86
-**Asynchronous searches** for submitting non-blocking jobs and retrieving completed results from the Search Archive API.
87
87
-**Persistent connections and connection pooling** for reusing HTTP connections across searches.
88
-
- Search results as **Python dict**with `search`, token-efficient **Markdown** with `md`, or raw **search-engine HTML** with `html`.
88
+
- Search results as **Python dict**by default, token-efficient **Markdown** with `"output": "md"`, or raw **search-engine HTML** with `"output": "html"`.
89
89
- SDK methods for the [Image API](https://serpapi.com/image-api), [Location API](https://serpapi.com/locations-api), [Search Archive API](https://serpapi.com/search-archive-api), and [Account API](https://serpapi.com/account-api).
90
90
-**Configurable HTTP timeouts** established by setting `timeout` in the client.
91
91
92
92
## Response formats
93
93
94
-
Use `search`and default output (none) for structured results decoded into a `dict`:
94
+
Use `search`without `output` for structured results decoded into a `dict`:
95
95
96
96
```python
97
97
results = client.search({
@@ -153,7 +153,7 @@ Everything else is passed with each call:
153
153
154
154
The client has no default `engine` or `async` setting, so include them in every search.
155
155
156
-
### Search asynchronously
156
+
### Asynchronous searches
157
157
158
158
Use `{"async": True}` to submit searches without waiting for them to complete.
159
159
@@ -215,7 +215,7 @@ print("done")
215
215
This code batches searches into a [queue](https://en.wikipedia.org/wiki/Queue_(abstract_data_type)).
216
216
Each search can take a few seconds to complete, so by the time the first ID is popped, its results are usually already in the archive. Searches that are still processing are put back in the queue and checked again.
217
217
218
-
## Basic examples in Python
218
+
## Examples
219
219
220
220
Here are some examples of our most popular APIs. You can find the full list of supported engines and parameters in our [documentation](https://serpapi.com/search-engine-apis).
Scrape Baidu search results, including organic results, answer boxes, and related searches.
422
422
@@ -466,6 +466,13 @@ Documentation is [available on Read the Docs](https://serpapi-python.readthedocs
466
466
467
467
Change history is [available on GitHub](https://github.com/serpapi/serpapi-python/blob/master/HISTORY.md).
468
468
469
+
Browse the [SerpApi documentation](https://serpapi.com/search-api) to find supported APIs and parameters, or use the [Playground](https://serpapi.com/playground) to build a request and generate Python code.
0 commit comments