Request parameters¶
Send a POST request to https://api.zyte.com/v1/search.
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
A supported search domain, e.g. |
|
string |
Yes |
The search keywords (1-2048 characters). URL-encoded automatically. |
|
string[] |
No |
What to return: |
|
integer |
No |
Number of organic results: 10, 20, 30 … 100. Default: |
|
object |
No |
Additional engine-specific query parameters. See below. |
queryParameters¶
Controls geo-targeting and other search modifiers. Two styles are
supported via the style field.
Engine-specific style¶
Pass engine-native parameters directly. Set style to "engineSpecific".
{
"domain": "search.engine.com",
"query": "web scraping tools",
"queryParameters": {
"style": "engineSpecific",
"gl": "us",
"hl": "en"
}
}
Supported engine-specific fields:
Field |
Example |
Purpose |
|---|---|---|
|
|
Geographic limit (country) |
|
|
Interface language |
|
|
Country restrict |
|
|
Language restrict |
|
|
SafeSearch ( |
|
|
Disable autocorrect |
|
|
Encoded location for city-level targeting |
Generic style¶
A portable, engine-agnostic interface. Set style to "generic".
{
"domain": "search.engine.com",
"query": "web scraping tools",
"queryParameters": {
"style": "generic",
"geolocation": "US",
"locale": "en-US"
}
}
Field |
Example |
Maps to |
|---|---|---|
|
|
|
|
|
|
Error responses¶
HTTP |
Type |
When |
|---|---|---|
400 |
|
Domain is not supported |
400 |
|
|
401 |
|
Missing or invalid API key |
429 |
|
Rate limit exceeded |