A Python SDK for TalorData SERP API.
Project description
TalorData Python Library
TalorData official python SDK for integrating search data into your AI workflow, RAG / fine-tuning, or Python application. TalorData helps developers and AI applications connect to real-time, structured, and reliable search data through a single SERP API. With support for Google, Bing, News, Images, Shopping, Maps, Scholar, Trends, and more, TalorData makes it easier to build AI agents, search copilots, SEO workflows, and data-driven automations powered by live search results.
Install
pip install talordata-serp
Quick Start
Sign up at TalorData and get your API key from the dashboard.
import os
from talordata_serp import Client
client = Client(api_token=os.getenv("TALORDATA_API_TOKEN"))
results = client.search(
engine="google",
q="pizza",
)
print(results["search_metadata"]["status"])
print(results["search_information"]["query_displayed"])
You can also set the token once in your shell:
export TALORDATA_API_TOKEN=your_token
Then use the top-level helper:
import talordata_serp
results = talordata_serp.search(q="pizza", engine="google")
print(results)
Examples
Runnable examples are included in the directory:examples/
-
examples/basic_search.py -
examples/search_with_url.py -
examples/html_output.py
Run one with:
python examples/basic_search.py
API Design
-
Client(api_token=...): create a reusable client. -
client.search(...): send a form-encoded request to and parse JSON automatically.POST``/serp/v1/request -
client.search_json(...): same as , but always returns a plain .search()``dict -
client.search_html(...): return raw HTML/text output. -
talordata_serp.search(...): convenience helper for one-off requests.
Example With URL
The official docs also show -based requests. The SDK supports that directly:url
from talordata_serp import Client
client = Client(api_token="your_token")
results = client.search(
url="https://www.google.com/search",
q="pizza",
json=1,
)
print(results.as_dict())
Notes
-
Auth uses the header.
Authorization: Bearer <token> -
Requests are sent as .
application/x-www-form-urlencoded -
The SDK targets the endpoint, where returns parsed JSON data, returns both and , and returns HTML.
serp/v1/request``json=1``json=2``html``json``json=3 -
json=1is the default mode used by .client.search(...) -
Boolean params are normalized to and to match common form API expectations.
"1"``"0"
Learn more
Explore TalorData SERP API integrations and use cases:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file talordata_serp-0.1.3.tar.gz.
File metadata
- Download URL: talordata_serp-0.1.3.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
291af7fa48579378de16b3a360b2a45ae4ce25d6010bff40702d40e2090df6d6
|
|
| MD5 |
931a01c5bb9b71f3201a68c72267dad1
|
|
| BLAKE2b-256 |
c196f4f92e6e81265ffbca348783705f6d0530d7a06e0477b038066c0f31bcd1
|
File details
Details for the file talordata_serp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: talordata_serp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7429093fa8a4587fe2649912e511919b855798f776722467201e875376e4dbe0
|
|
| MD5 |
8d886e513e154b9aac1b80d79496b5cb
|
|
| BLAKE2b-256 |
a93d515e58a757870954532cdf6410976cdea77094ca805e65fbf7e8f477fcb8
|