# Cosmos Posts API. Posts, page by page.

> Setting SocialTap up for your user? Follow https://socialtap.dev/setup.md.

Every saved image, video and link of an account. We handle the proxies, blocks and platform changes.

[Get API key](https://socialtap.dev/signup/?next=%2Fdashboard%2Fplayground%2F%3Fendpoint%3Dcosmos.posts)

[In your agent: **Cosmos MCP server** →](https://socialtap.dev/mcp/cosmos/index.md)

## Cosmos Posts API at a glance

Returns the public elements of a Cosmos account, page by page, from its username, profile link, brand page or ID. Each has its full-size images or video, the page it was saved from and its creator there, and a product's price and stock. A verified brand returns the products and pictures of its brand page.

GET `/v1/cosmos/posts`

[Read the API reference](https://socialtap.dev/docs/reference/cosmos/posts/index.md)

- **1 credit** per page, $0.75–$1.97 per 1,000 pages
- **25 typed fields** null when unknown
- **100** posts per page, the order the account's profile shows, not by time
- **`handle`** is all it needs, e.g. `joris.kahl`

## Send one request. Get up to 100 posts back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

`$ npm install socialtap`

`handle = joris.kahl`

[Open in playground](https://socialtap.dev/playground/?endpoint=cosmos.posts)

cURL:

```shell
curl 'https://socialtap.dev/v1/cosmos/posts?handle=joris.kahl' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
```

TypeScript SDK:

```typescript
// Save this as app.mjs (an ES module) and run: node app.mjs
import { SocialTap } from "socialtap";

const client = new SocialTap(); // apiKey defaults to process.env.SOCIALTAP_API_KEY

const res = await client.cosmos.posts.list({ handle: "joris.kahl" });
console.log(res.data);
console.log(res.credits.charged, res.meta.request_id);
```

Python SDK:

```python
from socialtap import SocialTap

client = SocialTap()  # api_key defaults to os.environ["SOCIALTAP_API_KEY"]

res = client.cosmos.posts.list(handle="joris.kahl")
print(res.data)
print(res.credits.charged, res.meta.request_id)
```

Go SDK:

```go
package main

import (
	"context"
	"fmt"
	"log"

	socialtap "socialtap.dev/sdk/go"
)

func main() {
	ctx := context.Background()
	client, err := socialtap.NewClient() // the API key defaults to $SOCIALTAP_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	res, err := client.Cosmos.Posts.List(ctx, socialtap.CosmosPostsParams{Handle: "joris.kahl"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(res.Data)
	fmt.Println(res.Credits.Charged, res.Meta.RequestID)
}
```

200 OK:

```json
{
  "data": [
    {
      "approximate_fields": [],
      "author": {
        "avatar_url": null,
        "display_name": "arquitectos19",
        "id": "1219942873",
        "is_verified": false,
        "url": "https://www.cosmos.so/arquitectos19",
        "username": "arquitectos19"
      },
      "coauthors": [],
      "duration_ms": null,
      "hashtags": [],
      "id": "225132568",
      "is_nsfw": false,
      "is_pinned": null,
      "is_sponsored": null,
      "language": null,
      "link_url": "https://www.hunker.com/13724025/porcelain-tile-ideas-for-kitchen-floor",
      "media": [
        {
          "alt_text": "A kitchen featuring Rosa Perlino Tumbled Marble tile from Mandarin Stone.",
          "duration_ms": null,
          "expires_at": null,
          "height": 1280,
          "thumbnail_url": null,
          "type": "image",
          "url": "https://cdn.cosmos.so/f4270c79-2460-445b-a401-4a2b35b5fd63",
          "width": 936
        }
      ],
      "mentions": [],
      "metrics": {
        "comment_count": null,
        "like_count": null,
        "quote_count": null,
        "repost_count": null,
        "save_count": null,
        "share_count": null,
        "view_count": null
      },
      "platform": "cosmos",
      "platform_specific": {
        "cosmos": {
          "added_at": null,
          "added_by": null,
          "is_ai_generated": false,
          "is_featured": false,
          "playlist_id": "631308985",
          "product": null,
          "source_author": {
            "avatar_url": null,
            "display_name": "Tristan",
            "url": "https://www.pinterest.com/tristanlrch",
            "username": "tristanlrch"
          }
        }
      },
      "platform_type": "media",
      "published_at": "2025-09-09T08:07:36Z",
      "rank": null,
      "sound": null,
      "text": null,
      "thumbnail_url": "https://cdn.cosmos.so/f4270c79-2460-445b-a401-4a2b35b5fd63",
      "title": null,
      "type": "image",
      "unknown_fields": [],
      "url": "https://www.cosmos.so/e/225132568"
    },
    {
      "approximate_fields": [],
      "author": {
        "avatar_url": "https://cdn.cosmos.so/29346e3f-2124-4aa2-a1a3-cff02cd1ce56",
        "display_name": "Joris Kahl",
        "id": "2059029120",
        "is_verified": false,
        "url": "https://www.cosmos.so/joris.kahl",
        "username": "joris.kahl"
      },
      "coauthors": [],
      "duration_ms": 24000,
      "hashtags": [],
      "id": "1015382902",
      "is_nsfw": false,
      "is_pinned": null,
      "is_sponsored": null,
      "language": null,
      "link_url": "https://www.instagram.com/reel/DYZ9TIHIj01/?igsh=eTFtemtkb3huMWpq",
      "media": [
        {
          "alt_text": null,
          "duration_ms": 24000,
          "expires_at": null,
          "height": 1920,
          "thumbnail_url": "https://cdn.cosmos.so/71c3a549-a878-43b0-8873-10c3156537a8",
          "type": "video",
          "url": "https://cdn.cosmos.so/655e4022-9b55-43f1-8180-1f7d8473795a.mp4",
          "width": 1080
        }
      ],
      "mentions": [],
      "metrics": {
        "comment_count": null,
        "like_count": null,
        "quote_count": null,
        "repost_count": null,
        "save_count": null,
        "share_count": null,
        "view_count": null
      },
      "platform": "cosmos",
      "platform_specific": {
        "cosmos": {
          "added_at": null,
          "added_by": null,
          "is_ai_generated": false,
          "is_featured": false,
          "playlist_id": "1219911959",
          "product": null,
          "source_author": {
            "avatar_url": null,
            "display_name": "Ida Lucia",
            "url": "https://www.instagram.com/idaluciam",
            "username": "idaluciam"
          }
        }
      },
      "platform_type": "media",
      "published_at": "2026-05-16T16:20:02Z",
      "rank": null,
      "sound": null,
      "text": null,
      "thumbnail_url": "https://cdn.cosmos.so/71c3a549-a878-43b0-8873-10c3156537a8",
      "title": null,
      "type": "video",
      "unknown_fields": [],
      "url": "https://www.cosmos.so/e/1015382902"
    },
    {
      "approximate_fields": [],
      "author": {
        "avatar_url": "https://cdn.cosmos.so/29346e3f-2124-4aa2-a1a3-cff02cd1ce56",
        "display_name": "Joris Kahl",
        "id": "2059029120",
        "is_verified": false,
        "url": "https://www.cosmos.so/joris.kahl",
        "username": "joris.kahl"
      },
      "coauthors": [],
      "duration_ms": null,
      "hashtags": [],
      "id": "582310533",
      "is_nsfw": false,
      "is_pinned": null,
      "is_sponsored": null,
      "language": null,
      "link_url": "https://www.instagram.com/p/DN1LATp2lWq/?igsh=c3Q1OHhtcGFhd3l5",
      "media": [
        {
          "alt_text": null,
          "duration_ms": null,
          "expires_at": null,
          "height": 740,
          "thumbnail_url": null,
          "type": "image",
          "url": "https://cdn.cosmos.so/0d71030a-e7fe-491d-bca1-a19315a7b65f",
          "width": 1080
        }
      ],
      "mentions": [],
      "metrics": {
        "comment_count": null,
        "like_count": null,
        "quote_count": null,
        "repost_count": null,
        "save_count": null,
        "share_count": null,
        "view_count": null
      },
      "platform": "cosmos",
      "platform_specific": {
        "cosmos": {
          "added_at": null,
          "added_by": null,
          "is_ai_generated": false,
          "is_featured": false,
          "playlist_id": "1030688194",
          "product": null,
          "source_author": {
            "avatar_url": null,
            "display_name": "Antoni Benavente Photographer",
            "url": "https://www.instagram.com/tonibenbar",
            "username": "tonibenbar"
          }
        }
      },
      "platform_type": "media",
      "published_at": "2025-08-28T11:04:01Z",
      "rank": null,
      "sound": null,
      "text": null,
      "thumbnail_url": "https://cdn.cosmos.so/0d71030a-e7fe-491d-bca1-a19315a7b65f",
      "title": null,
      "type": "image",
      "unknown_fields": [],
      "url": "https://www.cosmos.so/e/582310533"
    }
  ],
  "page": {
    "has_more": true,
    "next_cursor": "c1.EXAMPLE_CURSOR",
    "next_cursor_expires_at": "2026-10-26T12:00:00Z",
    "end_reason": null
  },
  "meta": {
    "request_id": "req_3f9c2a7d1e8b4c6a9f0e2d4b6a8c0e1f",
    "platform": "cosmos",
    "source": "api",
    "is_cached": false,
    "credits_charged": 1,
    "latency_ms": 1000,
    "fetched_at": "2026-10-25T12:00:00Z",
    "input": {
      "kind": "profile",
      "id": "2059029120",
      "url": "https://www.cosmos.so/joris.kahl"
    },
    "credits_remaining": 9999,
    "client_request_id": null,
    "warnings": []
  }
}
```

Long arrays and strings are shortened here. Real responses are complete.

## One schema on 24 platforms.

The [response reference](https://socialtap.dev/docs/reference/cosmos/posts/index.md#response) lists every field, its type and when it is `null`. [See the full schema](https://socialtap.dev/resources/post/index.md).

- ### Null means unknown

  A field Cosmos doesn't show is null, never zero or an empty string, so a real zero always means zero.
- ### What it accepts

  The Cosmos account: its username, a link to its profile or a tab of it, a brand page (cosmos.so/brand/\<name>, or brand/\<name>), or its numeric ID.
- ### Write one parser

  Cosmos, TikTok, Instagram and 21 more platforms answer in these fields, so the code that reads one reads them all.

- **`platform`string**: Platform ID (tiktok, youtube, …).
- **`platform`string**: In the example `"cosmos"`
- **`id`string**: Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
- **`id`string**: In the example `"225132568"`
- **`url`string**: Canonical post URL.
- **`url`string**: In the example `"https://www.cosmos.so/e/225132568"`
- **`type`string**: Normalized content shape. New values may be added; treat unknown values as other.
- **`type`string**: In the example `"image"`
- **`platform_type`string**: The platform's own product label, lowercase (reel, short, story, live, tweet, …).
- **`platform_type`string**: In the example `"media"`
- **`title`string**: Headline (YouTube title, Reddit title); null on caption-only platforms.
- **`title`string**: In the example `null`
- **`text`string**: Caption, description or body as plain text.
- **`text`string**: In the example `null`
- **`link_url`string**: The page the post links to: a link post's target, a pin's destination, or the page its link card or link sticker opens; null when it links to none.
- **`link_url`string**: In the example `"https://www.hunker.com/13724025/porcelain-tile-ideas-for-kitchen-floor"`

Live data from 38 platforms.

[TikTok](https://socialtap.dev/apis/tiktok/index.md) · [Instagram](https://socialtap.dev/apis/instagram/index.md) · [Facebook](https://socialtap.dev/apis/facebook/index.md) · [YouTube](https://socialtap.dev/apis/youtube/index.md) · [Reddit](https://socialtap.dev/apis/reddit/index.md) · [Threads](https://socialtap.dev/apis/threads/index.md) · [GitHub](https://socialtap.dev/apis/github/index.md) · [LinkedIn](https://socialtap.dev/apis/linkedin/index.md) · [X](https://socialtap.dev/apis/x/index.md) · [Spotify](https://socialtap.dev/apis/spotify/index.md) · [Hacker News](https://socialtap.dev/apis/hackernews/index.md) · [Amazon](https://socialtap.dev/apis/amazon/index.md) · [Apple Music](https://socialtap.dev/apis/applemusic/index.md) · [Fandom](https://socialtap.dev/apis/fandom/index.md) · [Pinterest](https://socialtap.dev/apis/pinterest/index.md) · [Cosmos](https://socialtap.dev/apis/cosmos/index.md) · [Rumble](https://socialtap.dev/apis/rumble/index.md) · [Bluesky](https://socialtap.dev/apis/bluesky/index.md) · [Twitch](https://socialtap.dev/apis/twitch/index.md) · [Telegram](https://socialtap.dev/apis/telegram/index.md) · [TikTok Shop](https://socialtap.dev/apis/tiktokshop/index.md) · [Kwai](https://socialtap.dev/apis/kwai/index.md) · [Snapchat](https://socialtap.dev/apis/snapchat/index.md) · [SoundCloud](https://socialtap.dev/apis/soundcloud/index.md) · [Truth Social](https://socialtap.dev/apis/truthsocial/index.md) · [Kick](https://socialtap.dev/apis/kick/index.md) · [Komi](https://socialtap.dev/apis/komi/page/index.md) · [Lnk.Bio](https://socialtap.dev/apis/linkbio/profile/index.md) · [Linkme](https://socialtap.dev/apis/linkme/profile/index.md) · [Linktree](https://socialtap.dev/apis/linktree/profile/index.md) · [Pillar](https://socialtap.dev/apis/pillar/page/index.md) · [Yelp](https://socialtap.dev/apis/yelp/search-businesses/index.md) · [TikTok Ad Library](https://socialtap.dev/apis/tiktok-ad-library/index.md) · [Facebook Ad Library](https://socialtap.dev/apis/facebook-ad-library/index.md) · [Facebook Events](https://socialtap.dev/apis/facebook-events/index.md) · [Facebook Marketplace](https://socialtap.dev/apis/facebook-marketplace/index.md) · [Google Ads Transparency Center](https://socialtap.dev/apis/google-ads-transparency/index.md) · [LinkedIn Ad Library](https://socialtap.dev/apis/linkedin-ad-library/index.md)

## What teams build with the Cosmos Posts API.

- ### Collect a curator's references

  Walk an account's pages and keep media\[\].url with link_url, to build a moodboard or dataset from what a designer saves.
- ### Credit the original creators

  platform_specific.cosmos.source_author names who made each element on Instagram, Pinterest or the web, so a saved picture can link back to its maker.
- ### Track a brand's catalog on Cosmos

  Send a brand page link and read platform_specific.cosmos.product for each element's name, price, sale price and stock.

## Good to know before you build.

- Elements come in the profile's own order, not by time, so since and until (compared with published_at) filter each page instead of ending the walk.
- author is who first saved an element to Cosmos, every field null when Cosmos records none: an account's list holds elements it saved from other accounts too.
- A verified brand's own elements are its brand page's: the list its profile shows, which counts in its profile's platform_specific.cosmos.brand_post_count.
- metrics are null: Cosmos shows no views, likes or comments, and counts an element's saves only on its own page.

## 1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

[Plans and packs](https://socialtap.dev/pricing/index.md) · [How this endpoint is priced](https://socialtap.dev/docs/reference/cosmos/posts/index.md#pricing) · [How credits work](https://socialtap.dev/docs/credits/index.md)

| Source | Price per successful page | Per 1,000 pages |
| --- | --- | --- |
| Platform API `api` | 1 credit | $0.75–$1.97 |
| Public page `page` | 1 credit | $0.75–$1.97 |

- Cache hits are free.
- Credits from packs and top-ups never expire.
- A monthly plan's credits are spent first, and what is left of them ends at each renewal.
- Prices exclude tax: sales tax is added at checkout where it applies.
- Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

## Questions about the Cosmos Posts API.

More in the [API reference](https://socialtap.dev/docs/reference/cosmos/posts/index.md).

**Is there a Cosmos scraper that needs no login?**

Yes. This endpoint reads what Cosmos shows any logged-out visitor, so you send a username or link and get the elements back without an account.

**Can I get every element of a large account?**

Yes. Pass next_cursor back until it is null; each page is up to the limit you ask for, and the walk reaches the end of the list.

**Does it return the original image files?**

Yes. media\[\].url is the full-size file on Cosmos's CDN, with its width and height, and a video's file and length.

**How much does the Cosmos Posts API cost?**

A page of up to 100 posts costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

**How do I get the next page?**

Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Other platforms

## Posts on 23 more platforms.

- [TikTok Posts API](https://socialtap.dev/apis/tiktok/posts/index.md) (1 credit / page · `GET /v1/tiktok/posts`)
- [Instagram Posts API](https://socialtap.dev/apis/instagram/posts/index.md) (1 credit / page · `GET /v1/instagram/posts`)
- [Facebook Profile Posts API](https://socialtap.dev/apis/facebook/posts/index.md) (1 credit / page · `GET /v1/facebook/posts`)
- [YouTube Channel Videos API](https://socialtap.dev/apis/youtube/posts/index.md) (From 1 credit / page · `GET /v1/youtube/posts`)
- [Reddit User Posts API](https://socialtap.dev/apis/reddit/posts/index.md) (1 credit / page · `GET /v1/reddit/posts`)
- [Threads Posts API](https://socialtap.dev/apis/threads/posts/index.md) (1 credit / page · `GET /v1/threads/posts`)
- [LinkedIn Posts API](https://socialtap.dev/apis/linkedin/posts/index.md) (From 1 credit / page · `GET /v1/linkedin/posts`)
- [X (Twitter) User Posts API](https://socialtap.dev/apis/x/posts/index.md) (1 credit / page · `GET /v1/x/posts`)
- [Spotify Track API](https://socialtap.dev/apis/spotify/track/index.md) (1 credit · `GET /v1/spotify/track`)
- [Hacker News Story API](https://socialtap.dev/apis/hackernews/story/index.md) (1 credit · `GET /v1/hackernews/story`)
- [Amazon Shop Posts API](https://socialtap.dev/apis/amazon/shop-posts/index.md) (1 credit / page · `GET /v1/amazon/shop_posts`)
- [Apple Music Track API](https://socialtap.dev/apis/applemusic/track/index.md) (1 credit · `GET /v1/applemusic/track`)
- [Fandom Post API](https://socialtap.dev/apis/fandom/post/index.md) (1 credit · `GET /v1/fandom/post`)
- [Pinterest Pin API](https://socialtap.dev/apis/pinterest/pin/index.md) (1 credit · `GET /v1/pinterest/pin`)
- [Rumble Channel Videos API](https://socialtap.dev/apis/rumble/posts/index.md) (1 credit / page · `GET /v1/rumble/posts`)
- [Bluesky User Posts API](https://socialtap.dev/apis/bluesky/posts/index.md) (1 credit / page · `GET /v1/bluesky/posts`)
- [Twitch Video and Clip API](https://socialtap.dev/apis/twitch/video/index.md) (1 credit · `GET /v1/twitch/video`)
- [Telegram Post API](https://socialtap.dev/apis/telegram/post/index.md) (1 credit · `GET /v1/telegram/post`)
- [Kwai User Posts API](https://socialtap.dev/apis/kwai/posts/index.md) (1 credit / page · `GET /v1/kwai/posts`)
- [Snapchat Spotlight API](https://socialtap.dev/apis/snapchat/spotlight/index.md) (1 credit · `GET /v1/snapchat/spotlight`)
- [SoundCloud Track API](https://socialtap.dev/apis/soundcloud/track/index.md) (1 credit · `GET /v1/soundcloud/track`)
- [Truth Social Posts API](https://socialtap.dev/apis/truthsocial/posts/index.md) (1 credit / page · `GET /v1/truthsocial/posts`)
- [Kick Clip API](https://socialtap.dev/apis/kick/post/index.md) (1 credit · `GET /v1/kick/post`)

More Cosmos

## Cosmos API. 8 endpoints, one key.

- [Cosmos Post API](https://socialtap.dev/apis/cosmos/post/index.md) (1 credit · `GET /v1/cosmos/post`)
- [Cosmos Search API](https://socialtap.dev/apis/cosmos/search-posts/index.md) (1 credit / page · `GET /v1/cosmos/search_posts`)
- [Cosmos Collection Posts API](https://socialtap.dev/apis/cosmos/collection-posts/index.md) (1 credit / page · `GET /v1/cosmos/collection_posts`)
- [Cosmos Profile API](https://socialtap.dev/apis/cosmos/profile/index.md) (1 credit · `GET /v1/cosmos/profile`)
- [Cosmos Collection API](https://socialtap.dev/apis/cosmos/collection/index.md) (1 credit · `GET /v1/cosmos/collection`)
- [Cosmos Collections API](https://socialtap.dev/apis/cosmos/collections/index.md) (1 credit / page · `GET /v1/cosmos/collections`)
- [Cosmos Collection Search API](https://socialtap.dev/apis/cosmos/search-collections/index.md) (1 credit / page · `GET /v1/cosmos/search_collections`)

[All 8 Cosmos endpoints](https://socialtap.dev/apis/cosmos/index.md)

## Try it on an account you know.

Paste its handle or link in the playground, or copy the request into your code.

100free credits

- No credit card
- Failed requests are free
- Works on all 310 endpoints

[Start for free](https://socialtap.dev/signup/) [Read the docs](https://socialtap.dev/docs/index.md)

---

[HTML version](https://socialtap.dev/apis/cosmos/posts/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
