Introducing the Instagram APIRead more →

Cosmos Collection Posts API. Elements, page by page.

Elements in a collection with files and sources. We handle the proxies, blocks and platform changes.

In your agent: Cosmos MCP server →

Cosmos Collection Posts API at a glance

Returns the elements in a public Cosmos collection or sub-collection, from its link or ID, page by page in the collection's own order. Each has every file, the page it came from and its creator, who saved it to Cosmos, and who added it to this collection and when. A missing collection is not_found, a private one private_or_unavailable.

GET /v1/cosmos/collection_posts

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 25 typed fields null when unknown
  • 100 elements per page, the collection's own order: the latest added first, unless its owner moved them
  • url is all it needs, e.g. https://www.cosmos.so/joris.kahl/teh-nerd-stuff

Send one request. Get up to 100 elements 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
url = https://www.cosmos.so/joris.kahl/teh-nerd-stuff
GET /v1/cosmos/collection_postsTry in
// Node 18+: save this as app.mjs (an ES module) and run: node app.mjs
const params = new URLSearchParams({
  url: "https://www.cosmos.so/joris.kahl/teh-nerd-stuff",
});
const res = await fetch(`https://socialtap.dev/v1/cosmos/collection_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/collection_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 collection: its link (cosmos.so/<username>/<collection>), a collection inside another (cosmos.so/<username>/<collection>/<sub-collection>), either's canvas or search view, 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 "1943945589"
urlstring
Canonical post URL.
In the example "https://www.cosmos.so/e/1943945589"
typestring
Normalized content shape. New values may be added; treat unknown values as other.
In the example "video"
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.instagram.com/reel/DgEaqZbtF-N/?lqvp=MWZmaGR2dTkyYzd3ag=="

What teams build with the Cosmos Collection Posts API.

  • Mirror a moodboard's references

    Walk a collection's pages and keep each element's media[].url with its width and height, to rebuild the board in your own tool.

  • Credit the creators behind a collection

    link_url is the Instagram or Pinterest post each element came from and platform_specific.cosmos.source_author names who made it, so a board can credit every original.

  • Watch what a curator adds

    The collection lists its latest additions first unless its owner rearranged it: read the first page each day and keep the element IDs you haven't seen.

Good to know before you build.

  • Elements come in the collection's own order: the latest added first, unless its owner moved them.
  • metrics.save_count is null here; the Cosmos Post API returns an element's save count.
  • author is who saved the element to Cosmos, every field null when Cosmos records none.
  • The page fallback serves the first page (32 elements); next_cursor continues as usual.
  • From the page fallback, added_at and added_by are null, and author has no name or picture when the saver isn't the collection's owner or a collaborator.

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 Collection Posts API.

More in the API reference.

Does it list a sub-collection's elements?
Yes. Send cosmos.so/<username>/<collection>/<sub-collection> or the sub-collection's ID, and the pages are its own elements.
How do I get the collection's name and element count?
The Cosmos Collection API returns the collection itself, with its exact element and follower counts; this one lists what is in it.
How much does the Cosmos Collection Posts API cost?
A page of up to 100 elements 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 a link you already have.

Paste it 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