Search and places
Instagram Profile API
Retrieve a public Instagram profile and its posts. Continue the source-backed post feed with next_page_token. Confirmed missing profiles return HTTP 200 with empty results and search_parameters.profile_not_found=true, costing one credit. Malformed requests and retrieval failures are uncharged.
Make a request
Use your existing PrismCrawl API key and credit balance. A completed request consumes one credit, including recognized empty or unavailable results and source changes found during a valid continuation. Validation and operational errors remain uncharged. Each completed continuation request is billed separately.
curl 'https://api.prismcrawl.com/v1/instagram/profile' \
--request POST \
--header 'content-type: application/json' \
--header 'x-api-key: <PRISMCRAWL_API_KEY>' \
--data '{
"id": "nasa"
}'Supported parameters
| Parameter | Usage |
|---|---|
idRequired | Public Instagram username. |
device | Device presentation for the source request. desktop, mobile, tablet |
html | Return the encoded original response rather than parsed JSON. |
zero_trace | Do not archive source or parsed response artifacts. |
next_page_token | Copy the opaque next_page_token from the previous response using the same account, search parameters, device, and result limit. Tokens expire after one hour; restart pagination if rejected or expired. |
Structured results
Read items from data.content.results. The response also includes the search metadata, pagination state, and any extracted SERP features. Optional fields appear when supplied by the provider.
addressbiographycategorycoordinatesdescriptionexternal_urlfollowersfollowingidis_privateis_verifiedlatitudelongitudemedianamephonepositionpostsprofile_pic_urlprofile_pic_url_hdrankratingrating_maxrating_sourcereview_countsnippetthumbnailtitletypeurlusernamewebsiteContinue with data.content.next_page_token when has_next_page is true. Omit page when using a token and keep the other request parameters unchanged, including the query or ID, country, language, device, result limit, and sort order. Stop when no token is returned. Tokens belong to the same account and expire after one hour. Restart pagination if a token is expired or rejected, including tokens issued before authenticated tokens were introduced. If the source inventory changes after a valid continuation is fetched, a completed HTTP 200 response costs one credit and marks pagination_limited: true with pagination_reason: stale_cursor. Keep any returned results and restart pagination; no continuation token is returned.
SDKs and guides
The official SDKs cover this endpoint with typed parameters, automatic retries, and pagination helpers.
- Python SDK:
pip install prismcrawl - Node.js SDK:
npm install prismcrawl