Search Instagram posts by keyword. Returns post content, engagement metrics (likes, comments, shares, views), author metadata, and publication date. Supports fetching multiple pages of results in a single API call.
curl "https://apidirect.io/v1/instagram/posts?query=technology&pages=2" \
-H "X-API-Key: YOUR_API_KEY"
{
"posts": [
{
"title": "@mrbeast on Instagram",
"url": "https://instagram.com/p/DSDh2qaEVmQ",
"date": "2025-12-09 20:16:58",
"author": "mrbeast",
"source": "Instagram",
"domain": "instagram.com",
"snippet": "How Many People Does it Take to Pull a Plane w/ @saudi_airlines",
"likes": 530176,
"comments": 5608,
"shares": 9536,
"reposts": 4353,
"views": 29667777,
"is_video": true,
"media_type": "clips",
"author_verified": true,
"author_name": "MrBeast",
"hashtags": [],
"mentions": ["saudi_airlines"],
"sentiment": {
"emotions": {
"joy": 40,
"trust": 55,
"fear": 0,
"surprise": 10,
"sadness": 0,
"disgust": 0,
"anger": 0,
"anticipation": 30
},
"dominant_emotion": "trust",
"emotional_intensity": 5,
"polarity": "positive"
}
}
],
"pages": 2,
"count": 20
}