Cosmos collection API

A public collection: owner, description, cover, counts and its public subcollections (in extra).

GETapi.socialscrape.io/v1/cosmos/collection
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

You send url.

Request

Send your key in the x-api-key header.

curl
curl -G "https://api.socialscrape.io/v1/cosmos/collection" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode 'url=https://www.cosmos.so/design/the-best-band-posters'
Python
import os
import requests

params = {
    "url": "https://www.cosmos.so/design/the-best-band-posters",
}
res = requests.get(
    "https://api.socialscrape.io/v1/cosmos/collection",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
    timeout=60,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/cosmos/collection");
url.search = new URLSearchParams({
  url: "https://www.cosmos.so/design/the-best-band-posters",
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Cosmos collection",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/cosmos/collection",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "https://www.cosmos.so/design/the-best-band-posters"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Parameters

NameTypeRequiredDescription
urlurlyesPublic collection URL (cosmos.so/<user>/<collection>).

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are public data, not yours.

Status 200Sample
{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_75f1f87bdfc0e561196ad599",
  "data": {
    "object": "collection",
    "platform": "cosmos",
    "id": "1632840802",
    "url": "https://www.cosmos.so/design/the-best-band-posters",
    "kind": "collection",
    "title": "the best band posters",
    "description": "have you seen one of these in a room before?",
    "owner": {
      "id": "234172146",
      "handle": "design",
      "name": "Design",
      "url": "https://www.cosmos.so/design",
      "avatar_url": "https://cdn.cosmos.so/e39a4934-53ae-4536-95a3-18ccd4d052a0",
      "verified": null
    },
    "item_count": 46,
    "cover_url": "https://cdn.cosmos.so/images/b3964bde-a6d7-418d-91a6-09b1b7b6b9aa?rect=0,0,736,736",
    "updated_at": "2026-10-05T20:01:53.977223Z",
    "extra": {
      "cover_ai_generated": false,
      "cover_height": 736,
      "cover_width": 736,
      "follower_count": 1205,
      "is_featured": true,
      "is_private": false
    }
  },
  "cursor": null,
  "has_more": null
}

Fields

One Collection in data.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"collection"
platformPlatformyes
idstringyes
urlstring or null
kind"playlist" or "board" or "podcast" or "highlight" or "topic" or "collection" or "unknown"
titlestring or null
descriptionstring or null
ownerAuthor or null
item_countinteger or null
cover_urlstring or null
updated_atstring (ISO 8601 date-time) or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

Is there an SDK call for it?

The preview Python client has client.cosmos.collection(...) and the TypeScript client client.cosmos.collection(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.

Can an AI agent call it?

Yes. The MCP server reaches every built endpoint, with the same prices.

Build on social data early.

Developers and agent builders get the first keys.

Get early access