GETInsights3–7 credits
Niche classifier
GET https://api.instagramapi.dev/v1/insights/profile/nicheClassifies an account into a niche / sub-niche with categories, brand voice, target audience, and content pillars. Useful for tagging and segmentation at scale. Cost: 3–7 credits depending on how many posts are considered.
Build this with an AI agent
Paste this prompt into Claude, Codex, or any coding agent.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. |
| posts | number | no | Recent posts to consider (1–50). Defaults to 12. |
Example request
curl "https://api.instagramapi.dev/v1/insights/profile/niche?handle=nike&posts=12" \
-H "Authorization: Bearer $INSTAGRAMAPI_KEY"Try it
Live request · uses 3 creditsExample responses
Switch tabs to see the body shape for success and each error status.
{
"data": {
"username": "nike",
"niche": "Sportswear & athletics",
"sub_niche": "Performance footwear & apparel",
"categories": [
"sports",
"fashion",
"lifestyle"
],
"brand_voice": "Bold, motivational",
"target_audience": "Athletes and sport-culture consumers worldwide",
"content_pillars": [
"athlete stories",
"product launches",
"social causes"
]
},
"meta": {
"endpoint": "insights/profile/niche",
"request_id": "req_3f8a1c9e",
"credits_charged": 3,
"credits_remaining": 4987,
"ms": 412
}
}Response fields
Fields returned under data on a 200 response. Every response also includes a meta object with billing info.
| Field | Type | Description |
|---|---|---|
| username | string | The account's @handle. |
| niche | string | Primary niche classification. |
| sub_niche | string | More specific sub-niche. |
| categories | array<string> | Broad content categories the account fits. |
| brand_voice | string | The account's brand voice. |
| target_audience | string | Who the content targets. |
| content_pillars | array<string> | Recurring content themes the account posts about. |