1. Platforms
  2. Cosmos Scraper API
  3. Cosmos collection API

Cosmos collection API

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

GET api.socialscrape.dev/v1/cosmos/collection

Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits

You send url.

Part of the Cosmos Scraper API: 7 Cosmos endpoints on one key.

Request

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

1curl -G "https://api.socialscrape.dev/v1/cosmos/collection" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode 'url=https://www.cosmos.so/design/the-best-band-posters'

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 examples, not your data.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_75f1f87bdfc0e561196ad599",8  "data": {9    "object": "collection",10    "platform": "cosmos",11    "id": "1632840802",12    "url": "https://www.cosmos.so/design/the-best-band-posters",13    "kind": "collection",14    "title": "the best band posters",15    "description": "have you seen one of these in a room before?",16    "owner": {17      "id": "234172146",18      "handle": "design",19      "name": "Design",20      "url": "https://www.cosmos.so/design",21      "avatar_url": "https://cdn.cosmos.so/e39a4934-53ae-4536-95a3-18ccd4d052a0",22      "verified": null23    },24    "item_count": 46,25    "cover_url": "https://cdn.cosmos.so/images/b3964bde-a6d7-418d-91a6-09b1b7b6b9aa?rect=0,0,736,736",26    "updated_at": "2026-10-05T20:01:53.977223Z",27    "extra": {28      "cover_ai_generated": false,29      "cover_height": 736,30      "cover_width": 736,31      "follower_count": 1205,32      "is_featured": true,33      "is_private": false34    }35  },36  "cursor": null,37  "has_more": null38}

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 Python client has client.cosmos.collection(...) and the TypeScript client client.cosmos.collection(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.

Can an AI agent call it?

Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.