# Cosmos Collection API. Send a collection link or ID.

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

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

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

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

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

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

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

cURL:

```shell
curl -G 'https://socialtap.dev/v1/cosmos/collection' \
  --data-urlencode 'url=https://www.cosmos.so/cosmos/the-blue-zones' \
  -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.collection.get({ url: "https://www.cosmos.so/cosmos/the-blue-zones" });
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.collection.get(url="https://www.cosmos.so/cosmos/the-blue-zones")
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.Collection.Get(ctx, socialtap.CosmosCollectionParams{URL: "https://www.cosmos.so/cosmos/the-blue-zones"})
	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": "Those five global regions where people routinely live past 100.",
    "id": "1341902006",
    "is_collaborative": false,
    "metrics": {
      "follower_count": 3908445,
      "post_count": 78
    },
    "owner": {
      "avatar_url": "https://cdn.cosmos.so/a658f9e9-e757-4f32-8e78-7c5d78bed9a8",
      "display_name": "Cosmos",
      "id": "108564255",
      "is_verified": false,
      "url": "https://www.cosmos.so/cosmos",
      "username": "cosmos"
    },
    "platform": "cosmos",
    "platform_specific": {
      "cosmos": {
        "collaborator_count": 0,
        "collaborators": [],
        "is_featured": true,
        "parent_id": null,
        "slug": "the-blue-zones",
        "sub_playlist_count": 0,
        "updated_at": "2026-04-15T14:36:16Z"
      }
    },
    "platform_type": "collection",
    "thumbnail_url": "https://cdn.cosmos.so/ad519551-5715-43d4-92e9-70551137b63a?rect=164,0,1275,1275",
    "title": "The Blue Zones",
    "type": "collection",
    "unknown_fields": [],
    "url": "https://www.cosmos.so/cosmos/the-blue-zones"
  },
  "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": "playlist",
      "id": "1341902006",
      "url": "https://www.cosmos.so/cosmos/the-blue-zones"
    },
    "credits_remaining": 9999,
    "client_request_id": null,
    "warnings": []
  }
}
```

## One schema on 9 platforms.

The [response reference](https://socialtap.dev/docs/reference/cosmos/collection/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 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.

- **`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 `"1341902006"`
- **`url`string**: Canonical playlist URL.
- **`url`string**: In the example `"https://www.cosmos.so/cosmos/the-blue-zones"`
- **`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 `"The Blue Zones"`
- **`description`string**: Description as plain text; null when it has none or the platform shows none (TikTok).
- **`description`string**: In the example `"Those five global regions where people routinely live past 100."`
- **`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/a658f9e9-e757-4f32-8e78-7c5d78bed9a8", display_name: "Cosmos", id: "108564255", …`

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

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

| Source | Price per successful request | Per 1,000 requests |
| --- | --- | --- |
| 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 API.

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

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

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 Collections API](https://socialtap.dev/apis/cosmos/collections/index.md) (1 credit / page · `GET /v1/cosmos/collections`)
- [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 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](https://socialtap.dev/signup/) [Read the docs](https://socialtap.dev/docs/index.md)

---

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