# Cosmos Collection Search API. Collections matching your search.

> Setting SocialTap up for your user? Follow https://socialtap.dev/setup.md.

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

[Get API key](https://socialtap.dev/signup/?next=%2Fdashboard%2Fplayground%2F%3Fendpoint%3Dcosmos.search_collections)

[In your agent: **Cosmos MCP server** →](https://socialtap.dev/mcp/cosmos/index.md)

## 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](https://socialtap.dev/docs/reference/cosmos/search-collections/index.md)

- **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`

[Open in playground](https://socialtap.dev/playground/?endpoint=cosmos.search_collections)

cURL:

```shell
curl 'https://socialtap.dev/v1/cosmos/search_collections?query=architecture' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
```

TypeScript SDK:

```typescript
// Save this as app.mjs (an ES module) and run: node app.mjs
import { SocialTap } from "socialtap";

const client = new SocialTap(); // apiKey defaults to process.env.SOCIALTAP_API_KEY

const res = await client.cosmos.searchCollections.list({ query: "architecture" });
console.log(res.data);
console.log(res.credits.charged, res.meta.request_id);
```

Python SDK:

```python
from socialtap import SocialTap

client = SocialTap()  # api_key defaults to os.environ["SOCIALTAP_API_KEY"]

res = client.cosmos.search_collections.list(query="architecture")
print(res.data)
print(res.credits.charged, res.meta.request_id)
```

Go SDK:

```go
package main

import (
	"context"
	"fmt"
	"log"

	socialtap "socialtap.dev/sdk/go"
)

func main() {
	ctx := context.Background()
	client, err := socialtap.NewClient() // the API key defaults to $SOCIALTAP_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	res, err := client.Cosmos.SearchCollections.List(ctx, socialtap.CosmosSearchCollectionsParams{Query: "architecture"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(res.Data)
	fmt.Println(res.Credits.Charged, res.Meta.RequestID)
}
```

200 OK:

```json
{
  "data": [
    {
      "approximate_fields": [],
      "created_at": null,
      "description": null,
      "id": "1698392581",
      "is_collaborative": false,
      "metrics": {
        "follower_count": 14,
        "post_count": 3831
      },
      "owner": {
        "avatar_url": "https://cdn.cosmos.so/52a1b35c-7f63-4432-8e85-a5bf63ecfafb",
        "display_name": "Mark",
        "id": "876856709",
        "is_verified": false,
        "url": "https://www.cosmos.so/markbraydon91",
        "username": "markbraydon91"
      },
      "platform": "cosmos",
      "platform_specific": {
        "cosmos": {
          "collaborator_count": 0,
          "collaborators": [],
          "is_featured": false,
          "parent_id": null,
          "slug": "architecture",
          "sub_playlist_count": 0,
          "updated_at": "2026-11-04T13:25:12Z"
        }
      },
      "platform_type": "collection",
      "thumbnail_url": "https://cdn.cosmos.so/639e3e55-f7f1-4ea2-94cd-8ebd42d7bbae",
      "title": "Architecture",
      "type": "collection",
      "unknown_fields": [],
      "url": "https://www.cosmos.so/markbraydon91/architecture"
    },
    {
      "approximate_fields": [],
      "created_at": null,
      "description": null,
      "id": "1615294427",
      "is_collaborative": false,
      "metrics": {
        "follower_count": 30,
        "post_count": 1611
      },
      "owner": {
        "avatar_url": "https://cdn.cosmos.so/images/01a1d0e3-bebe-7efe-9a17-59adf1480ac6",
        "display_name": "Michael",
        "id": "1817490743",
        "is_verified": false,
        "url": "https://www.cosmos.so/ioof48",
        "username": "ioof48"
      },
      "platform": "cosmos",
      "platform_specific": {
        "cosmos": {
          "collaborator_count": 0,
          "collaborators": [],
          "is_featured": false,
          "parent_id": null,
          "slug": "architecture",
          "sub_playlist_count": 0,
          "updated_at": "2026-10-27T16:14:06Z"
        }
      },
      "platform_type": "collection",
      "thumbnail_url": "https://cdn.cosmos.so/8317c942-48e6-4d12-9253-387a32dc525f?rect=0,154,617,617",
      "title": "Architecture",
      "type": "collection",
      "unknown_fields": [],
      "url": "https://www.cosmos.so/ioof48/architecture"
    },
    {
      "approximate_fields": [],
      "created_at": null,
      "description": null,
      "id": "790416591",
      "is_collaborative": false,
      "metrics": {
        "follower_count": 325,
        "post_count": 1474
      },
      "owner": {
        "avatar_url": "https://cdn.cosmos.so/63f983fc-90c5-4549-b0ac-ec9e3de94827",
        "display_name": "Kim Høltermand",
        "id": "232517337",
        "is_verified": false,
        "url": "https://www.cosmos.so/holtermand",
        "username": "holtermand"
      },
      "platform": "cosmos",
      "platform_specific": {
        "cosmos": {
          "collaborator_count": 0,
          "collaborators": [],
          "is_featured": true,
          "parent_id": null,
          "slug": "architecture",
          "sub_playlist_count": 0,
          "updated_at": "2026-10-02T11:30:56Z"
        }
      },
      "platform_type": "collection",
      "thumbnail_url": "https://cdn.cosmos.so/21b5deb6-5b32-4f9d-8e73-94a88dfffe25?rect=0,135,1080,1080",
      "title": "Architecture",
      "type": "collection",
      "unknown_fields": [],
      "url": "https://www.cosmos.so/holtermand/architecture"
    }
  ],
  "page": {
    "has_more": true,
    "next_cursor": "c1.EXAMPLE_CURSOR",
    "next_cursor_expires_at": "2026-10-26T12:00:00Z",
    "end_reason": null
  },
  "meta": {
    "request_id": "req_3f9c2a7d1e8b4c6a9f0e2d4b6a8c0e1f",
    "platform": "cosmos",
    "source": "api",
    "is_cached": false,
    "credits_charged": 1,
    "latency_ms": 1000,
    "fetched_at": "2026-10-25T12:00:00Z",
    "input": null,
    "credits_remaining": 9999,
    "client_request_id": null,
    "warnings": []
  }
}
```

Long arrays and strings are shortened here. Real responses are complete.

## One schema on 9 platforms.

The [response reference](https://socialtap.dev/docs/reference/cosmos/search-collections/index.md#response) lists every field, its type and when it is `null`. [See the full schema](https://socialtap.dev/resources/playlist/index.md).

- ### 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.

- **`platform`string**: Platform ID (tiktok, youtube, facebook, …).
- **`platform`string**: In the example `"cosmos"`
- **`id`string**: Platform-native playlist ID (string): TikTok's playlist (mix) or collection ID, YouTube's list ID (PL…), Facebook's video list ID.
- **`id`string**: In the example `"1698392581"`
- **`url`string**: Canonical playlist URL.
- **`url`string**: In the example `"https://www.cosmos.so/markbraydon91/architecture"`
- **`type`string**: 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.
- **`type`string**: In the example `"collection"`
- **`platform_type`string**: The platform's own label, lowercase (mix, collection, playlist, series, podcast, …).
- **`platform_type`string**: In the example `"collection"`
- **`title`string**: Name its owner gave it.
- **`title`string**: In the example `"Architecture"`
- **`description`string**: Description as plain text; null when it has none or the platform shows none (TikTok).
- **`description`string**: In the example `null`
- **`owner`object**: 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.
- **`owner`object**: In the example `avatar_url: "https://cdn.cosmos.so/52a1b35c-7f63-4432-8e85-a5bf63ecfafb", display_name: "Mark", id: "876856709", …`

Live data from 38 platforms.

[TikTok](https://socialtap.dev/apis/tiktok/index.md) · [Instagram](https://socialtap.dev/apis/instagram/index.md) · [Facebook](https://socialtap.dev/apis/facebook/index.md) · [YouTube](https://socialtap.dev/apis/youtube/index.md) · [Reddit](https://socialtap.dev/apis/reddit/index.md) · [Threads](https://socialtap.dev/apis/threads/index.md) · [GitHub](https://socialtap.dev/apis/github/index.md) · [LinkedIn](https://socialtap.dev/apis/linkedin/index.md) · [X](https://socialtap.dev/apis/x/index.md) · [Spotify](https://socialtap.dev/apis/spotify/index.md) · [Hacker News](https://socialtap.dev/apis/hackernews/index.md) · [Amazon](https://socialtap.dev/apis/amazon/index.md) · [Apple Music](https://socialtap.dev/apis/applemusic/index.md) · [Fandom](https://socialtap.dev/apis/fandom/index.md) · [Pinterest](https://socialtap.dev/apis/pinterest/index.md) · [Cosmos](https://socialtap.dev/apis/cosmos/index.md) · [Rumble](https://socialtap.dev/apis/rumble/index.md) · [Bluesky](https://socialtap.dev/apis/bluesky/index.md) · [Twitch](https://socialtap.dev/apis/twitch/index.md) · [Telegram](https://socialtap.dev/apis/telegram/index.md) · [TikTok Shop](https://socialtap.dev/apis/tiktokshop/index.md) · [Kwai](https://socialtap.dev/apis/kwai/index.md) · [Snapchat](https://socialtap.dev/apis/snapchat/index.md) · [SoundCloud](https://socialtap.dev/apis/soundcloud/index.md) · [Truth Social](https://socialtap.dev/apis/truthsocial/index.md) · [Kick](https://socialtap.dev/apis/kick/index.md) · [Komi](https://socialtap.dev/apis/komi/page/index.md) · [Lnk.Bio](https://socialtap.dev/apis/linkbio/profile/index.md) · [Linkme](https://socialtap.dev/apis/linkme/profile/index.md) · [Linktree](https://socialtap.dev/apis/linktree/profile/index.md) · [Pillar](https://socialtap.dev/apis/pillar/page/index.md) · [Yelp](https://socialtap.dev/apis/yelp/search-businesses/index.md) · [TikTok Ad Library](https://socialtap.dev/apis/tiktok-ad-library/index.md) · [Facebook Ad Library](https://socialtap.dev/apis/facebook-ad-library/index.md) · [Facebook Events](https://socialtap.dev/apis/facebook-events/index.md) · [Facebook Marketplace](https://socialtap.dev/apis/facebook-marketplace/index.md) · [Google Ads Transparency Center](https://socialtap.dev/apis/google-ads-transparency/index.md) · [LinkedIn Ad Library](https://socialtap.dev/apis/linkedin-ad-library/index.md)

## 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.

[Plans and packs](https://socialtap.dev/pricing/index.md) · [How this endpoint is priced](https://socialtap.dev/docs/reference/cosmos/search-collections/index.md#pricing) · [How credits work](https://socialtap.dev/docs/credits/index.md)

| Source | Price per successful page | Per 1,000 pages |
| --- | --- | --- |
| Platform API `api` | 1 credit | $0.75–$1.97 |
| Public page `page` | 1 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](https://socialtap.dev/docs/reference/cosmos/search-collections/index.md).

**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.

Other platforms

## Playlists on 8 more platforms.

- [TikTok Playlists API](https://socialtap.dev/apis/tiktok/playlists/index.md) (1 credit / page · `GET /v1/tiktok/playlists`)
- [Instagram Highlights API](https://socialtap.dev/apis/instagram/highlights/index.md) (1 credit / page · `GET /v1/instagram/highlights`)
- [YouTube Playlist API](https://socialtap.dev/apis/youtube/playlist/index.md) (1 credit · `GET /v1/youtube/playlist`)
- [X (Twitter) List API](https://socialtap.dev/apis/x/list/index.md) (1 credit · `GET /v1/x/list`)
- [Spotify Playlist API](https://socialtap.dev/apis/spotify/playlist/index.md) (1 credit · `GET /v1/spotify/playlist`)
- [Amazon Shop Lists API](https://socialtap.dev/apis/amazon/shop-lists/index.md) (1 credit / page · `GET /v1/amazon/shop_lists`)
- [Apple Music Top Playlists API](https://socialtap.dev/apis/applemusic/top-playlists/index.md) (1 credit / page · `GET /v1/applemusic/top_playlists`)
- [Pinterest Board API](https://socialtap.dev/apis/pinterest/board/index.md) (1 credit · `GET /v1/pinterest/board`)

More Cosmos

## Cosmos API. 8 endpoints, one key.

- [Cosmos Post API](https://socialtap.dev/apis/cosmos/post/index.md) (1 credit · `GET /v1/cosmos/post`)
- [Cosmos Posts API](https://socialtap.dev/apis/cosmos/posts/index.md) (1 credit / page · `GET /v1/cosmos/posts`)
- [Cosmos Search API](https://socialtap.dev/apis/cosmos/search-posts/index.md) (1 credit / page · `GET /v1/cosmos/search_posts`)
- [Cosmos Collection Posts API](https://socialtap.dev/apis/cosmos/collection-posts/index.md) (1 credit / page · `GET /v1/cosmos/collection_posts`)
- [Cosmos Profile API](https://socialtap.dev/apis/cosmos/profile/index.md) (1 credit · `GET /v1/cosmos/profile`)
- [Cosmos Collection API](https://socialtap.dev/apis/cosmos/collection/index.md) (1 credit · `GET /v1/cosmos/collection`)
- [Cosmos Collections API](https://socialtap.dev/apis/cosmos/collections/index.md) (1 credit / page · `GET /v1/cosmos/collections`)

[All 8 Cosmos endpoints](https://socialtap.dev/apis/cosmos/index.md)

## 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](https://socialtap.dev/signup/) [Read the docs](https://socialtap.dev/docs/index.md)

---

[HTML version](https://socialtap.dev/apis/cosmos/search-collections/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
