Pagination and Filters

Web Data

The 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: DuckDuckGo 5, Yahoo 9, Naver 9

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.


Use the safe parameter to specify the safe-search level.

The supported values are:

ValueDescription
offSafe-search level set to off.
moderateSafe-search level set to moderate.
strictSafe-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:

  • locale to specify en-US
  • engine to pin Yahoo
  • page to request page 2
  • safe with the moderate value
  • time_range with the month value

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

ParameterRequiredTypeDefaultValues / Limits
queryYesstring—1–1,000 characters
localeNostring or null—Language code, language-region tag, or all
engineNostring or nullrotateduckduckgo, yahoo, naver, or omit
pageNointeger11–9 without pin; DuckDuckGo max 5, Yahoo/Naver max 9 when pinned
safeNostringoffoff, moderate, strict
time_rangeNostring 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?

On this page