Developer Docs

PostCapture API

Generate beautiful, shareable screenshots of social media posts programmatically. Support for X (Twitter), YouTube, TikTok, and Bluesky.

Quick Start

1

Get your API key

Sign in to your PostCapture dashboard and create an API key. Keys are prefixed with sk_.

2

Make a request

Send a GET request to the screenshot endpoint with the post URL and your API key.

1curl -o screenshot.png \
2 "https://postcapture.com/api/screenshot?postUrl=https://x.com/postcaboron/status/1924847327370461555&apiKey=sk_your_api_key"
3

Get your screenshot

The API returns a image/png binary. Save it, embed it, or pipe it wherever you need.

Explore the Docs

Base URL

https://postcapture.com

All API endpoints are relative to this base URL. Each request costs 1 credit.