Gemini Scraper
scraper.gemini extracts Gemini responses so you can archive Google AI outputs with structured citation metadata.
Request Example
curl '{api_host}/api/v2/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.gemini",
"input": {
"prompt": "Recommended attractions in New York",
"country": "US"
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Prompt sent to Gemini. |
country | string | Yes | Country or region (JP and TW are not supported). |
Response Fields
| Parameter | Type | Description |
|---|---|---|
result_text | string | Markdown response. |
prompt | string | Original prompt. |
citations | array | Citation metadata. |
citations.favicon | string | Favicon URL. |
citations.highlights | array | Highlighted snippets from the source text. |
citations.snippet | string | Citation snippet. |
citations.title | string | Title of the cited page. |
citations.url | string | URL of the cited page. |
citations.website_name | string | Website name. |