GETInsights3–7 credits

Niche classifier

GET https://api.instagramapi.dev/v1/insights/profile/niche

Classifies 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

NameTypeRequiredDescription
handlestringyesAn Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically.
postsnumbernoRecent 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 credits

Example 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.

FieldTypeDescription
usernamestringThe account's @handle.
nichestringPrimary niche classification.
sub_nichestringMore specific sub-niche.
categoriesarray<string>Broad content categories the account fits.
brand_voicestringThe account's brand voice.
target_audiencestringWho the content targets.
content_pillarsarray<string>Recurring content themes the account posts about.