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

# Step 4: Access Categories in the GWI Core namespace

The question is part of the **GWI Core** namespace under the **Social Media** category.
Use the `/v2/categories/filter` endpoint to retrieve all root categories within the `GWI Core` namespace.

```bash theme={null}
curl -X POST "https://api.globalwebindex.com/v2/categories/filter" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{ "dataset_codes": ["gwi-core"] }'
```

```json Response theme={null}
{ 
    "categories": [
        {
            "id": "330",
            "name": "GWI Core", 
            "child_categories": [ 
                { 
                    "id": "500", 
                    "name": "Social Media" 
                }, 
                ... 
            ] 
        } 
    ] 
}
```

From the response, note the `id` for the **Social Media** category: 500.
