Instagram Followers/Following Scraper
Authorizations
X-API-Key or AuthorizationstringheaderrequiredWe recommend sending your Personal API Key in x-api-key. Datablist handles token renewal for you. Optionally, use an access token as Authorization: Bearer <token> if your application manages tokens itself. Send only one credential header.
Generate followers or following users for one or more Instagram profiles, without input rows or a Datablist collection. Results are flat objects, not per-input enrichment outcomes.
Public ID: instagram-source. Get the current definition. You can read it without authentication.
Settings
Send profiles as an array of usernames, numeric user ID strings, or profile URLs. Each element is one profile.
Set scrapingType to followers (default) or following. To limit the request, set limitPerProfile to a positive integer. Without it, there is no requested total limit, including across pagination. API tasks can return more than 100,000 results. Provider pages can exceed a smaller requested limit.
The task handles Instagram pagination for you. Do not send collection resume settings.
Followers results identify the starting profile through followerSourceProfileId, followerSourceProfileUsername, and followerSourceProfileUrl. Following mode uses the equivalent followingSource… fields.
resumeScrapestringResume a followers/following scrape started in this workspace within the last 7 days. When you resume a scrape, the selected profile and scrape type are reused automatically. ⚠️ A Datablist collection can contain up to 100k scraped profiles. To scrape more, resume this scrape in a different collection.
profilesstring[] | stringInstagram profiles to scrape, as an array of usernames, numeric user ID strings, or Instagram profile URLs.
Enabled when: resumeScrape==false.
Show child attributes
One or more of these schemas:
string[]Instagram profiles to scrape, as an array of usernames, numeric user ID strings, or Instagram profile URLs.
scrapingTypestringChoose whether to scrape Instagram followers or following users. Defaults to followers.
Enabled when: resumeScrape==false.
"followers", "following"limitPerProfilenumberDefine the max number of followers/following to scrape for each profile. Default to no limit. 📘 Startup estimate: 1.25 credits for 1 source profile(s). Actual charges depend on returned results.
Additional properties are supported.
Outputs
Each result is a JSON object with the fields below. Fields depend on your settings and the data found; extra fields can appear before the catalog lists them.
instagramUserIdstringInstagram internal id
instagramUsernamestringInstagram username
instagramProfileUrlstringInstagram profile URL
"uri"instagramFullNamestringThe full name of the user
instagramPicturestringInstagram user profile picture.
"uri"instagramPrivatebooleanIs the Instagram profile private.
instagramVerifiedbooleanIs the Instagram profile verified.
followerSourceProfileIdstringIs a follower of XX
Enabled when: scrapingType==followers,false.
followerSourceProfileUsernamestringIs a follower of XX
Enabled when: scrapingType==followers,false.
followerSourceProfileUrlstringIs a follower of XX
Enabled when: scrapingType==followers,false.
"uri"followingSourceProfileIdstringIs followed by
Enabled when: scrapingType==following.
followingSourceProfileUsernamestringIs followed by
Enabled when: scrapingType==following.
followingSourceProfileUrlstringIs followed by
Enabled when: scrapingType==following.
"uri"Additional properties are supported.
Credits and limits
Cost: 0.01 credits per follower/following
Profile resolution and returned objects can consume credits, including work that generates no objects. Use credits.used on the task for actual usage. A requested result limit is not a price cap; maxCredits is a best-effort budget.
Available credits are checked before each execution, including pagination. Within an execution, profile resolution and returned rows reduce the allowance before another provider page starts. If credits run out, generated results and their charges are preserved and the task stops with error.reason: "credits_error". In-flight provider pages and concurrent work can exceed the available balance; these checks do not reserve credits. No requested result limit does not mean unlimited credits or execution time.
Tasks can run for up to 24 hours; completed, failed, or stopped tasks are kept for 90 days. Enrichment and source tasks share your account balance and task limits. Set maxCredits to stop starting new work after a credit threshold; work already underway can still exceed it. See limits and errors.
Accepted task and results
The API returns 202 Accepted with a task ID. Save it, then check links.self every few seconds. Once status is completed, failed, or stopped, read links.results. Failed and stopped tasks can still have useful results. See the task reference.
Example results (sample data and credit amounts):
{ "taskId": "00000000000040008000000000000001", "results": [ { "instagramUsername": "example_user", "instagramProfileUrl": "https://www.instagram.com/example_user/", "instagramFullName": "Example User", "instagramPrivate": false, "instagramVerified": false, "instagramUserId": "10000000001", "instagramPicture": "https://example.com/images/example-user.jpg", "followerSourceProfileId": "10000000002", "followerSourceProfileUsername": "example_profile", "followerSourceProfileUrl": "https://www.instagram.com/example_profile/" } ], "nextCursor": null}If nextCursor is not null, pass it unchanged in the next request to get more results. Pages default to 500 results; limit accepts 1–1,000. A page is at most 128 KiB, so it may contain fewer results than requested.