/desearch/instagram/profile/{username}/postsRetrieve normalized public posts for an Instagram username. Billing metadata: successful billable responses include the `X-Desearch-Cost-Usd`, `X-Desearch-Usage-Count`, `X-Desearch-Service`, and `X-Desearch-Currency` headers. JSON object responses also include optional `cost_usd`, `usage_count`, `service`, and `currency` fields. Current prices are at https://desearch.ai/pricing. JSON arrays, text, and streaming responses keep their body shape and expose billing metadata only through headers.
Base URL
https://api.desearch.aiUse Retrieve Instagram Profile Posts when your application needs search-grounded AI results without maintaining its own crawler, social-data pipeline, or retrieval infrastructure. Supply an Instagram handle without @ as the required username path value to read that account's normalized public posts. The profile-posts request supports two optional query parameters. count limits the number requested per page, defaults to 20, and must be an integer from 1 to 100; the returned page can be smaller. cursor is unnecessary on the opening request. For continuation, preserve the username and this endpoint, and return the preceding response's x-desearch-next-cursor token exactly as received. That response header exists only while a further page is available and disappears at the end. Tokens have a 24-hour validity window. Reusing a cursor for another username, using another endpoint's cursor, or sending an expired or otherwise invalid value triggers status 422 without a search or charge. A successful body may be an array typed as InstagramMedia or an object. Each media entry can hold a nullable author referencing InstagramProfile; account totals in that author record have different meanings from the request's page count. Specifically, postsCount reports the exact profile post total if the profile displays it, and is omitted if only the current page of posts was readable. followers is also omitted when Instagram supplies no exact displayed follower count. The author's following field permits integer or null. Profile details username, id, fullName, and avatar accept strings or null, as do the biography and website fields biography and externalUrl. The nullable bioLinks array represents links listed in the bio. category is another nullable string; city is the business address city when shown. Both private and verified allow boolean or null. On the post itself, a true pinned value identifies placement at the top of the account profile. caption stores nullable caption text, with hashtags and mentions represented by string arrays. children is an object array whose item properties are not further defined here. mediaType permits a string or null without an enum restricting it to a fixed list. Other nullable strings on the media record are id, shortcode, url, createTime, mediaUrl, and thumbnailUrl. The engagement record stats may be null; its playCount, viewCount, commentCount, and likeCount all permit nullable integers. Charge metadata for a successful billable call includes X-Desearch-Cost-Usd for US-dollar cost, X-Desearch-Usage-Count for usage units, X-Desearch-Service for the priced service, and X-Desearch-Currency for currency. Object responses can carry the optional counterparts cost_usd, usage_count, service, and currency. An array of posts keeps its body shape and uses the headers for billing metadata. Topic-based discovery uses Instagram hashtag media, while the Instagram API overview links the related public endpoints. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.
Send requests to GET /desearch/instagram/profile/{username}/posts with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.
Test the example request below before integrating it into a larger workflow. Confirm that the returned fields, links, and timestamps meet your freshness requirements, then add schema validation at the application boundary. For agentic systems, preserve source URLs with the generated answer so users can inspect evidence and your application can avoid presenting unsupported claims.
usernamestringrequiredInstagram username without @
countintegerMaximum number of items to return. A page may hold fewer.
Default: 20
cursorstringOpaque pagination cursor. Omit it for the first page. For the next page, send the `x-desearch-next-cursor` response header from the previous page back unchanged, on the same route with the same target (username, tag, post, or search query). A cursor is valid for 24 hours. Any other value, including an expired cursor or one issued by a different route or target, returns 422 and is not charged.
Your API key is sent in the Authorization header.