"Best Cosmos Data API in 2026: Read Public cosmos.so Profiles"
This guide covers Cosmos, the visual inspiration app at cosmos.so. It does not cover Azure Cosmos DB or the Cosmos blockchain. Cosmos publishes no official developer API and issues no API keys, so every way to read Cosmos data is unofficial.
Two kinds of options exist. Some read the public web data anyone can see. Others reuse the private API behind the Cosmos web app. For reading public Cosmos profiles in a stable shape, alongside 16 other networks under one key, a read-only public data API like SocialLens is the practical pick. This article ranks the real options, shows a live read of the official @cosmos profile, and is clear about what each route cannot do.
First, which "Cosmos"?
"Cosmos data API" is an ambiguous search, and most results answer a different question.
- Azure Cosmos DB is Microsoft's database. It offers several APIs (NoSQL, MongoDB, Cassandra, Gremlin, Table). Microsoft's guidance is that API for NoSQL is native to Azure Cosmos DB, and that no single API is best for every workload. If this is what you need, Microsoft's Azure Cosmos DB documentation is the place to go.
- Cosmos blockchain data (blocks, transactions, balances) comes from RPC and indexing providers. That is a separate world.
- cosmos.so is the social platform where people save images, videos and links into collections. This guide is about cosmos.so.
On cosmos.so, posts are called "elements" and collections are called "clusters." Element links look like cosmos.so/e/{id}, and media is served from cdn.cosmos.so.
Does Cosmos have an official API?
No. Cosmos provides no public developer API and no API keys. An open-source unofficial MCP project states this directly. The same project warns that it depends on the private API of the cosmos.so web app, and that any change Cosmos makes to that API breaks the tool until a new release ships.
That warning applies to every option below. Each one reads either:
- Public web data, meaning what any logged-out visitor sees on a public profile, or
- The private web-app API at
api.cosmos.so, often with your own logged-in session.
The first route is lower risk. The second can stop working without notice, and it can expose your account if you hand over a session token.
On privacy, Cosmos's privacy policy says information you provide through its public sharing features ("User Content") is considered public and is not covered by the policy's privacy protections, unless applicable law requires otherwise. That supports reading public profiles. It does not grant any right to private data, to logged-in-only data, or to republishing media without regard for the creator's rights.
The best Cosmos data API options in 2026
1. SocialLens (public profile reads, one key for 17 networks)
SocialLens is a read-only social media data API and MCP server. It returns live public data in one JSON schema across TikTok, Instagram, YouTube, Facebook, X, Reddit, LinkedIn, Threads, Pinterest, Telegram, Bluesky, Truth Social, Cosmos, SoundCloud, Kwai, GitHub and Spotify. It never posts, never acts as an account, and never touches private data.
Here is a real read of the official @cosmos profile, taken on 2026-12-04:
curl "https://api.sociallens.dev/v1/profile?platform=cosmos&username=cosmos" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
{
"exists": true,
"username": "cosmos",
"platform": "cosmos",
"nickname": "Cosmos",
"verified": false,
"private": false,
"followers": 5245397,
"is_exact": true,
"following": 0,
"likes": null,
"videos": 754,
"bio": "Your space for inspiration.",
"avatar": "https://cdn.cosmos.so/a658f9e9-e757-4f32-8e78-7c5d78bed9a8",
"id": "108564255",
"created_at": null,
"external_link": "cosmos.so",
"category": null,
"fetched_at": "2026-12-04T03:55:57Z",
"cached": false,
"credits": { "source": "paid", "charged": 1, "balance": 9973 }
}
What this read tells you:
followers: 5245397is an exact integer, andis_exact: trueconfirms it is not a rounded display value.videos: 754is the shared schema's content-count field. It uses the same name on every network, so your code does not need special handling for Cosmos.likes,created_atandcategoryarenullbecause the public source does not expose them. You getnullinstead of a guess.avatarpoints atcdn.cosmos.so, which is the platform's own media host.credits.charged: 1shows that one successful read cost one credit. Errors and not-found handles cost zero.
If a handle does not exist, the response is "exists": false rather than an error, so a typo in a list will not crash your pipeline.
No key yet? AI assistants can use the rate-limited public lookup, which returns the same shape: https://sociallens.dev/lookup?username=cosmos&platform=cosmos.
Agents: the MCP server installs with npx -y sociallens-mcp and the env var SOCIALLENS_API_KEY. Its registry name is dev.sociallens/sociallens-mcp. It uses a read-only API key, not your Cosmos login (see the MCP server comparison).
Best for: reading Cosmos profiles next to Pinterest, Instagram or TikTok in one schema, follower tracking, creator vetting, and agents that need public numbers.
2. An Apify actor (per-result scraping, broadest Cosmos object coverage)
A third-party Apify actor returns Cosmos data as JSON. It covers profiles, the elements and clusters on a profile, single elements, clusters and their saved elements, and search results. You are billed per result.
The actor needs no Cosmos account. Calling it from code does require an Apify account and your Apify API token, usually through the run-sync-get-dataset-items endpoint. The actor is maintained by a third party, so how quickly it is fixed after a Cosmos change depends on that author.
Best for: one-off pulls of clusters, element lists or search results when you are already on Apify. If you are comparing the two platforms more broadly, see Apify alternative for social media data.
3. Unofficial open-source MCP servers (session token)
Open-source MCP servers can connect Claude or another agent to Cosmos. They work by calling the private api.cosmos.so as you. Setup typically asks you to sign in at cosmos.so in a browser, open DevTools, and copy an auth token from a request to api.cosmos.so.
That token is effectively your logged-in account, not a scoped read key. Anything holding it can act as you. The project's own documentation also says a Cosmos API change breaks the server until a new release.
Best for: personal experiments on your own account, where you accept the account risk. It is not suitable for production or for any shared environment.
4. Do-it-yourself scrapers
You can build your own Cosmos scraper, but open-source projects document why it is fragile:
- One scraper notes that Cosmos V2 moved to a Next.js app-router build with streamed server components. Gallery pages still rely on GraphQL (for example
GetClusterElementspaging), and the public gallery HTML exposes the current cluster ID. The author concluded the old scroll-based approach was no longer a good foundation. - A DevTools-based scraper notes that Cosmos virtualizes its grid and renders tiles as buttons, not links. The DOM therefore contains no element URLs, which defeats naive HTML scraping.
Best for: teams that want full control and can maintain the code every time the front end changes.
5. General scraping infrastructure (Bright Data and similar)
Bright Data and similar providers sell proxies and scraping infrastructure. They solve access at scale, but you still write and maintain the Cosmos parser. Read more in our ready-endpoint alternative.
Best for: high-volume, custom extraction where you already run a scraping team.
Comparison: Cosmos data options side by side
| Option | Access method | Credentials needed | Cosmos coverage | Breakage risk | Cost model |
|---|---|---|---|---|---|
| SocialLens | Public profile reads, read-only | SocialLens API key | Public profile (exact followers, content count, bio, avatar, link) | Maintained by the vendor | 1 credit per successful read; errors free; 250 free reads |
| Apify actor | Third-party scraper | Apify account + token | Profiles, elements, clusters, search | Depends on the actor author | Per result |
| Unofficial MCP server | Private web-app API | Your Cosmos session token | Your account's view | High; breaks until a new release | Free, open source |
| DIY scraper | HTML / GraphQL | None or session | Whatever you build | High; front-end rebuilds | Your engineering time |
| Bright Data | Proxy and scraping infrastructure | Bright Data account | Whatever you build | You maintain the parser | Usage-based infrastructure |
Cost per 1,000 Cosmos profile reads on SocialLens: 1,000 credits, because each successful read costs one credit. Not-found handles and errors cost nothing, and prepaid credits never expire. Current credit prices are on pricing. For per-result and infrastructure options, check each provider's live pricing page on the day you buy, since those rates change.
What the public data does not cover
The SocialLens read shown above is a public profile read. Here is what it does not give you.
- Clusters, single elements, and explore feeds. This article verifies the profile read only. If your project depends on cluster contents or element-level save counts, confirm endpoint support for Cosmos in the docs before you build. Otherwise, a per-result scraper that targets those objects may fit better.
- Like totals and creation dates. In this read,
likesandcreated_atarenullbecause the public source does not expose them. - Audience demographics for profiles you do not own. Cosmos does not publish them.
- Private or logged-in-only data, including anything that needs your session. SocialLens never reads this.
- Fraud or authenticity scoring. You get raw public numbers. Scoring is a separate product category (Modash and HypeAuditor do this for the larger networks).
- Media rights. Public visibility does not grant a license to republish someone's images.
Why "one key for 17 networks" matters for Cosmos
Cosmos users are usually designers, creatives and brands who also post on Pinterest, Instagram and TikTok. When you profile a creative across those places, a single schema means the same followers, is_exact, bio and external_link fields on every network:
curl "https://api.sociallens.dev/v1/profile?platform=pinterest&username=cosmos" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
You swap the platform value and keep everything else. On networks with deeper support, /v1/profile-posts and /v1/post-comments return posts and comment threads in the same shape. The design is explained in Unified social media data API. For the Pinterest side of a moodboard workflow specifically, see Best Pinterest data API.
When another option is the better fit
- You need cluster contents or search results today. Use the Apify actor and budget for per-result costs.
- You are experimenting on your own account. An open-source MCP server is fine, as long as you never share the token.
- You run a scraping team at very high volume. Infrastructure like Bright Data with your own parser may be cheaper per record, provided you can absorb the maintenance.
- You meant Azure Cosmos DB. Use Microsoft's documentation. For most new apps, API for NoSQL is the native choice.
FAQ
What is the best Cosmos data API in 2026? For public cosmos.so profile data in a stable schema, a read-only public data API like SocialLens fits best, and it works across 16 other networks with the same key. For cluster contents or search results, an Apify actor that bills per result covers more Cosmos objects.
Does Cosmos have an official API? No. Cosmos provides no public developer API and no API keys. Every option is unofficial and reads either public web data or the private web-app API.
Is the Cosmos follower count exact?
Yes. In the 2026-12-04 read, @cosmos returned followers: 5245397 with is_exact: true, so it is the exact integer and not a rounded display value.
Is it safe to use an MCP server that asks for my Cosmos token? It carries real risk. A copied session token acts as your logged-in account, while a read-only API key can only read public data. For agents, a key-based server is the safer pattern, as covered in MCP vs API for AI agents.
What does a Cosmos read cost on SocialLens? One credit per successful read. Not-found handles and errors cost zero, the first 250 reads are free with no card, and prepaid credits never expire.
Can I read Cosmos data with Claude or ChatGPT?
Yes. Install the MCP server with npx -y sociallens-mcp, or let an assistant call the no-key lookup URL. The setup guide is at sociallens.dev/agents.
Related guides
- Best Social Media MCP Server for AI Agents
- Best Pinterest Data API in 2026
- Apify Alternative for Social Media Data
- Social Media APIs Compared
Start with 250 free reads at sociallens.dev/register. The raw Markdown of this guide is available at this URL plus .md.
Last updated: 2026-12-04