Introducing the Instagram APIRead more →

Cosmos Collections API. Collections, page by page.

Every public collection of an account. We handle the proxies, blocks and platform changes.

In your agent: Cosmos MCP server →

Cosmos Collections API at a glance

Returns the public collections a Cosmos account owns or adds to, page by page, from its username, profile link, brand page or ID. Each has its title, description, link, cover, owner, exact element and follower counts, collaborators, sub-collection count and last change. An account Cosmos doesn't have is not_found; one with no public collections is an empty page.

GET /v1/cosmos/collections

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 14 typed fields null when unknown
  • 100 collections per page, the order the account's Collections tab shows: pinned collections first, then Cosmos's own recent-activity ranking (mostly, not strictly, by last update)
  • handle is all it needs, e.g. joris.kahl

Send one request. Get up to 100 collections 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/collectionsTry 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/collections?${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/collectionsLong arrays and strings are shortened here. Real responses are complete.Docs

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 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 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 "1508579010"
urlstring
Canonical playlist URL.
In the example "https://www.cosmos.so/joris.kahl/lamp-design"
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 "LAMP Design"
descriptionstring
Description as plain text; null when it has none or the platform shows none (TikTok).
In the example null
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/29346e3f-2124-4aa2-a1a3-cff02cd1ce56", display_name: "Joris Kahl", id: "2059029120", …

What teams build with the Cosmos Collections API.

  • Map how a curator organizes their taste

    Walk an account's pages and keep title, description and metrics.post_count of the collections it owns, to see which themes a designer or studio collects most.

  • Find the collections people follow

    Sort the items by metrics.follower_count to surface an account's most followed collections, then track those links with the Collection API.

  • Spot shared moodboards

    is_collaborative and platform_specific.cosmos.collaborator_count show which collections several people add to, such as a studio's team boards.

Good to know before you build.

  • The list includes collections the account was invited to add to, which another account owns: keep those whose owner.id equals meta.input.id for the account's own.
  • Only public collections are listed: Cosmos shows private ones to their owner alone.
  • Sub-collections are not listed on their own: platform_specific.cosmos.sub_playlist_count counts each collection's, and the Collection API returns one from its link.
  • metrics.follower_count and platform_specific.cosmos.updated_at are null on a page served from the account's Collections page, whose data leaves them out.

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 Collections API.

More in the API reference.

Is there a Cosmos collections 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 account's public collections back.
Does it return the elements inside each collection?
No. It returns each collection with its element count, cover and owner; the elements themselves are not part of the answer.
How much does the Cosmos Collections API cost?
A page of up to 100 collections 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