# Cosmos Collections API. Collections, page by page.

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

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

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

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

## 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](https://socialtap.dev/docs/reference/cosmos/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, 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`

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

cURL:

```shell
curl 'https://socialtap.dev/v1/cosmos/collections?handle=joris.kahl' \
  -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.collections.list({ handle: "joris.kahl" });
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.collections.list(handle="joris.kahl")
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.Collections.List(ctx, socialtap.CosmosCollectionsParams{Handle: "joris.kahl"})
	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": "1508579010",
      "is_collaborative": false,
      "metrics": {
        "follower_count": 11,
        "post_count": 393
      },
      "owner": {
        "avatar_url": "https://cdn.cosmos.so/29346e3f-2124-4aa2-a1a3-cff02cd1ce56",
        "display_name": "Joris Kahl",
        "id": "2059029120",
        "is_verified": false,
        "url": "https://www.cosmos.so/joris.kahl",
        "username": "joris.kahl"
      },
      "platform": "cosmos",
      "platform_specific": {
        "cosmos": {
          "collaborator_count": 0,
          "collaborators": [],
          "is_featured": false,
          "parent_id": null,
          "slug": "lamp-design",
          "sub_playlist_count": 0,
          "updated_at": "2026-11-29T21:32:13Z"
        }
      },
      "platform_type": "collection",
      "thumbnail_url": "https://cdn.cosmos.so/8e21a4b9-78a5-4c79-a218-b9c2eddb18f2",
      "title": "LAMP Design",
      "type": "collection",
      "unknown_fields": [],
      "url": "https://www.cosmos.so/joris.kahl/lamp-design"
    },
    {
      "approximate_fields": [],
      "created_at": null,
      "description": null,
      "id": "734934476",
      "is_collaborative": false,
      "metrics": {
        "follower_count": 6,
        "post_count": 29
      },
      "owner": {
        "avatar_url": "https://cdn.cosmos.so/29346e3f-2124-4aa2-a1a3-cff02cd1ce56",
        "display_name": "Joris Kahl",
        "id": "2059029120",
        "is_verified": false,
        "url": "https://www.cosmos.so/joris.kahl",
        "username": "joris.kahl"
      },
      "platform": "cosmos",
      "platform_specific": {
        "cosmos": {
          "collaborator_count": 0,
          "collaborators": [],
          "is_featured": false,
          "parent_id": null,
          "slug": "fabric",
          "sub_playlist_count": 0,
          "updated_at": "2026-11-29T21:15:50Z"
        }
      },
      "platform_type": "collection",
      "thumbnail_url": "https://cdn.cosmos.so/7d990e9b-93fc-4b70-91d0-0f1996a1255b",
      "title": "Fabric",
      "type": "collection",
      "unknown_fields": [],
      "url": "https://www.cosmos.so/joris.kahl/fabric"
    },
    {
      "approximate_fields": [],
      "created_at": null,
      "description": null,
      "id": "256279205",
      "is_collaborative": false,
      "metrics": {
        "follower_count": 5,
        "post_count": 90
      },
      "owner": {
        "avatar_url": "https://cdn.cosmos.so/29346e3f-2124-4aa2-a1a3-cff02cd1ce56",
        "display_name": "Joris Kahl",
        "id": "2059029120",
        "is_verified": false,
        "url": "https://www.cosmos.so/joris.kahl",
        "username": "joris.kahl"
      },
      "platform": "cosmos",
      "platform_specific": {
        "cosmos": {
          "collaborator_count": 0,
          "collaborators": [],
          "is_featured": false,
          "parent_id": null,
          "slug": "wishlist",
          "sub_playlist_count": 0,
          "updated_at": "2026-11-29T21:15:25Z"
        }
      },
      "platform_type": "collection",
      "thumbnail_url": "https://cdn.cosmos.so/d99d89f1-f1ab-48ac-97a3-cbf5d31c72d0",
      "title": "Wishlist",
      "type": "collection",
      "unknown_fields": [],
      "url": "https://www.cosmos.so/joris.kahl/wishlist"
    }
  ],
  "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": {
      "kind": "profile",
      "id": "2059029120",
      "url": "https://www.cosmos.so/joris.kahl"
    },
    "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/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

  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.

- **`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 `"1508579010"`
- **`url`string**: Canonical playlist URL.
- **`url`string**: In the example `"https://www.cosmos.so/joris.kahl/lamp-design"`
- **`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 `"LAMP Design"`
- **`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/29346e3f-2124-4aa2-a1a3-cff02cd1ce56", display_name: "Joris Kahl", id: "2059029120", …`

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

[Plans and packs](https://socialtap.dev/pricing/index.md) · [How this endpoint is priced](https://socialtap.dev/docs/reference/cosmos/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 Collections API.

More in the [API reference](https://socialtap.dev/docs/reference/cosmos/collections/index.md).

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

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 Collection Search API](https://socialtap.dev/apis/cosmos/search-collections/index.md) (1 credit / page · `GET /v1/cosmos/search_collections`)

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

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

---

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