Pagination and Filters
Web DataThe Search API provides pagination and optional filters that you can include in the search request.
You can use page to request a specific result page and use locale, engine, safe, and time_range to configure the search request.
Pagination
Use the page parameter to specify which result page to fetch.
Limits from the current OpenAPI:
- Minimum:
1 - Default:
1 - Maximum without
engine:9 - Maximum with
engine: DuckDuckGo5, Yahoo9, Naver9
For example, to request the second result page:
{
"query": "web scraping best practice",
"page": 2
}Request a Specific Page
curl -X POST "https://scraper.geonode.io/v1/search" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "web scraping best practice",
"page": 2
}'The returned page field identifies the result page that was returned.
Locale
Use the locale parameter to specify the locale for the search.
The OpenAPI accepts:
- A language code, such as
en - A language-region tag, such as
en-US all
For example:
{
"query": "web scraping",
"locale": "en-US"
}The locale parameter is optional.
Safe Search
Use the safe parameter to specify the safe-search level.
The supported values are:
| Value | Description |
|---|---|
off | Safe-search level set to off. |
moderate | Safe-search level set to moderate. |
strict | Safe-search level set to strict. |
The default value is off.
Example
{
"query": "web scraping",
"safe": "moderate"
}Only off, moderate, and strict are accepted values for this parameter.
Time Range
Use the time_range parameter to restrict results to a recency window.
The supported values are:
| Value |
|---|
day |
week |
month |
year |
For example:
{
"query": "web scraping",
"time_range": "week"
}The time_range parameter is optional.
Yahoo time_range
Yahoo accepts day, week, or month only. With engine: "yahoo", year is rejected. Without engine, Yahoo is skipped for that request when time_range is year.
Combining Parameters
You can include multiple optional parameters in the same Search request.
For example:
{
"query": "web scraping best practice",
"locale": "en-US",
"engine": "yahoo",
"page": 2,
"safe": "moderate",
"time_range": "month"
}This request uses:
localeto specifyen-USengineto pin Yahoopageto request page2safewith themoderatevaluetime_rangewith themonthvalue
locale, engine, page, safe, and time_range are optional in the SearchRequest schema.
Complete Request
The following example combines all available Search request options:
curl -X POST "https://scraper.geonode.io/v1/search" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "web scraping best practice",
"locale": "en-US",
"engine": "yahoo",
"page": 2,
"safe": "moderate",
"time_range": "month"
}'Parameter Summary
| Parameter | Required | Type | Default | Values / Limits |
|---|---|---|---|---|
query | Yes | string | — | 1–1,000 characters |
locale | No | string or null | — | Language code, language-region tag, or all |
engine | No | string or null | rotate | duckduckgo, yahoo, naver, or omit |
page | No | integer | 1 | 1–9 without pin; DuckDuckGo max 5, Yahoo/Naver max 9 when pinned |
safe | No | string | off | off, moderate, strict |
time_range | No | string or null | — | day, week, month, year (Yahoo: day/week/month only) |
These are the request parameters defined by the current SearchRequest schema.
What's Next?
You now know how to paginate Search results and configure the available Search filters.
Continue with Search Jobs to learn how to list and retrieve search jobs.
Was this page helpful?