Generate answer
gemini.answer.generate
Submit a prompt with locale, country, anonymous model, and source-policy controls in a fresh Gemini context; return a complete answer and execution evidence.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"country":"Japan","include_sources":true,"locale":"ja-JP","max_sources":8,"mode":"answer","model":"3.5 flash-lite","prompt":"2026年8月3日時点の公式資料だけを使い、日本の個人情報保護法における「個人データ」と「保有個人データ」の違いを日本語で説明し、確認できない点は推測しないでください。","source_policy":{"official_sources_only":true,"preferred_domains":["ppc.go.jp"]},"timezone":"Asia/Tokyo"},"capability":"gemini.answer.generate"}'
Sample response
{
"completed": true,
"finish_reason": "stop",
"grounded": false,
"model": "3.5 Flash-Lite",
"query": "In one short sentence, explain what photosynthesis does.",
"response": "Photosynthesis is the process by which plants convert sunlight, water, and carbon dioxide into oxygen and energy-rich glucose."
}
Input
| Field | Type | Required | Description |
|---|---|---|---|
country
| string | optional | |
include_sources
| boolean | optional | |
locale
| string | optional | |
max_sources
| integer | optional | |
mode
| string | optional | |
model
| string | optional | |
prompt
| string | required | |
source_policy
| object | optional | |
source_policy.excluded_domains
| array<string> | optional | |
source_policy.official_sources_only
| boolean | optional | |
source_policy.preferred_domains
| array<string> | optional | |
source_policy.published_after
| string | optional | |
source_policy.published_before
| string | optional | |
timezone
| string | optional |