curl -X POST "https://api.globalwebindex.com/v2/locations/filter" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"namespaces": [{"code": "core"}]}'
{
  "locations": [
    {
      "id": "3",
      "iso_code": "arg",
      "name": "Argentina",
      "accessible": true,
      "code": "s2_54",
      "region": null,
      "namespaces": []
    },
    {
      "id": "31",
      "iso_code": "deu",
      "name": "Germany",
      "accessible": true,
      "code": "s2_49",
      "region": null,
      "namespaces": []
    },
    ...
  ]
}

Next, you need to narrow the data to focus only on Germany.

What is a location?

A location represents a geographic region where data was collected. For example, the code s2_49 corresponds to Germany.

To identify the correct location code for Germany, use the Locations Filter Endpoint:

curl -X POST "https://api.globalwebindex.com/v2/locations/filter" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"namespaces": [{"code": "core"}]}'
{
  "locations": [
    {
      "id": "3",
      "iso_code": "arg",
      "name": "Argentina",
      "accessible": true,
      "code": "s2_54",
      "region": null,
      "namespaces": []
    },
    {
      "id": "31",
      "iso_code": "deu",
      "name": "Germany",
      "accessible": true,
      "code": "s2_49",
      "region": null,
      "namespaces": []
    },
    ...
  ]
}

Now you have the location code s2_49 for Germany to include in your query.