Instagram Scraper - Posts, Profiles & Reels
Under maintenancePricing
from $0.26 / 1,000 item collecteds
Instagram Scraper - Posts, Profiles & Reels
Under maintenanceScrape Instagram profiles, posts, reels, comments, followers, hashtags, locations, search, and more through 36 API endpoints with automatic pagination. Powered by Titan Network.
Pricing
from $0.26 / 1,000 item collecteds
Rating
0.0
(0)
Developer
Titan Network
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Share
This Instagram scraper collects public profiles, posts, reels, comments, followers, following, hashtags, locations, and search results through the Dataclawd API. Choose a task or endpoint, collect one or more targets with automatic endCursor / maxId pagination, and receive one Dataset row for each returned item.
It covers 36 endpoints for user information, profiles, posts, reels, followers, following, post comments and likers, hashtags, search, explore, locations, music, and media/user ID conversion.
Powered by Dataclawd API · Not affiliated with Instagram / Meta, Inc.
What you can scrape
- Public Instagram profiles, posts, reels, comments, followers, following, tagged posts, and reposts.
- Hashtags, places, location feeds, explore sections, music information, and user or media ID conversions.
- User, hashtag, place, and combined search results through the available endpoints.
Use cases
- Research public creator profiles and their posts, reels, comments, followers, or following.
- Monitor public hashtag, location, and explore content for market or content research.
- Build structured datasets from public Instagram search and endpoint results.
FAQ
How does pagination work? The Actor follows endCursor or maxId automatically when paginationParam is auto; use maxItems, maxPages, or startCursor to control or resume collection.
Can I collect multiple targets? Yes. Add parameter objects to targets; the Actor processes each target in sequence.
Where do credentials come from? Dataclawd API credentials are configured by the publisher. Some Instagram endpoints also depend on Dataclawd's backend Instagram session being available.
What public data can I collect? Collect only data you are authorized to collect from the public endpoint responses listed below; availability can vary by endpoint and platform state.
Quick start
- Open the Actor's Input tab.
- Pick a task (采集任务), e.g.
userPosts— the endpoint is selected automatically. - Fill userId (numeric Instagram user ID — use the
idUserIdendpoint to convert a username to an ID, e.g.instagram→25025320). - Optionally set
count(items per page),maxItems/maxPagesto control volume, or add multiple objects to targets to batch-collect several users. - Click Run and open the Dataset tab when it finishes — every collected item is one row with the raw JSON in the
datafield.
Input
| Field | Type | Default | Description |
|---|---|---|---|
task | enum | — | Recommended. Collection intent, auto-maps to an endpoint (see Tasks below). Leave empty only if you set endpoint explicitly. |
endpoint | enum | auto | Advanced. auto = resolve from task; or set an explicit endpoint to override. |
userId | string | — | Instagram numeric user ID. Needed by user* list endpoints (posts/reels/followers/...). |
username | string | — | Instagram username without @ (e.g. instagram). Used by profile / ID-conversion endpoints. |
shortcode | string | — | Post/reel shortcode (the part after /p/ or /reel/ in a post URL), e.g. C4PYiJQubeR. Needed by post* endpoints. |
url | string | — | Full post/reel URL (alternative to shortcode). |
q | string | — | Search keyword. Needed by hashtag* / search* endpoints. |
type | enum | blended | Search type: blended / users / hashtags / places. |
count | integer | 12 | Items per page (IG commonly uses 12 / 30). |
locationPk | string | — | Instagram location ID. Needed by location* endpoints. |
lat / lng | string | — | Coordinates for directory* endpoints. |
tab | enum | ranked | Location posts tab: ranked (top) / recent. |
countryCode / cityId / page | string/int | — | Directory endpoints (directoryCities / directoryLocations). |
musicId | string | — | Music ID. Needed by musicInfo. |
sectionId | string | — | Explore section ID (optional for explore*). |
maxId | string | (empty) | Start cursor for search/hashtag/explore/music endpoints. |
targets | array of object | (empty) | Batch mode: each element is a param set, collected one after another. |
proxyUrl | string | (empty) | Proxy used by Dataclawd's server when fetching Instagram. |
httpMethod | enum | GET | Dataclawd Instagram endpoints are GET-only; POST usually returns endpoint_not_found. |
maxItems | integer | 100 | Stop after this many items in total (max 100 000). |
maxPages | integer | 10 | Max pages per target (max 100). |
startCursor | string | (empty) | Start from a previous cursor (endCursor / maxId). |
itemsPath | string | (empty) | Dot-path to the item list. Leave empty for auto-detection (largest array). |
nextCursorPath | string | (empty) | Dot-path to the next-page cursor. Leave empty for auto-detection (end_cursor / max_id / profile_grid_items_cursor ...). |
paginationParam | enum | auto | Query param used for paging: auto (per endpoint), endCursor, maxId, or none. |
Endpoints
Tasks
Pick a task and the Actor selects the endpoint for you. Fill the params below (username / userId / shortcode / q …).
| Task | Endpoint | Required params |
|---|---|---|
userInfo 用户资料 | userInfo | username or userId |
userPosts 用户帖子 | userPosts | userId |
userReels 用户 Reels | userReels | userId |
userFollowers 用户粉丝 | userFollowers | userId |
userFollowing 用户关注 | userFollowing | userId |
postDetail 帖子详情 | postDetail | shortcode or url |
postComments 帖子评论 | postComments | shortcode or url |
postLikers 帖子点赞 | postLikers | shortcode or url |
hashtagTop Hashtag 热门 | hashtagTop | q |
hashtagRecent Hashtag 最新 | hashtagRecent | q |
search 综合搜索 | search | q |
searchUsers 搜索用户 | searchUsers | q |
searchPlaces 搜索地点 | searchPlaces | q |
locationFeeds 地点帖子 | locationFeeds | locationPk |
explore 探索页 | exploreSection | — |
ID conversion — idUserId, idUsername, idMediaId, idMediaShortcode
User — userInfo, userProfile, userProfile2, userWebProfile, userPosts, userPosts2, userReels, userTagged, userReposts, userRelatedProfiles, userFollowers, userFollowing
Post — postDetail, postComments, postTopComments, postLikers, postDownloadLink, postVideoUrl
Hashtag — hashtagInfo, hashtagRecent, hashtagTop
Search — search, searchUsers, searchHashtags, searchPlaces
Explore — exploreSection, exploreSections
Location / directory — locationFeeds, locationInfo2, directoryCities, directoryLocations
Music — musicInfo
Output (Dataset — one row per collected item)
| Field | Description |
|---|---|
platform | Always instagram. |
endpoint | The endpoint that produced this row. |
status | completed (data collected) or failed (request-level failure). |
target | Human-readable target summary, e.g. userId=25025320. |
page | Page number this item came from (1-based). |
itemIndex | Sequential index within the run (1-based). |
cursor | Cursor used to fetch that page (-1 = first page). |
data | The collected item — the raw JSON returned by Dataclawd (an IG media / user / comment object). |
errorStage | Where a failure happened: connect_failed / server_error / auth_error / rate_limited / request_error / parse_error / empty_result. |
errorCode | HTTP status code (if any), e.g. 429. |
error | Error message on failed rows. |
Note: some Instagram endpoints require Dataclawd's own Instagram session to be logged in. If Dataclawd's backend is logged out / rate-limited, the API returns
login_required/ "Please wait a few minutes" style payloads; the Actor writes them asfailedrows with the original message inerror(best-effort collection still works for endpoints that are available).
Run status & status message
While running, the Actor's status message is updated periodically (开始采集 … → 采集 … 中:已写入 n 条 → 完成:…). The run succeeds (SUCCEEDED) as soon as at least one item is collected. If every target fails or returns nothing, the run ends FAILED with an explanatory message. Billing happens only for completed rows.
How to verify the results
- Run status: the run is
SUCCEEDEDwhen at least one item was written; the status message shows live progress. - Per-item state: open the run's Dataset — every collected item has
status=completedwith the raw JSON indata; failed rows explain why (errorStage/errorCode/error). - Spot-check against the API: re-run one target in the Dataclawd API Console and compare with the row's
data. - Billing: only
completedrows carry theitem-collectedpay-per-event charge.
Developer note: for automated checks (run status, row schema, optional Dataclawd API replay), use
python3 tools/verify_output.py --run <RUN_ID> [--api].
Pricing
Pay-per-event (PPE): one item-collected event per successfully collected item. Failed rows do not carry this event.
Publishing note: define an
item-collectedevent with your price in the Actor's Monetization tab. The platform's built-in synthetic eventapify-default-dataset-itemis charged automatically per default-dataset item when PPE is enabled; set its price to0if you don't want a per-item base fee.
Configuration (publisher)
The following environment variables are configured on the Actor's version settings and are not visible to end users:
DATACLAWD_API_HOST— Dataclawd API base URL (e.g.https://api.dataclawd.example).DATACLAWD_API_KEY— Dataclawd API key (sent asX-API-Key).
Disclaimer
This Actor is not affiliated with, endorsed by, or sponsored by Instagram or Meta, Inc. Collect only data you are authorized to collect, and comply with Instagram's Terms of Service, the Dataclawd service terms, and applicable law.
中文简介
本 Actor 通过 Dataclawd API 批量采集 Instagram 数据(36 个端点):用户资料/帖子/Reels/粉丝/关注、帖子详情/评论/点赞/下载与视频链接、Hashtag 信息/最新/热门、搜索(用户/标签/地点/综合)、探索板块、地点帖子与城市目录、音乐信息,以及用户/媒体 ID 转换。选定采集端点、自动按 endCursor/maxId 游标分页、自动提取条目列表(最大数组启发式;itemsPath/nextCursorPath 可显式指定),并把每条数据以 JSON 写入 Apify 默认 Dataset(成功行同时也是按事件计费的计费事件)。
- 输入:
endpoint(采集端点,必填)、userId(user* 列表端点,可用idUserId由用户名换 ID)、username/shortcode/url/q/locationPk/musicId(各端点对应主体)、count(每页条数)、targets(批量目标列表,可选)、maxItems/maxPages(采集量控制)、maxId/startCursor(续采)、itemsPath/nextCursorPath(高级:显式指定提取路径与游标路径)、paginationParam(分页参数,auto 时 user/post 用endCursor、search/hashtag 用maxId)。 - 输出:每行包含
platform、endpoint、status(completed/failed)、target、page、itemIndex、cursor和采集到的原始数据data;失败行带errorStage(connect_failed/server_error/auth_error/rate_limited/request_error/parse_error/empty_result)、errorCode、error。运行中实时进度通过 Apify 状态消息展示,至少采到 1 条即运行成功(SUCCEEDED),全部失败/空结果则运行失败(FAILED)。 - 注意:部分 Instagram 端点需要 Dataclawd 后端自身已登录 Instagram;若后端登出/被限流,API 会返回
login_required或 "Please wait a few minutes" 之类的负载,Actor 会将其作为failed行写入并保留原始错误信息。 - 计费:按事件计费(PPE),每条成功采集计一个
item-collected事件;失败行不计费(发布时需在 Console Monetization 中配置该事件及价格)。 - 验证数据:
status=completed即成功采集(数据在data字段);开发时可运行python3 tools/verify_output.py --run <RUN_ID>校验。 - 免责声明:本 Actor 与 Instagram / Meta, Inc. 无任何附属关系。请仅采集你被授权采集的数据,并遵守 Instagram 服务条款、Dataclawd 服务条款与当地法律。