Cosmos profile collections API
  1. Docs
  2. Cosmos
  3. Cosmos profile collections API

Cosmos profile collections API

The public collections a user owns.

GET /v1/cosmos/profile/collections

GET /v1/cosmos/profile/collections

The public collections a user owns. Keep the cursor unchanged and stop when has_more is false.

  • Cost: 1 credit
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
handlestringyesCosmos username, without a profile URL. Also accepted as username.

Every request also accepts:

  • cursor: the cursor from the previous page (Pagination).
  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).

Example request#

Set your key in the environment first (see Authentication).

1curl -G "https://api.socialscrape.dev/v1/cosmos/profile/collections" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode "handle=design"

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

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_b9f1dc9bd20e7f4c6b207dcd",8  "data": {9    "object": "list",10    "items": [11      {12        "object": "collection",13        "platform": "cosmos",14        "id": "1444486570",15        "url": "https://www.cosmos.so/design/ransom-note-lettering",16        "kind": "collection",17        "title": "ransom note lettering",18        "description": "cut from whatever was lying around",19        "owner": {20          "id": "234172146",21          "handle": "design",22          "name": "Design",23          "url": "https://www.cosmos.so/design",24          "avatar_url": "https://cdn.cosmos.so/e39a4934-53ae-4536-95a3-18ccd4d052a0",25          "verified": null26        },27        "item_count": 38,28        "cover_url": "https://cdn.cosmos.so/13ab2335-6d21-4cbb-899d-ebb313170a71",29        "updated_at": "2026-10-24T18:09:42.434306Z",30        "extra": {31          "cover_ai_generated": false,32          "cover_height": 1350,33          "cover_width": 1080,34          "follower_count": 1008,35          "is_featured": false,36          "is_private": false,37          "slug": "ransom-note-lettering",38          "subcollections": []39        }40      },41      {42        "object": "collection",43        "platform": "cosmos",44        "id": "1691653994",45        "url": "https://www.cosmos.so/design/kids-tv-logos",46        "kind": "collection",47        "title": "kids tv logos",48        "description": "all i'd want to see when school was over",49        "owner": {50          "id": "234172146",51          "handle": "design",52          "name": "Design",53          "url": "https://www.cosmos.so/design",54          "avatar_url": "https://cdn.cosmos.so/e39a4934-53ae-4536-95a3-18ccd4d052a0",55          "verified": null56        },57        "item_count": 48,58        "cover_url": "https://cdn.cosmos.so/a3c300f7-9e89-4f3e-914e-e8d4e4afea73?rect=0,80,324,324",59        "updated_at": "2026-10-24T18:09:08.280481Z",60        "extra": {61          "cover_ai_generated": false,62          "cover_height": 324,63          "cover_width": 324,64          "follower_count": 1004,65          "is_featured": false,66          "is_private": false,67          "slug": "kids-tv-logos",68          "subcollections": []69        }70      }71    ],72    "cursor": "eyJ2MSI6IjE5NzAtMDEtMDFUMDA6MDA6MDBaIiwidjIiOiIyMDI2LTA5LTIzVDIxOjE4OjIyLjQxMDY1NloiLCJ2MyI6MTUxMDg2Mzl9",73    "has_more": true,74    "parent": null75  },76  "cursor": "eyJ2MSI6IjE5NzAtMDEtMDFUMDA6MDA6MDBaIiwidjIiOiIyMDI2LTA5LTIzVDIxOjE4OjIyLjQxMDY1NloiLCJ2MyI6MTUxMDg2Mzl9",77  "has_more": true78}

Response#

A list of Collection objects in data.items, with data.cursor and data.has_more.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
not_found404noThe platform says this profile, post or item does not exist.

Every request can also fail with the account and platform errors listed on the Errors page.

Also served at#

These paths answer the same request, so code written for other APIs keeps working: /v1/cosmos/user/clusters. See Switching from ScrapeCreators.