Skip to Content
API ReferenceInstagram

Instagram API

Instagram posts, user profiles, comments, and hashtag search.

  • Tag search returns matching hashtags for a given keyword query
  • User profiles include bio, follower/following counts, and recent posts
  • Use the Instagram username (e.g. zuck) for profile lookups

Tags

GET /instagram/tags/search — 2 credits

Search Instagram hashtags by keyword.

ParamTypeRequiredDescription
qstringYesTag search query
curl -H "x-api-key: sk_byc_xxx" \ "https://api.bycrawl.com/instagram/tags/search?q=travel"

Response

{ "tags": [ { "name": "travel", "mediaCount": 793685751, "formattedMediaCount": "793M" }, { "name": "travelphotographer", "mediaCount": 5620420, "formattedMediaCount": "5.6M" } ] }

Users

GET /instagram/users/:username — 4 credits

Get Instagram user profile with recent posts.

ParamTypeRequiredDescription
usernamestringYesInstagram username
curl -H "x-api-key: sk_byc_xxx" \ https://api.bycrawl.com/instagram/users/zuck

Response

{ "username": "nasa", "fullName": "NASA", "biography": "Exploring the universe and our home planet...", "followerCount": 99209932, "followingCount": 93, "postCount": 4628, "isVerified": true, "isPrivate": false, "profilePicUrl": "https://...", "externalUrl": "https://www.nasa.gov/", "category": null, "bioLinks": [ { "title": "", "url": "https://www.nasa.gov" } ], "isProfessional": true, "pronouns": [], "recentPosts": [ { "id": "3846946165649269175", "shortcode": "DVjGSfZk2G3", "caption": "Catch this month's planetary hangout...", "likeCount": 40190, "commentCount": 243, "isVideo": true, "thumbnailUrl": "https://...", "takenAt": "2026-03-06T15:42:53.000Z", "mediaType": "video", "location": null, "taggedUsers": [], "displayUrl": "https://...", "accessibilityCaption": null } ] }

Posts

GET /instagram/posts/:shortcode — 2 credits

Get a single Instagram post by shortcode.

ParamTypeRequiredDescription
shortcodestringYesPost shortcode (from URL)
curl -H "x-api-key: sk_byc_xxx" \ https://api.bycrawl.com/instagram/posts/CxBcDeFgHiJ

Response

{ "id": "3846946165649269175", "shortcode": "DVjGSfZk2G3", "caption": "Catch this month's planetary hangout...", "likeCount": 40192, "commentCount": 243, "isVideo": true, "thumbnailUrl": "https://...", "takenAt": "2026-03-06T15:42:53.000Z", "mediaType": "video", "location": null, "taggedUsers": [], "displayUrl": "https://...", "accessibilityCaption": null, "owner": { "id": "528817151", "username": "nasa", "fullName": "NASA", "profilePicUrl": "https://...", "isVerified": true }, "videoUrl": "https://...", "dimensions": { "width": 1080, "height": 1920 }, "videoViewCount": 371334 }

GET /instagram/posts/:shortcode/comments — 5 credits

Get comments on an Instagram post with pagination.

ParamTypeRequiredDescription
shortcodestringYesPost shortcode
cursorstringNoPagination cursor
curl -H "x-api-key: sk_byc_xxx" \ https://api.bycrawl.com/instagram/posts/CxBcDeFgHiJ/comments

Response

{ "comments": [ { "id": "18203561371331194", "text": "Can NASA lay an egg that looks like the moon...", "createdAt": "2026-03-07T16:50:06.000Z", "owner": { "username": "para_dise3339", "profilePicUrl": "https://..." }, "likeCount": 0, "replyCount": 0 } ], "nextCursor": "eyJzZXJ2ZXJfY3Vyc29yIjogIlFWRk..." }

GET /instagram/users/:username/posts — 5 credits

Get an Instagram user’s posts with pagination.

ParamTypeRequiredDescription
usernamestringYesInstagram username
cursorstringNoPagination cursor
curl -H "x-api-key: sk_byc_xxx" \ "https://api.bycrawl.com/instagram/users/zuck/posts"

Response

{ "posts": [ { "id": "3846946165649269175", "shortcode": "DVjGSfZk2G3", "caption": "Catch this month's planetary hangout...", "likeCount": 40192, "commentCount": 243, "isVideo": true, "thumbnailUrl": "https://...", "takenAt": "2026-03-06T15:42:53.000Z", "mediaType": "video", "location": null, "taggedUsers": [], "displayUrl": "https://...", "accessibilityCaption": null } ], "nextCursor": "eyJ1IjoiNTI4ODE3MTUxIiwiYyI6Ij..." }