Introducing the Instagram APIRead more →

Cosmos Posts API. Posts, page by page.

Every saved image, video and link of an account. We handle the proxies, blocks and platform changes.

In your agent: Cosmos MCP server →

Cosmos Posts API at a glance

Returns the public elements of a Cosmos account, page by page, from its username, profile link, brand page or ID. Each has its full-size images or video, the page it was saved from and its creator there, and a product's price and stock. A verified brand returns the products and pictures of its brand page.

GET /v1/cosmos/posts

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 25 typed fields null when unknown
  • 100 posts per page, the order the account's profile shows, not by time
  • handle is all it needs, e.g. joris.kahl

Send one request. Get up to 100 posts back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
handle = joris.kahl
GET /v1/cosmos/postsTry in
// Node 18+: save this as app.mjs (an ES module) and run: node app.mjs
const params = new URLSearchParams({
  handle: "joris.kahl",
});
const res = await fetch(`https://socialtap.dev/v1/cosmos/posts?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/cosmos/postsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 24 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Cosmos doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The Cosmos account: its username, a link to its profile or a tab of it, a brand page (cosmos.so/brand/<name>, or brand/<name>), or its numeric ID.

  • Write one parser

    Cosmos, TikTok, Instagram and 21 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
In the example "cosmos"
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
In the example "225132568"
urlstring
Canonical post URL.
In the example "https://www.cosmos.so/e/225132568"
typestring
Normalized content shape. New values may be added; treat unknown values as other.
In the example "image"
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
In the example "media"
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
In the example null
textstring
Caption, description or body as plain text.
In the example null
link_urlstring
The page the post links to: a link post's target, a pin's destination, or the page its link card or link sticker opens; null when it links to none.
In the example "https://www.hunker.com/13724025/porcelain-tile-ideas-for-kitchen-floor"

What teams build with the Cosmos Posts API.

  • Collect a curator's references

    Walk an account's pages and keep media[].url with link_url, to build a moodboard or dataset from what a designer saves.

  • Credit the original creators

    platform_specific.cosmos.source_author names who made each element on Instagram, Pinterest or the web, so a saved picture can link back to its maker.

  • Track a brand's catalog on Cosmos

    Send a brand page link and read platform_specific.cosmos.product for each element's name, price, sale price and stock.

Good to know before you build.

  • Elements come in the profile's own order, not by time, so since and until (compared with published_at) filter each page instead of ending the walk.
  • author is who first saved an element to Cosmos, every field null when Cosmos records none: an account's list holds elements it saved from other accounts too.
  • A verified brand's own elements are its brand page's: the list its profile shows, which counts in its profile's platform_specific.cosmos.brand_post_count.
  • metrics are null: Cosmos shows no views, likes or comments, and counts an element's saves only on its own page.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Platform API api1 credit$0.75–$1.97
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Cosmos Posts API.

More in the API reference.

Is there a Cosmos scraper that needs no login?
Yes. This endpoint reads what Cosmos shows any logged-out visitor, so you send a username or link and get the elements back without an account.
Can I get every element of a large account?
Yes. Pass next_cursor back until it is null; each page is up to the limit you ask for, and the walk reaches the end of the list.
Does it return the original image files?
Yes. media[].url is the full-size file on Cosmos's CDN, with its width and height, and a video's file and length.
How much does the Cosmos Posts API cost?
A page of up to 100 posts costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on an account you know.

Paste its handle or link in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 310 endpoints
Start for free Read the docs