Expanded Limits, Across all tiers - Our Gift to you! Learn more →

AlterLab
SearchResearchPricingComparePlaygroundBlogDocsChangelog
    AlterLabAlterLab
    PricingComparePlaygroundBlogDocsChangelog
    IntroductionQuickstartInstallationYour First Request
    REST APICrawl APIMap APISearch APIResearch APINewSERP APINewExtract APIAIJob PollingDomain StatsNewGeocode APINewNews APIBatch ResultsNewAPI KeysSessions APINewEnterprise APIEnterprise
    AccountAutoAI VisibilityAutoAlertsAutoAuthAutoBillingAutoCrawlAutoExtractAutoIntegrationsAutoKeysAutoMapAutoMonitorsAutoOrganizationsAutoResearch SchedulesAutoRunsAutoSchedulesAutoScrapeAutoSearchAutoSearch SchedulesAutoSessionsAutoUser WebhooksAutoV1 EndpointsAutoAffiliatesAutoAgentAutoAgent OnboardingAutoAgent VisibilityAutoAnalyticsAutoApprovalsAutoArtifactsAutoAttributionAutoB2BAutoBatchAutoBeta FeaturesAutoBlogAutoBuyerAutoChatAutoConnectionsAutoConnectorsAutoContact ListsAutoCreatorAutoCross SellAutoDashboardAutoDefaultsAutoDomainsAutoEmail PreferencesAutoFcAutoHandsAutoHealthAutoJobsAutoListingsAutoMaintenanceAutoNewsAutoOauthAutoOauth GrantsAutoPage InspectAutoPlatformAutoPresetsAutoPricingAutoPrivacyAutoPublicAutoPublic PagesAutoReferralAutoReferralsAutoReportsAutoResearchAutoSecretsAutoSerpAutoSSOAutoStorefrontsAutoSupportAutoTemplatesAutoToolsAutoTrackAutoUsageAutoUsage TagsAutoUserAutoWorkflowsAutoWorkspacesAutoWebhooksAuto
    OverviewPythonNode.jsCLI
    Guides OverviewJavaScript RenderingBrowser ActionsOutput FormatsPDF & OCRCachingWebhooksJSON Schema FilteringWebSocket Real-TimeBring Your Own ProxyProSticky SessionsProAuthenticated ScrapingNewHTTP Methods & BodiesNewStructured ExtractionAIWeb SearchAgent and RAG GroundingResearch JobsAgent RunsSite MappingWeb CrawlingBatch ScrapingSchedulerData MarketplaceSelling DataAgent OnboardingEmbeddingsKeyword IdeasAI VisibilityWorkflowsChange DetectionCloud Storage ExportSpend LimitsOrganizations & TeamsScrape TemplatesCustom ConnectorsSecretsContact ListsPlatform Sub-AccountsReferrals & AffiliatesAlerts & NotificationsExtraction ProfilesAIBYOK ExtractionAIOAuth2 Machine-to-MachineSupport & TicketsUnsupported Targets
    Tutorials OverviewStructured ExtractionAIE-commerce ScrapingNews MonitoringPrice MonitoringMulti-Page CrawlingMonitoring DashboardAI Agent / MCPMCPAI Research AgentAISite CrawlingData Pipeline to Cloud
    E-commerceLead GenerationChange MonitoringRAG & AI PipelinesAIResearch
    Reference OverviewPricingRate LimitsReliabilityReliability ContractError CodesChangelogVersioning
    Migrations OverviewFrom FirecrawlFrom ApifyFrom ScrapingBee / ScraperAPIFrom Crawl4AIFrom SpiderSearch to SERPFirecrawl v0 API ReferenceLegacy
    OverviewMCP ServerAIn8n NodeLangChainAICrewAIAILlamaIndexAISupabaseChrome ExtensionSoon
    PlaygroundPricingStatus

    Up to 5,000 free requests · No credit card

    API Reference
    New

    Search API

    Find relevant web pages by keyword before scraping. Search returns URLs, titles, and snippets — optionally scraping each result inline.

    Discovery-First Workflow

    Search is designed for cases where you know what you want but not where it lives. Find pages first, then scrape and extract in a single pipeline.

    Deprecated: use /v1/serp

    /v1/search and /v1/search/batch are deprecated aliases of /v1/serp with identical billing. Responses carry a Deprecation header. No removal date has been set. See the migration guide.

    Overview

    1

    Search

    POST a query to /api/v1/search. Get back URLs, titles, and snippets from DuckDuckGo (default), Google, or Bing. Pass engine: "auto" for the unified result list. The Python and Node SDKs and the hosted MCP alterlab_search tool use it by default and also return each result page as concise markdown (scrape_results=false for the list only).

    2

    Scrape (Optional)

    Set scrape_results: true to scrape every result page and get full content back.

    3

    Extract (Optional)

    Pass an extraction_schema to pull structured data from every result in one call.

    Schema Versioning

    Every response carries a schema_version field (currently "1"). It changes only on a breaking change; additive fields never bump it. Removals follow a minimum 180-day deprecation window announced in the schema changelog.

    POST /v1/search

    POST
    /api/v1/search

    Execute a web search. Returns results synchronously (200) or, when scrape_results is true and there are more than 5 results, returns 202 with a search_id for polling.

    Bash
    curl -X POST https://api.alterlab.io/api/v1/search \
      -H "X-API-Key: your_api_key" \
      -H "Content-Type: application/json" \
      -d '{
        "query": "best headless browsers 2026",
        "num_results": 10
      }'

    Request Body

    ParameterTypeRequiredDescription
    querystringYesSearch terms (1-500 characters). Send exactly one of query or queries.
    queriesstring[]No1-5 queries in one request, billed as one unit at the single-query price of the engine. More than 5 returns 422 too_many_queries before any charge. The response holds results[] with per-query query, status (succeeded, failed, processing), error and response; a failing query never fails the others. Works with scrape_results.
    domainstringNoRestrict results to a specific domain (applied as site: prefix)
    num_resultsintegerNoNumber of results to return (1-50, default: 10)
    countrystringNoISO 3166-1 alpha-2 country code for geo-targeted results (e.g., US, GB, DE)
    languagestringNoLanguage code for results (e.g., en, fr, de)
    time_rangestringNoFilter by recency: hour, day, week, month, year
    scrape_resultsbooleanNoIf true, scrape each result page and include full content (default: false)
    enginestringNoduckduckgo (default, $0.001/query), google or bing ($0.004/query each), or auto ($0.001/query, unified search). See Pricing below.
    safe_searchbooleanNoEnable the engine's safe-search filter
    zero_data_retentionbooleanNoStore nothing about the query or its results beyond the request: no poll pointer, cache entry or query text in usage records, and the job record is deleted once the response is built. Incompatible with scrape_results and batch search (422 zero_data_retention_unsupported). Defaults to the account setting; enable it account-wide, or set a shorter job retention window (1-90 days), in your organization settings.
    formatsstring[]NoOutput formats when scrape_results=true: text, json, json_v2, html, markdown, rag, content
    extraction_schemaobjectNoJSON schema for structured extraction (when scrape_results=true)

    Search-Only Response (200)

    When scrape_results is false (default), results are returned synchronously:

    JSON
    {
      "search_id": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
      "query": "best headless browsers 2026",
      "results_count": 10,
      "credits_used": 2000,
      "results": [
        {
          "url": "https://example.com/headless-browsers-guide",
          "title": "Top 10 Headless Browsers in 2026",
          "snippet": "A comprehensive comparison of the best headless browsers for web scraping and automation...",
          "position": 1,
          "content": null
        },
        {
          "url": "https://blog.example.com/playwright-vs-puppeteer",
          "title": "Playwright vs Puppeteer in 2026",
          "snippet": "Which headless browser framework should you choose? We compare performance, features...",
          "position": 2,
          "content": null
        }
      ]
    }

    Search + Scrape Response (202)

    When scrape_results=true and there are more than 5 results, the response is 202 with a polling URL:

    JSON
    {
      "search_id": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
      "query": "best headless browsers 2026",
      "status": "scraping",
      "results_count": 10,
      "credits_used": 52000,
      "results": [ ... ],
      "message": "Search complete. 10 results are being scraped. Poll GET /api/v1/search/a1b2c3d4-... for progress."
    }

    Inline Scraping

    When scrape_results=true and there are 5 or fewer results, the API waits briefly and attempts to return content inline. For larger result sets, use the polling endpoint.

    GET /api/v1/search/{search_id}

    GET
    /api/v1/search/{search_id}

    Poll for search + scrape progress. Returns the search results with scraped content populated as each job completes.

    Bash
    curl https://api.alterlab.io/api/v1/search/a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d \
      -H "X-API-Key: your_api_key"

    Status Response

    JSON
    {
      "search_id": "a1b2c3d4-...",
      "query": "best headless browsers 2026",
      "status": "completed",
      "results_count": 10,
      "completed": 10,
      "credits_used": 52000,
      "results": [
        {
          "url": "https://example.com/headless-browsers-guide",
          "title": "Top 10 Headless Browsers in 2026",
          "snippet": "A comprehensive comparison...",
          "position": 1,
          "content": {
            "text": "Full article text here...",
            "markdown": "# Top 10 Headless Browsers..."
          }
        }
      ]
    }
    StatusMeaning
    scrapingSome result pages are still being scraped
    completedAll result pages have been scraped

    24-Hour TTL

    Search metadata expires after 24 hours. Poll for results before then.

    Batch Search

    Submit up to 50 search queries for async parallel processing. Each query runs independently and results are aggregated. Requires Growth+ balance tier ($50+ balance). Poll for results or receive them via webhook.

    Request Body

    POST
    /api/v1/search/batch

    Submit a batch of search queries for asynchronous processing.

    Parameters

    NameTypeRequiredDescription
    queriesstring[]
    Required
    Search queries to execute (1-50 queries, each max 500 characters)
    num_resultsintegerOptionalNumber of results per query (1-30)Default: 10
    countrystringOptionalISO 3166-1 alpha-2 country code applied to all queries (e.g., US, GB, DE)
    languagestringOptionalLanguage code applied to all queries (e.g., en, fr, de)
    time_rangestringOptionalFilter results by recency: hour, day, week, month, year
    scrape_resultsbooleanOptionalIf true, scrape each result page for content. Per-page tier costs are debited as scrapes complete.Default: false
    enginestringOptionalSearch engine for every query: duckduckgo ($0.001/query), google or bing ($0.004/query each), or auto for the unified, vendor-neutral result list (flat $0.001/query).Default: duckduckgo
    safe_searchbooleanOptionalEnable the engine's safe-search filter.
    include_ai_overviewbooleanOptionalGoogle only. Keeps the search on the rendered tier so the response carries ai_overview: {present, text, sections[], references[{title, url, domain, position}]}. No extra charge. The field comes from the engine that served the results and is null when another engine served them or the page had no AI Overview. ai_overview_present stays available.Default: false
    zero_data_retentionbooleanOptionalBatch search stores queries and results for polling, so it is rejected (422 zero_data_retention_unsupported) when zero data retention is set on the request or the account.
    formatsstring[]OptionalOutput formats when scrape_results=true: text, json, json_v2, html, markdown, rag, content
    webhook_urlstringOptionalWebhook URL to POST when all queries complete. Receives a batch.search.completed event with batch counts and status; fetch per-query results with GET /api/v1/search/batch/{batch_id}.

    Request Example

    Bash
    curl -X POST https://api.alterlab.io/api/v1/search/batch \
      -H "X-API-Key: sk_live_..." \
      -H "Content-Type: application/json" \
      -d '{
        "queries": [
          "web scraping best practices",
          "structured data extraction",
          "API rate limiting strategies"
        ],
        "num_results": 10,
        "country": "US",
        "webhook_url": "https://your-app.com/webhooks/search"
      }'

    Response Example

    JSON
    {
      "batch_id": "b1c2d3e4-f5a6-7890-bcde-f12345678901",
      "total_queries": 3,
      "status": "processing",
      "estimated_credits": 3,
      "job_ids": [
        "j1-search-001",
        "j1-search-002",
        "j1-search-003"
      ],
      "message": "Batch search submitted. Poll GET /api/v1/search/batch/{batch_id} for results."
    }

    Response

    The POST response returns immediately with a 202 Accepted status. Use the batch_id to poll for results.

    Python SDK Example

    Python
    from alterlab import AlterLabSync
    
    client = AlterLabSync(api_key="YOUR_API_KEY")
    
    # Submit batch search
    batch = client.batch_search(
        queries=[
            "web scraping best practices",
            "structured data extraction",
            "API rate limiting strategies"
        ],
        num_results=10,
        country="US",
        engine="google",  # duckduckgo (default), google or bing
    )
    
    print(f"Batch ID: {batch['batch_id']}")
    print(f"Estimated credits: {batch['estimated_credits']}")
    
    # Poll for results
    import time
    while True:
        status = client.get_batch_search(batch["batch_id"])
        if status["status"] != "processing":
            break
        print(f"Progress: {status['completed']}/{status['total']}")
        time.sleep(2)
    
    # Process results
    for item in status["items"]:
        if item["status"] == "succeeded":
            print(f"Query: {item['query']}")
            for result in item["results"]:
                print(f"  {result['position']}. {result['title']}")

    Poll Batch Search Status

    Poll the status of a batch search to get per-query results as they complete.

    GET
    /api/v1/search/batch/{batch_id}

    Get the current status and results of a batch search.

    Parameters

    NameTypeRequiredDescription
    batch_idstring
    Required
    Batch search ID returned from POST /search/batch

    Request Example

    Bash
    curl -X GET https://api.alterlab.io/api/v1/search/batch/b1c2d3e4 \
      -H "X-API-Key: sk_live_..."

    Response Example

    JSON
    {
      "batch_id": "b1c2d3e4-f5a6-7890-bcde-f12345678901",
      "status": "completed",
      "total": 3,
      "completed": 3,
      "failed": 0,
      "pending": 0,
      "items": [
        {
          "job_id": "j1-search-001",
          "query": "web scraping best practices",
          "status": "succeeded",
          "results_requested": 10,
          "results_count": 10,
          "results": [
            {
              "url": "https://example.com/scraping-guide",
              "title": "Web Scraping Best Practices Guide",
              "snippet": "Learn the best practices for building reliable web scrapers...",
              "position": 1
            }
          ],
          "credits_used": 1
        }
      ],
      "total_credits_used": 3,
      "created_at": "2025-11-05T10:30:00Z",
      "webhook_status": "delivered",
      "webhook_attempts": 1
    }
    StatusDescription
    processingQueries are still being executed
    completedAll queries finished successfully
    partialAll queries finished but some failed
    failedAll queries failed

    Batch Search Requirements

    • Requires Growth+ balance tier ($50+ balance)
    • Maximum 50 queries per batch
    • Each query is billed up front at the engine rate ($0.001 DuckDuckGo, $0.004 Google or Bing)
    • When scrape_results=true, per-page tier costs are debited as scrapes complete
    • Batch metadata expires after 24 hours

    Unified Search

    Set engine to auto to run a single vendor-neutral search on this same route: one request schema, one flat price, deduplicated and ranked results. Responses carry a source_type per result and a cost_breakdown. Cached results are billed at zero. Add scrape_results=true for unified search with content: each result page comes back inline as markdown (preset=agent for the concise form) with a per-result content_status, waiting up to wait seconds or the mode tier. Pages still loading stay pending and resolve under GET /v1/search/{search_id}. Each fetched page is billed at its fetch tier on top of the flat query price.

    ParameterDescription
    categoryOne vertical to search (default web). Exclusive with sources.
    sourcesUp to 5 verticals (for example web, news, images) merged into one response.
    source_limitsResults per source, keyed by source name.
    freshnessday, week, month or year.
    date_from / date_toPublication date window.
    temporal_biasRECENT, OLD or NONE.
    include_domains / exclude_domainsUp to 50 domains each.
    require_terms / exclude_terms / promote_termsUp to 20 terms each.
    max_per_domainDomain diversity cap, 1-100 (default 2).
    extra_snippetsInclude up to 5 extra snippets per result.
    timeout_msDeadline, 500-10000.
    zero_data_retentionStore nothing about the query or results. Incompatible with scrape_results, polling and batch.
    Bash
    curl -X POST https://api.alterlab.io/api/v1/search \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "query": "open source vector databases",
        "engine": "auto",
        "sources": ["web", "news"],
        "freshness": "month",
        "num_results": 10,
        "scrape_results": true,
        "formats": ["markdown"]
      }'

    Multi-Query Requests

    Pass queries (1-5 strings) instead of query to run several queries in one request, billed as one unit. The response carries queries_count, succeeded_count, failed_count and one entry per query in request order. More than 5 queries is rejected with the typed error too_many_queries. For long-running multi-step investigations see the Research API.

    Pricing

    ActionCostNotes
    Search query, engine: duckduckgo$0.001 (1,000 microcents)Default engine. Flat fee per query, regardless of num_results
    Search query, engine: google or bing$0.004 (4,000 microcents)Browser-rendered SERP. Flat fee per query
    Search query, engine: auto (unified)$0.001 (1,000 microcents)Flat fee per request. A multi-query request is billed as one unit
    Scrape per resultTier cost per URLOnly with scrape_results; standard scrape pricing per URL
    ExtractionNo surchargeextraction_schema with scrape_results is billed only at the scrape cost

    Responses report credits_used in legacy credit units; balances are charged in USD at the rates above.

    BYOP Discount

    If you have a Bring Your Own Proxy integration, scrape costs are discounted per your plan. The search query cost is not affected.

    Error Codes

    StatusErrorDescription
    402insufficient_creditsNot enough credits for the search or scrape
    404search_not_foundSearch ID not found or expired (polling endpoint)
    502search_provider_errorUpstream search provider returned an error
    503search_unavailableSearch service is not configured
    503search_timeoutSearch did not complete in time (retryable; honor retry_after_s)
    503engine_blockedThe search engine blocked the request (retryable; honor retry_after_s)
    402insufficient_balanceBalance could not cover the search when it settled (the up-front check returns insufficient_credits)

    Examples

    Basic Search

    Python
    import requests
    
    response = requests.post(
        "https://api.alterlab.io/api/v1/search",
        headers={"X-API-Key": "YOUR_API_KEY"},
        json={
            "query": "web scraping best practices",
            "num_results": 5
        }
    )
    
    data = response.json()
    for result in data["results"]:
        print(f"{result['position']}. {result['title']}")
        print(f"   {result['url']}")

    Domain-Scoped Search

    Python
    # Search within a specific domain
    response = requests.post(
        "https://api.alterlab.io/api/v1/search",
        headers={"X-API-Key": "YOUR_API_KEY"},
        json={
            "query": "authentication API",
            "domain": "docs.github.com",
            "num_results": 10
        }
    )
    
    # All results will be from docs.github.com
    data = response.json()
    print(f"Found {data['results_count']} pages on docs.github.com")

    Search + Scrape with Extraction

    Python
    import time
    
    # Search and scrape with structured extraction
    response = requests.post(
        "https://api.alterlab.io/api/v1/search",
        headers={"X-API-Key": "YOUR_API_KEY"},
        json={
            "query": "iPhone 16 Pro review",
            "num_results": 5,
            "scrape_results": True,
            "formats": ["text", "markdown"],
            "extraction_schema": {
                "type": "object",
                "properties": {
                    "rating": {"type": "number", "description": "Review rating out of 10"},
                    "pros": {"type": "array", "items": {"type": "string"}},
                    "cons": {"type": "array", "items": {"type": "string"}},
                    "verdict": {"type": "string", "description": "One-line summary"}
                }
            }
        }
    )
    
    data = response.json()
    
    # If 202, poll for results
    if response.status_code == 202:
        search_id = data["search_id"]
        while True:
            status = requests.get(
                f"https://api.alterlab.io/api/v1/search/{search_id}",
                headers={"X-API-Key": "YOUR_API_KEY"}
            ).json()
            if status["status"] == "completed":
                data = status
                break
            time.sleep(2)
    
    # Process extracted data
    for result in data["results"]:
        if result.get("content") and result["content"].get("extraction"):
            ext = result["content"]["extraction"]
            print(f"{result['title']}: {ext.get('rating')}/10")
            print(f"  Verdict: {ext.get('verdict')}")

    History, saved queries and keyless search

    GET
    /api/v1/search

    Cursor-paged history of your organization's searches, newest first. Pass the returned next_cursor back as cursor. Works with a dashboard session or an API key.

    Parameters

    NameTypeRequiredDescription
    limitintegerOptionalPage size, 1-100.Default: 20
    cursorstringOptionalnext_cursor from the previous page.
    qstringOptionalQuery substring filter.
    statusstringOptionalcompleted, scraping or failed.
    kindstringOptionalsingle or multi.
    sincestringOptionalISO 8601 lower bound on created_at.
    untilstringOptionalISO 8601 upper bound on created_at.
    POST
    /api/v1/search/saved-queries

    Save a search query with its options so it can be re-run or scheduled. Up to 100 saved queries per user (403 saved_query_limit_reached); names are unique per user (409 saved_query_name_taken).

    Parameters

    NameTypeRequiredDescription
    namestring
    Required
    Display name, up to 120 characters.
    querystring
    Required
    Search query, up to 500 characters.
    optionsobjectOptionalStored search options: the /v1/search request fields apart from query and engine (for example num_results, country, device, language, freshness, include_domains). Unknown fields return 422.
    GET
    /api/v1/search/saved-queries

    List saved search queries.

    Parameters

    NameTypeRequiredDescription
    limitintegerOptionalPage size, 1-100.Default: 50
    offsetintegerOptionalRows to skip.Default: 0
    GET
    /api/v1/search/saved-queries/{saved_id}

    Get one saved search query.

    Parameters

    NameTypeRequiredDescription
    saved_idstring
    Required
    Saved query ID.
    PATCH
    /api/v1/search/saved-queries/{saved_id}

    Update a saved query. Omitted fields keep their value.

    Parameters

    NameTypeRequiredDescription
    saved_idstring
    Required
    Saved query ID.
    namestringOptionalNew display name.
    querystringOptionalNew query text.
    optionsobjectOptionalNew stored options.
    DELETE
    /api/v1/search/saved-queries/{saved_id}

    Delete a saved query. Returns 204.

    Parameters

    NameTypeRequiredDescription
    saved_idstring
    Required
    Saved query ID.
    POST
    /api/v1/search/keyless

    Keyless search trial: no signup and no API key. Always unified search with 10 results and no content fetch. Limited to 10 requests per minute and 200 per day per IP, halved for hosting-provider networks (429 above that). If the free budget or a backend is unavailable, it returns cached results with a notice instead of an error.

    Parameters

    NameTypeRequiredDescription
    querystring
    Required
    Search query, up to 200 characters.
    categorystringOptionalweb, news, code, academic or discussions.Default: web
    freshnessstringOptionalday, week or month.
    POST
    /api/v1/search/demo

    Run one query in the public search demo. Cached results are served first; a live run happens within per-IP limits. Past the live limit the response is 429 with cached results and turnstile_required: true, and completing the check unlocks more live runs.

    Parameters

    NameTypeRequiredDescription
    querystring
    Required
    Search query, up to 200 characters.
    freshnessstringOptionalOnly hour is accepted (events from the last hour). Omit it for no recency filter.
    turnstile_tokenstringOptionalCloudflare Turnstile token, when the previous response asked for one.
    GET
    /api/v1/search/demo/cached

    Cached demo results only. It never triggers a live run, so it is safe for crawlers.

    Parameters

    NameTypeRequiredDescription
    querystring
    Required
    Search query.
    freshnessstringOptionalOnly hour is accepted (events from the last hour). Omit it for no recency filter.
    GET
    /api/v1/search/demo/queries

    The demo's one-click query set: events from the last hour, precomputed so it never runs live.

    ← Previous: REST APINext: Search Guide →

    All request parameters (POST /api/v1/search)

    NameTypeDefaultDescription
    tagstringOptional spend-attribution tag (^[a-z0-9][a-z0-9_.-]{0,63}$, max 20 active tags per organization).
    querystringSearch terms (max 500 characters).
    queriesstring[]Multi-query search: 1-5 queries (each max 500 characters) in one request, billed as ONE unit at the price of a single query.
    engine"duckduckgo" | "google" | "bing" | "yahoo" | "auto""duckduckgo"'auto' runs the unified metasearch: sources are queried in parallel, fused and deduplicated, one flat price, no engine attribution in the response (#38611).
    domainstringRestrict results to a specific domain (applied as site: prefix)
    depth"standard" | "deep""standard"Unified search (`engine=auto`) only.
    num_resultsinteger10Number of results to return (1-30).
    pageinteger1Result page number (1-indexed): page N returns results (N-1)*num_results+1 to N*num_results.
    countrystringISO 3166-1 alpha-2 country code for geo-targeted results (e.g., US, GB, DE)
    citystringCity to localize results to (e.g.
    coordinatesobjectPoint and radius (lat, lng, radius_km) to localize results to
    uulestringPre-encoded location (uule) for exact localization.
    device"desktop" | "mobile" | "tablet"Device to emulate: desktop, mobile or tablet.
    languagestringLanguage code for results (e.g., en, fr, de)
    time_range"hour" | "day" | "week" | "month" | "year"Filter results by recency
    safe_searchbooleantrueEnable safe search filtering (default: true).
    include_ai_overviewbooleanfalseGoogle only.
    no_cachebooleanfalseSkip the SERP cache and fetch fresh.
    zero_tracebooleanfalseZero data retention for this request: the result is not cached and no raw page or result row is persisted.
    output"json" | "html""json"'html' also returns the fetched SERP page as `raw_html` (exit IPs redacted).
    fieldsstring[]Return only these response fields.
    scrape_resultsbooleanfalseIf true, scrape each result page and include content in response
    formats"text" | "json" | "json_v2" | "html" | "markdown" | "rag" | "content"[]Output formats when scrape_results=true
    presetstringConcise agent preset (when scrape_results=true): defaults formats to ['markdown'] and applies sensible character caps.
    max_chars_per_resultintegerPer-result character cap across text-like fields (when scrape_results=true)
    max_total_charsintegerTotal character cap across all results, applied in rank order
    syncbooleanfalseWith scrape_results=true, wait up to a bounded budget (about 30s) for the scrapes and return 200 with content in one call.
    extraction_schemaobjectJSON schema for structured extraction (when scrape_results=true)
    waitintegerSynchronous search-with-content (scrape_results=true): seconds to wait for result pages before returning inline (1-60).
    mode"fast" | "standard" | "deep"Latency tier for search-with-content: fast (wait 5 s), standard (15 s) or deep (60 s).
    livebooleantruescrape_results=true: true (default) fetches every result page live.
    category"web" | "news" | "images" | "code" | "academic" | "discussions" | "pdf" | "gov" | "research" | "developer"Unified search only: single vertical to search (default web).
    sources"web" | "news" | "images" | "code" | "academic" | "discussions" | "pdf" | "gov" | "research" | "developer"[]Unified search only: several verticals (e.g.
    source_limitsobjectUnified search only: results per source, keyed by source name.
    freshness"day" | "week" | "month" | "year"Unified search only: restrict to recent results.
    date_fromstringUnified search only: earliest publication date.
    date_tostringUnified search only: latest publication date.
    temporal_bias"RECENT" | "OLD" | "NONE"Unified search only: rank newer or older results higher.
    include_domainsstring[]
    exclude_domainsstring[]
    include_keywordsstring[]
    exclude_keywordsstring[]
    require_termsstring[]
    exclude_termsstring[]
    promote_termsstring[]
    max_per_domaininteger2Unified search only: domain diversity cap.
    domain_rulesobject[]
    rerank_rulesobject[]
    extra_snippetsbooleanfalseUnified search only: include up to 5 extra snippets.
    timeout_msintegerUnified search only: deadline (max 10s).
    zero_data_retentionbooleanZero data retention: nothing about this query or its results is stored beyond the request (no poll pointer, cache entry, query text in usage metadata or job record).
    Last updated: June 2026

    On this page