Everything the XCASPER SPACE IG SCRAPER can do, in one place. Resolve public Instagram posts, Reels and stories, search with filters, and look up public profiles. No key, no login — just a GET request.
Every endpoint lives at https://ig.xcasper.space and answers with JSON. Responses are pretty-printed. Copy any example URL below and open it in a browser to see the live result.
ENDPOINT 01
Resolve a post, Reel or story.
Paste a public Instagram link — or a username for live stories — and get the media back as ready-to-use links. Carousels return every item.
GET/api/scrape
Auto-detects the kind of link: post, Reel, story or highlight. Returns the media items with direct links, thumbnails and counts.
Parameters
Parameter
Required
Description
url
Yes
A public Instagram post, Reel, story or highlight link — or a username for live stories. username works as an alias.
Stories disappear after 24 hours — a story link that worked yesterday returns a 404 today. The username form always returns whatever is live right now, or a 404 when the account has no live stories.
Try it
ENDPOINT 02
Search, with filters.
Search Instagram by username or post link, and pick what comes back with the type filter. One endpoint, four kinds of results.
GET/api/search
Search for users, videos, Reels or a single post. The filter decides the result — leave it out and the search is auto-detected from what you typed.
Parameters
Parameter
Required
Description
q
Yes
A username, an @handle, or a post / Reel link. query works as an alias.
type
No
The filter: post, users, videos or reels. filter works as an alias. Aliases: user → users, video → videos, reel → reels, posts → post.
Filters
users
Resolve a public profile — display name, username, avatar, profile link and whether it is private.
videos
The account's latest videos — up to 10, with views-ready links, thumbnails, captions and publish times.
reels
The account's latest Reels — up to 10, same shape as videos.
post
One post or Reel, by link. Paste the link itself as q and set type=post.
{
"success": true,
"source": "search",
"type": "post",
"query": "https://www.instagram.com/p/DgC29qbgKnU/",
"author": null,
"caption": "Popular Kenyan city biker Brayo is set to launch his own GTA-inspired motorcycle simulation game, allowing his fans to experience his world through a video game.\nIn an announcement shared on Instagram, Brayo revealed that the upcoming game will feature a multiplayer mode, allowing players to ride, compete and experience the game together with other players.\n👉",
"count": 3,
"items": [
{
"index": 1,
"type": "image",
"url": "https://scontent-gru1-1.cdninstagram.com/v/t51.82787-15/925450033_18186213208441526_3067333242375487472_n.heic?stp=dst-jpg_e35_s640x640_tt6&…",
"filename": "6213208441526_3067333242375487472_n.heic",
"thumbnail": "https://…",
"quality": "ORIGINAL",
"size": null
}
],
"meta": {
"likes": 29073,
"comments": 310,
"published": 1795352284
}
}
Carousel items keep their original .heic filenames, but the CDN serves them as JPEG — they send fine.
Try it
Hashtag and keyword search need a logged-in Instagram account, so they return a 400 here — search by username or post link instead.
ENDPOINT 03
A second route to the same media.
Server 2 resolves the same public links through a different route. Same request, same response shape — use it when the main route has nothing for a link.
GET/api/server2
Fallback resolver for public Instagram links. Returns the same items shape as /api/scrape.
Parameters
Parameter
Required
Description
url
Yes
A public Instagram post, Reel, story or highlight link.
Server 2 returns the same items shape as /api/scrape, without the meta block. Media URLs are long proxy links — shortened here with ….
Try it
ENDPOINT 04
Look up a public profile.
The stalk endpoint: everything the public routes can say about a public account — profile, latest Reels with total likes and the top Reel, and the live-story count.
GET/api/user
Takes a username or a full profile link and returns the public profile, the latest Reels (up to 12) with total likes and the top Reel, and how many live stories the account has right now.
Parameters
Parameter
Required
Description
username
Yes
A username, an @handle, or a full profile link like https://www.instagram.com/cristiano/. q and url work as aliases.
{
"success": true,
"source": "user",
"username": "cristiano",
"author": "Cristiano Ronaldo",
"avatar": "https://…",
"profileUrl": "https://www.instagram.com/cristiano/",
"is_private": false,
"uid": "173560420",
"reels": {
"count": 12,
"totalLikes": 130623121,
"topReel": {
"postId": "4023629041474068893",
"postUrl": "https://www.instagram.com/reel/DfWzUuNAeGd/",
"title": "Portugal estará sempre em mim",
"thumbnail": "https://…",
"likes": 41956578,
"comments": 4090628,
"published": 1793874106
},
"scope": "latest reels"
},
"liveStories": 1,
"note": "Bio, follower and following counts, post count and the verified badge are not available from the public resolver — Instagram only shows them to logged-in accounts."
}
Live example for @cristiano — run the tester below to see live values for any account.
Try it
ENDPOINT 05
Is it up?
A tiny health check for monitoring. It answers fast and never needs a parameter.
GET/health
Returns ok: true while the service is running, with its uptime in seconds.
Every failure is JSON with an error message that says what happened. The status code says what kind of failure it is.
Status
Meaning
400
Something is missing or not allowed — a missing url / q / username, a bad link, or a search that needs a logged-in account (hashtag, keyword, feed posts by username).
403
That account is private.
404
Nothing was found — the link or account could not be resolved, or the account has no media of that kind.
429
Too many requests. Wait a minute and try again.
502
The resolver could not finish the request. Try again, or try /api/server2.