Instagram Topic Classification API. On each item you fetch.
What the item is about, as categories of the IAB Content Taxonomy's top level (most likely first; at most three), each with its probability. Add analysis=topics to any of 18 Instagram endpoints that offer it.
GET /v1/instagram/post?analysis=topics
One param on the request. Topics on each item.
The Instagram Post API returns each post with analysis.topics beside its fields.
curl -G 'https://socialtap.dev/v1/instagram/post' \
--data-urlencode 'url=https://www.instagram.com/reel/De1S3KpCXf0/' \
--data-urlencode 'analysis=topics' \
-H "x-api-key: $SOCIALTAP_API_KEY"// Node 18+: save this as app.mjs (an ES module) and run: node app.mjs
const params = new URLSearchParams({
url: "https://www.instagram.com/reel/De1S3KpCXf0/",
analysis: "topics",
});
const res = await fetch(`https://socialtap.dev/v1/instagram/post?${params}`, {
headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);import os
import requests
res = requests.get(
"https://socialtap.dev/v1/instagram/post",
params={"url": "https://www.instagram.com/reel/De1S3KpCXf0/", "analysis": "topics"},
headers={"x-api-key": os.environ["SOCIALTAP_API_KEY"]},
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
data, meta = body["data"], body["meta"]
print(data, meta["credits_charged"]){
"topics": [
"automotive"
],
"topics_probability": {
"automotive": 0.65
}
}Values are examples.
GET https://socialtap.dev/v1/instagram/postDocs What the value means.
The values below that apply, possibly none. topics_probability beside it maps each value returned to how sure it is, from 0 to 1.
| Value | Meaning |
|---|---|
automotive | cars, motorcycles, vehicles |
books_literature | books, writing, poetry |
business_finance | companies, industries, startups, the economy, marketing |
careers | jobs, hiring, workplaces, career advice |
education | schools, learning, courses, exams |
events_attractions | concerts, festivals, conferences, parks, museums |
family_relationships | parenting, dating, marriage, friendship |
fine_art | painting, sculpture, design, photography as art |
food_drink | cooking, recipes, restaurants, drinks |
healthy_living | fitness, nutrition, wellness, mental wellbeing |
hobbies_interests | crafts, collecting, DIY, outdoor hobbies |
home_garden | home improvement, decor, gardening, real estate living |
medical_health | diseases, treatments, doctors, medicine |
movies | films, cinema, actors |
music_audio | music, artists, podcasts, radio |
news_politics | news, politics, elections, government, world events |
personal_finance | saving, investing, crypto, taxes, debt, insurance |
pets | pets and animals |
pop_culture | celebrities, internet culture, memes, gossip |
real_estate | buying, selling and renting property |
religion_spirituality | religion, faith, spirituality, astrology |
science | science, research, space, the environment |
shopping | products, deals, retail, buying advice |
sports | sports, teams, athletes, betting on sports |
style_fashion | fashion, beauty, makeup, skincare |
technology_computing | software, apps, gadgets, AI, programming, the internet |
television | TV shows, streaming series |
travel | trips, destinations, hotels, airlines |
video_gaming | video games, gaming, esports |
Keep only what matches.
On a list, where keeps the items that pass. Every item judged is charged whether or not it passes, so a page can be short.
https://socialtap.dev/v1/instagram/posts?handle=nasa&analysis=topics&where=analysis.topics=automotive18 Instagram endpoints offer it.
Each adds the analysis to the posts, profiles, comments, transcripts and web results it returns. Text analyses cost one flat amount per request, or per page on a list, however many you ask for.
-
Post
Instagram Post API
Post, reel or carousel with media, likes and views
1 credit$0.75–$1.97 per 1,000 requestsGET /v1/instagram/post -
Post
Instagram Posts API
Posts, reels and carousels from a profile
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/posts -
Post
Instagram Story API
Image or video file, from the story's link
1 credit$0.75–$1.97 per 1,000 requestsGET /v1/instagram/story -
Post
Instagram Hashtag Posts API
Top reels that carry a hashtag
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/hashtag_posts -
Post
Instagram Location Posts API
Recent or top posts tagged at a location
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/place_posts -
Post
Instagram Highlight Stories API
Stories saved to a highlight, with media links
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/playlist_stories -
Post
Instagram Reels API
Pinned then newest, with play counts
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/reels -
Post
Instagram Search API
Reels matching a keyword, with plays and likes
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/search_posts -
Post
Instagram Audio Reels API
Reels that use a song or original audio
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/sound_posts -
Post
Instagram Trending Reels API
Recommended reels, a fresh batch each time
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/trending_posts -
Profile
Instagram Profile API
Exact follower counts, bio and bio links
1 credit$0.75–$1.97 per 1,000 requestsGET /v1/instagram/profile -
Profile
Instagram Similar Accounts API
Lookalike accounts suggested for a profile
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/similar_profiles -
Comment
Instagram Comment API
Text, exact likes and author, from its link
1 credit$0.75–$1.97 per 1,000 requestsGET /v1/instagram/comment -
Comment
Instagram Comments API
On a post or reel, newest first, with likes
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/comments -
Transcript
Instagram Reels Transcript API
Timed transcript of a public reel or video
From 1 credit$0.75–$1.97 per 1,000 requestsGET /v1/instagram/transcript -
Web result
Instagram Location Search API
Locations by name, kind of place or city
From 1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/search_places -
Web result
Instagram User Search API
Accounts by keyword, niche or place
From 1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/search_profiles -
Web result
Instagram Audio Search API
Songs and original audio by name or artist
From 1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/instagram/search_sounds
| Endpoint | Adds |
|---|---|
| Instagram Post API | +2 credits per request |
| Instagram Posts API | +21 credits per page of 12 |
| Instagram Story API | +2 credits per request |
| Instagram Hashtag Posts API | +42 credits per page of 24 |
| Instagram Location Posts API | +32 credits per page of 18 |
| Instagram Highlight Stories API | +87 credits per page of 50 |
| Instagram Reels API | +21 credits per page of 12 |
| Instagram Search API | +42 credits per page of 24 |
| Instagram Audio Reels API | +21 credits per page of 12 |
| Instagram Trending Reels API | +70 credits per page of 40 |
| Instagram Profile API | +2 credits per request |
| Instagram Similar Accounts API | +55 credits per page of 50 |
| Instagram Comment API | +2 credits per request |
| Instagram Comments API | +39 credits per page of 24 |
| Instagram Reels Transcript API | +6 credits per request |
| Instagram Location Search API | +52 credits per page of 50 |
| Instagram User Search API | +52 credits per page of 50 |
| Instagram Audio Search API | +52 credits per page of 50 |
More analyses on Instagram and beyond.
The same answer on other platforms, and other answers here.
Questions about Instagram topic classification
The analyses guide has the rest.
Which Instagram endpoints offer topic classification?
How much does an analysis cost?
Do I pay when an analysis can't answer?
Can I get only the items that match?
Which languages do analyses answer in?
Can I use my own categories or questions?
Send your first request in a minute.
Get a key, send a link you already have and see what comes back. The same key works on every platform.
- No credit card
- Failed requests are free
- Works on all 319 endpoints