{"uid":"cap_iAK65FYDOwqw7On06uE4y","slug":"apify-instagram-scraper-via-stableapify-51cbc9bd","name":"Apify Instagram Scraper (via StableApify)","description":"Start the \"Instagram Scraper\" Apify actor (apify/instagram-scraper). Scrape and download Instagram posts, profiles, places, hashtags, photos, and comments. Get data from Instagram using one or more Instagram URLs or search queri…","url":"https://stableapify.dev/api/actors/apify/instagram-scraper/call","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","required":["resultsType","searchType","addParentData"],"properties":{"search":{"type":"string","description":"Search for Instagram hashtags, profiles, or places. Use `#` for hashtags, e.g. `#travel`."},"directUrls":{"type":"array","items":{"type":"string"},"description":"Add one or more Instagram URLs to scrape. URL format must match your content type: /p/ for posts and comments /reel/ for reels /username/ for profile details Leave blank if using the search query instead."},"searchType":{"enum":["hashtag","profile","place","user"],"type":"string","default":"hashtag","description":"Hashtag search returns posts tagged with that term. Profile search returns matching accounts. Place search returns matching locations."},"resultsType":{"enum":["posts","details","comments","reels","mentions","stories"],"type":"string","default":"posts","description":"**Posts** returns a feed of content. **Profile, hashtag, or place details** returns metadata about the page: follower count, bio, post count, and profile picture. Comments only work with post URLs, e.g. `instagram.com/p/ABC123xyz/` not `instagram.com/username/`."},"searchLimit":{"type":"integer","maximum":250,"minimum":1,"description":"Set how many profiles, places, or hashtags to find. To limit posts per result, use Results limit per URL. Higher values increase compute usage and cost."},"resultsLimit":{"type":"integer","maximum":9007199254740991,"minimum":1,"description":"Set how many posts or comments to scrape per Instagram URL. Higher values increase compute usage and cost. Maximum 50 comments per post. Instagram may return fewer than 15 comments on some posts. Use `1` to retrieve a single post per page."},"addParentData":{"type":"boolean","default":false,"description":"This applies only to feed items. Adds a dataSource field to each result: profile posts are labeled `profile`, and tag posts are labeled `hashtag`."},"onlyPostsNewerThan":{"type":"string","pattern":"^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$","description":"Limit how far back to scrape. Enter a date in `YYYY-MM-DD`, ISO format, or as a relative value, e.g. `1 day`, `2 months`, `3 years`. Times are in UTC, not local time. New York is UTC-5 in winter, UTC-4 in summer. Pinned posts may still appear even with this filter set."}},"description":"Normalized actor input. See field descriptions for the simplified shape; native Apify input also accepted (passed through).","additionalProperties":{}},"options":{"type":"object","properties":{"build":{"type":"string","maxLength":100,"minLength":1},"memory":{"type":"integer","maximum":32768,"minimum":128},"maxItems":{"type":"integer","maximum":100000,"minimum":1}},"description":"Optional Apify run options.","additionalProperties":false}}},"responseSchema":null,"example":{"request":{"input":{"username":"sarptecimer","includeEmail":false},"options":{"memory":1024,"maxItems":100}},"response":{"run":{"id":"kxhKzIGouq2eIr93g","status":"READY","actorId":"shu8hvrXbJbY3Eb9W","startedAt":"2026-06-16T17:43:54.188Z","usageTotalUsd":0,"defaultDatasetId":"1qcWiCh9zHJqzZlJB"},"token":"eyJhbGciOiJIUzI1NiJ9.eyJydW5JZCI6Imt4aEt6SUdvdXEyZUlyOTNnIiwiYWN0b3JJZCI6ImFwaWZ5L2luc3RhZ3JhbS1zY3JhcGVyIiwiZGVmYXVsdERhdGFzZXRJZCI6IjFxY1dpQ2g5ekhKcXpabEpCIiwidyI6IjB4OWNjNDJmM2Q5MjQ1Yjg2N2FjY2NkNjMwYjQzZjkwNmMxNjY1YjE3NiIsImlhdCI6MTc4MTYzMTgzNCwiZXhwIjoxNzg0MjIzODM0fQ.ryoZKgUzKyIvgFfgMj28s9oRrdFKrEcF1HUTzSl52-s"}},"exampleRequest":{"input":{"username":"sarptecimer","includeEmail":false},"options":{"memory":1024,"maxItems":100}},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_e5jXPxgWhVL8ratennG1a","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Starts an Apify Instagram Scraper actor run to extract posts, profiles, hashtags, places, photos, and comments from Instagram by username, URL, or search query.","exampleAgentPrompt":"Scrape the public Instagram profile and recent posts for the username 'natgeo', up to 200 items, with 1024 MB of memory — I want to analyze their posting patterns.","exampleUseCases":[{"title":"Competitor social media analysis","prompt":"Pull the last 100 posts from the Instagram account 'nikerunning' so I can analyze their content strategy and posting frequency."},{"title":"Hashtag trend research","prompt":"Scrape up to 500 recent Instagram posts tagged with #sustainablefashion — I need the post captions, likes, and timestamps for a trend report."},{"title":"Influencer profile audit","prompt":"Get the public profile data and recent posts for Instagram user 'humansofnewyork', up to 150 items with 2048 MB memory, so I can review their engagement metrics."}],"resultDescription":"Returns a JSON object containing the actor run ID, run status (e.g. READY), actor ID, start timestamp, default dataset ID for fetching results, estimated usage cost in USD, and a JWT token used to retrieve the scraped dataset from the sibling fetch endpoint.","failureModes":["Invalid or private Instagram username returns empty dataset","Rate limiting by Instagram causes partial results or actor failure","Exceeding memory limit causes actor run to fail","Expired or invalid JWT token prevents dataset retrieval","Actor run starts successfully but Instagram blocks requests mid-run","Malformed input (missing username/URL) causes actor to reject the run"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract public Instagram data at scale — profiles, posts, hashtags, or places — and want a pay-per-call model without managing Apify credentials. Especially useful for agents needing structured Instagram data for analytics, brand monitoring, or influencer research, where scraping via the Apify ecosystem's proven Instagram actor is preferred over fragile DIY solutions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:32:50.166Z","isFirstParty":false}