{"uid":"cap_lFrue93RCNJCqlFQ1-so7","slug":"api-direct-instagram-post-comments-69dd7c46","name":"API Direct – Instagram Post Comments","description":"Get the comments on an Instagram post or reel by URL or shortcode.","url":"https://x402.apidirect.io/v1/instagram/post/comments?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"url":{"type":"string","maxLength":500,"description":"Instagram post or reel URL, e.g. https://www.instagram.com/p/CxYQJO8xuC6/ (max 500 characters). Provide either url or code."},"code":{"type":"string","maxLength":50,"description":"The post's shortcode, e.g. CxYQJO8xuC6, or numeric media ID (max 50 characters). Provide either url or code."},"pages":{"type":"integer","default":1,"maximum":20,"minimum":1,"description":"Number of pages to fetch, 1-20 (default: 1). Each page returns up to 15 comments."},"sort_by":{"enum":["popular","recent"],"type":"string","default":"popular","description":"Sort order: popular or recent (default: popular)"},"get_sentiment":{"type":"boolean","default":false,"description":"Set to true to add AI emotion analysis (Plutchik's Wheel) to each result. Adds +$0.001 per page to the cost. Returns emotion scores, dominant emotion, intensity, and polarity."}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.007","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QZIkurBxsQV7gPUEo_gLt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches paginated comments on an Instagram post or reel by URL or shortcode, with optional AI sentiment analysis.","exampleAgentPrompt":"Can you pull the top 30 most popular comments on this Instagram post — https://www.instagram.com/p/CxYQJO8xuC6/ — and include the AI emotion analysis for each one?","exampleUseCases":[{"title":"Brand sentiment monitoring on viral post","prompt":"Grab the top 2 pages of comments from this Instagram post https://www.instagram.com/p/CxYQJO8xuC6/ sorted by popular and run sentiment analysis on each one so I can see how people are reacting."},{"title":"Competitor audience reaction research","prompt":"Fetch the most recent comments on this Instagram reel using shortcode CxYQJO8xuC6 — I want to see what the audience is saying about it, just one page is fine."},{"title":"Influencer campaign feedback review","prompt":"Pull 3 pages of comments from this Instagram post https://www.instagram.com/p/CxYQJO8xuC6/ sorted by recent so I can review the raw audience feedback from our influencer campaign."}],"resultDescription":"Returns paginated comment data for the specified Instagram post or reel, including comment text, author info, and metadata. When sentiment analysis is enabled, each comment also includes Plutchik's Wheel emotion scores, a dominant emotion label, intensity rating, and polarity (positive/negative/neutral). Up to 15 comments per page, up to 20 pages.","failureModes":["Invalid or deleted Instagram post URL returns an error or empty result","Private account posts are inaccessible and return an access error","Shortcode not found returns a 404-style error","Exceeding the page limit (max 20) results in a validation error","Rate limiting or Instagram anti-scraping blocks may return transient failures","Malformed URL or shortcode format triggers input validation error"],"whenToPreferThis":"Use this endpoint when you need structured comment data from a specific Instagram post or reel by URL or shortcode. It is the right choice when you want to analyze audience reactions, extract user feedback, or monitor engagement on known Instagram content. The optional AI sentiment analysis (Plutchik's Wheel) makes it preferable over raw scrapers when emotional tone per comment is needed. It supports pagination up to 20 pages and sorting by popular or recent, making it suitable for both quick sampling and deeper comment mining.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:07:27.842Z","isFirstParty":false,"canonicalSlug":"api-direct-instagram-post-comments-69dd7c46"}