Available Countries

    Retrieve the list of countries supported for geo-targeted SERP parsing.

    Endpoint

    GET /api/parsing/geo/countries

    Example Request

    curl https://app.scrapering.com/api/parsing/geo/countries \
      --header 'Authorization: Bearer YOUR_API_KEY'
    

    Example Response

    {
      "countries": [
        {
          "code": "GB",
          "name": "United Kingdom",
          "canonical_name": "United Kingdom"
        },
        {
          "code": "US",
          "name": "United States",
          "canonical_name": "United States"
        }
      ]
    }
    

    Response Fields

    FieldTypeDescription
    countries[].codestringISO country code (e.g. US, GB)
    countries[].namestringCountry name in English
    countries[].canonical_namestringCanonical name used for Google geo-targeting

    Using Country Data

    Pass code.toLowerCase() as gl in Google SERP requests for country-level geo-targeting:

    {
      "q": "pizza delivery",
      "count": 10,
      "gl": "us"
    }
    

    For city-level targeting, use the Available cities endpoint.

    Next steps