> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snip.sa/llms.txt
> Use this file to discover all available pages before exploring further.

# Geographic Analytics

> Get geographic distribution of clicks

## Path Parameters

<ParamField path="urlId" type="string" required>
  URL ID
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://snip.sa/api/analytics/507f1f77bcf86cd799439011/geographic \
    -H "X-API-Key: your_api_key_here"
  ```

  ```javascript JavaScript theme={null}
  const response = await axios.get(
    'https://snip.sa/api/analytics/507f1f77bcf86cd799439011/geographic',
    {
      headers: { 'X-API-Key': 'your_api_key_here' }
    }
  );
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "countries": [
        {
          "code": "US",
          "name": "United States",
          "clicks": 450,
          "percentage": 36
        },
        {
          "code": "GB",
          "name": "United Kingdom",
          "clicks": 200,
          "percentage": 16
        }
      ],
      "cities": [
        {
          "name": "New York",
          "country": "US",
          "clicks": 150
        }
      ]
    }
  }
  ```
</ResponseExample>
