Getting started
- Introduction
- Prerequisites
- Rules of our API
- Quickstarts
Transition from V1 to V2 API
Platform API
- Reference
Basic Query
Step 5: Retrieve Subcategories
Copy
Ask AI
curl -X GET "https://api.globalwebindex.com/v2/categories/500?include=children" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"
Copy
Ask AI
{
"category": {
"id": "500",
"name": "Social Media",
"child_categories": [
{
"id": "520",
"name": "Social and Messaging Usage"
},
...
]
}
}
Next, drill down into the Social Media category to find the Social and Messaging Usage subcategory.
Copy
Ask AI
curl -X GET "https://api.globalwebindex.com/v2/categories/500?include=children" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"
Copy
Ask AI
{
"category": {
"id": "500",
"name": "Social Media",
"child_categories": [
{
"id": "520",
"name": "Social and Messaging Usage"
},
...
]
}
}
From the response, note the id
for the Social and Messaging Usage subcategory: 520
.
Copy
Ask AI
curl -X GET "https://api.globalwebindex.com/v2/categories/500?include=children" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"
Copy
Ask AI
{
"category": {
"id": "500",
"name": "Social Media",
"child_categories": [
{
"id": "520",
"name": "Social and Messaging Usage"
},
...
]
}
}
Assistant
Responses are generated using AI and may contain mistakes.