Introducing the Instagram APIRead more →

Cosmos Collection API. Send a collection link or ID.

Collection with exact elements and followers. We handle the proxies, blocks and platform changes.

In your agent: Cosmos MCP server →

Cosmos Collection API at a glance

Returns a public Cosmos collection from its link or ID, a collection inside another too. It has the exact element and follower counts, the owner, cover and description, the collaborators who add to it, its sub-collections' count and when it last changed. A collection Cosmos doesn't have is a not_found error, a private one private_or_unavailable.

GET /v1/cosmos/collection

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 14 typed fields null when unknown
  • url is all it needs, e.g. https://www.cosmos.so/cosmos/the-blue-zones
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 14 fields 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/cosmos/the-blue-zones
GET /v1/cosmos/collectionTry 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/cosmos/the-blue-zones",
});
const res = await fetch(`https://socialtap.dev/v1/cosmos/collection?${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, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/cosmos/collectionDocs

One schema on 9 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 6 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, facebook, …).
In the example "cosmos"
idstring
Platform-native playlist ID (string): TikTok's playlist (mix) or collection ID, YouTube's list ID (PL…), Facebook's video list ID.
In the example "1341902006"
urlstring
Canonical playlist URL.
In the example "https://www.cosmos.so/cosmos/the-blue-zones"
typestring
playlist: a list its owner curates and orders; collection: posts an account saved into a named public folder (TikTok's collections). New values may be added; treat unknown values as playlist.
In the example "collection"
platform_typestring
The platform's own label, lowercase (mix, collection, playlist, series, podcast, …).
In the example "collection"
titlestring
Name its owner gave it.
In the example "The Blue Zones"
descriptionstring
Description as plain text; null when it has none or the platform shows none (TikTok).
In the example "Those five global regions where people routinely live past 100."
ownerobject
The curating account (for a collection, the one that saved the posts). Where curators are not accounts (Apple Music), only what the platform names, with id and username null.
In the example avatar_url: "https://cdn.cosmos.so/a658f9e9-e757-4f32-8e78-7c5d78bed9a8", display_name: "Cosmos", id: "108564255", …

What teams build with the Cosmos Collection API.

  • Track which moodboards gain followers

    Store metrics.follower_count and metrics.post_count for the same collection links each week, to see which curators' boards people follow.

  • Find who curates a collection with its owner

    platform_specific.cosmos.collaborators lists every account besides the owner that adds to it, with their usernames and pictures, so you can reach the people behind a shared board.

  • Spot collections that went quiet

    platform_specific.cosmos.updated_at says when a collection last changed, to keep only the boards their curators still add to.

Good to know before you build.

  • metrics.post_count counts the elements in the collection, the saved pictures, videos and links its page shows.
  • A link to a collection inside another, cosmos.so/<username>/<collection>/<sub-collection>, returns that sub-collection, with its parent's ID in platform_specific.cosmos.parent_id.

1 credit per request. Failed requests are free.

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

SourcePrice per successful requestPer 1,000 requests
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 API.

More in the API reference.

Does it return the elements in the collection?
No. It returns the collection itself with its counts; the elements in it have an endpoint of their own, page by page.
Can I send a collection's canvas or search link?
Yes. A canvas, organize or search link of a collection returns the collection itself, the same as its plain link.
How much does the Cosmos Collection API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

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