Features

A detailed overview of the Gemini Scraper's advanced capabilities, including geographic targeting, citation extraction, and async options.

The Gemini Scraper provides powerful customization options to help you generate more accurate, contextual, and verifiable responses from Gemini. These features allow you to tailor how Gemini behaves, what type of responses it returns, and how much detail it extracts.


Geolocation

Control and influence Gemini's responses based on a target geographic region.

Geolocation parameters affect examples, perspectives, terminology, and localized insights within the generated answer.

Geolocation supports country-level and state / city-level targeting.


Country

Influence Gemini's responses by specifying a target country.

This can affect examples, perspectives, or localized insights within the answer.

Country format

The country value must be a 2-letter country code.

Example

{
  "prompt": "Trending products in 2025",
  "engine": "gemini",
  "country": "ca"
}

Use Cases

  • Localized content generation

  • Region-specific trend insights

  • Country-influenced context within Gemini answers


State and City

Refine geolocation further by targeting a specific state or state + city.

The state_city parameter allows you to influence responses with more granular regional context, such as local brands, stores, events, or regulations.

Important The country parameter is required when using state_city.

State / City format

  • State only

  • State and city

  • State + City must be separated by underscore

Examples

State only:

State and city:

Use Cases

  • Hyper-local trend analysis

  • City-specific product or business insights

  • Location-aware content and recommendations

circle-info

Using countries outside of the US and UK, as well as the state_city feature, requires a premium package.


Callback URL (callback_url)

Send the LLM Scraper response directly to your own API endpoint.

When callback_url is provided, the request is acknowledged and the final LLM Scraper response is delivered to your endpoint via a POST request.

Example

Initial Response (202 Accepted)

When callback_url is included, the API returns a confirmation response indicating that the request was received.

Final Response

Once processing is completed, the full LLM Scraper response will be sent to the provided callback_url.

The response structure is identical to the standard LLM Scraper response returned in synchronous requests.

Use Cases

  • Deliver results directly into backend workflows

  • Separate request handling from response processing

  • Trigger automation pipelines after completion


Error Handling

The Gemini Scraper includes standardized error responses.

400 — Validation Errors

Returned when:

  • Prompt missing

  • Invalid parameter

  • Prompt > 4096 characters

Example:

401 — Credentials Error

Returned when:

  • Username or Password is Incorrect

  • No Active Package for the Product

Example:

500 — Internal Errors

Every error of a scraping error will return a 500 error code like so:

Last updated