Introducing the Instagram APIRead more →

Cosmos Collection Search API. Collections matching your search.

Collections by keyword with exact counts. We handle the proxies, blocks and platform changes.

In your agent: Cosmos MCP server →

Cosmos Collection Search API at a glance

Searches Cosmos's public collections by keyword, a page at a time, in Cosmos's best-match order. Each has its title, link, cover, owner, exact element and follower counts, collaborators, sub-collection count and last change. A query no collection title matches is an empty page.

GET /v1/cosmos/search_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, Cosmos's best match for the query (its search ranking)
  • query is all it needs, e.g. architecture

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
query = architecture
GET /v1/cosmos/search_collectionsTry in
// Node 18+: save this as app.mjs (an ES module) and run: node app.mjs
const params = new URLSearchParams({
  query: "architecture",
});
const res = await fetch(`https://socialtap.dev/v1/cosmos/search_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/search_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

    Words to find in Cosmos collection titles, such as architecture or mid-century modern; case doesn't matter.

  • 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 "1698392581"
urlstring
Canonical playlist URL.
In the example "https://www.cosmos.so/markbraydon91/architecture"
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 "Architecture"
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/52a1b35c-7f63-4432-8e85-a5bf63ecfafb", display_name: "Mark", id: "876856709", …

What teams build with the Cosmos Collection Search API.

  • Find moodboards on a theme

    Search a theme such as brutalism and keep each result's url, title, owner.username and metrics.post_count, to collect the boards curators built around it.

  • Discover the curators of a niche

    Group a query's results by owner.username and add up metrics.follower_count, to find whose collections on a topic people follow most.

  • Start from the largest reference boards

    Order the results by metrics.post_count and read the biggest collections' elements with the Cosmos Collection Posts API.

Good to know before you build.

  • Cosmos matches the words against collection titles, case aside: search the words a curator would name a board with.
  • Cosmos serves the first thousand results of a search: a walk that reaches them ends with page.end_reason platform_limit.
  • A page can hold fewer results than limit while the walk goes on: Cosmos leaves out collections it no longer shows.
  • A first page served from Cosmos's search page (meta.source page) has fewer fields: description, updated_at and most of the owner's and the collaborators' fields are null.

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

More in the API reference.

Is there a Cosmos collection search API that needs no login?
Yes. It reads Cosmos's own collection search, which answers logged-out visitors: send words and get the public collections whose titles match.
Can I search inside one account's collections?
No. Cosmos asks to sign in for a search within one account; the Cosmos Collections API lists an account's public collections from its username.
Can I paste a link from Cosmos's search?
Yes. Send a cosmos.so/search/collections link as query and its words are searched.
How much does the Cosmos Collection Search 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 with your own search.

Type 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