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_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | yes | Cosmos username, without a profile URL. Also accepted as username. |
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.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"1import os2import requests34params = {5 "handle": "design",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/cosmos/profile/collections",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11)12body = res.json()1314if body["ok"]:15 print(body["data"])16else:17 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/cosmos/profile/collections");2url.search = new URLSearchParams({3 "handle": "design"4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape Cosmos profile collections",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/cosmos/profile/collections",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "handle",19 "value": "design"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
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.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
not_found | 404 | no | The 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.
Related endpoints#
- Cosmos profile (
GET /v1/cosmos/profile) - Cosmos profile posts (
GET /v1/cosmos/profile/posts) - Cosmos post (
GET /v1/cosmos/post) - Cosmos collection (
GET /v1/cosmos/collection) - Cosmos collection posts (
GET /v1/cosmos/collection/posts) - Cosmos search (
GET /v1/cosmos/search)