Screenshot API (Beta)

This guide explains how to interact with the Screenshot API to capture a screenshot based on a Tweet's status ID.

It's still in beta, if you have any questions or needs, please don't hesitate to contact us via support email. Let me know how I can better assist you.

Fetching a single Screenshot image

You can retrieve a specific screenshot by providing its associated Tweet status ID, the API return image.

Example Request using cURL:

curl --location 'https://api.twittershots.com/api/v1/screenshot/1617979122625712128' \
--header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
--header 'Accept-Language: en,zh;q=0.9,zh-CN;q=0.8' \
--header 'Cache-Control: no-cache' \
--header 'Connection: keep-alive' \
--header 'Pragma: no-cache' \
--header 'x-api-key: YOUR_API_KEY' # Replace YOUR_API_KEY with your actual API key

Notes:

  • Replace 1617979122625712128 with the actual Tweet status ID you want to capture. for example 1617979122625712128 is status ID from Tweet https://x.com/karpathy/status/1617979122625712128
  • Generate key in Account/settings and Replace YOUR_API_KEY with your personal API key.
  • The free plan has a credit limit, you can access to this API via requires subscribing to a Business Plan.