Post to X from one API

Publish posts, threads and polls to X, reply to or quote posts and choose who can reply. Long text can be split into a numbered thread automatically, and links count as 23 characters, just like on X.

What works on X

  • Publish now
  • Schedule and queue
  • Post analytics
  • Comments in the inbox
  • Direct messages
  • First comment
  • Public data scraping
  • Video downloads

What you can publish

Text length
280 characters
Images per post
Up to 4
Videos per post
Up to 1
Images and videos together
One kind per post
Video length
Up to 140 seconds
Video file size
Up to 512 MB
Image file size
Up to 5 MB
Media
Optional
Long text
Split into a thread automatically

Links count as 23 characters each, like on X.

Preflight checks these limits for every target before publishing and returns clear errors and warnings.

How you connect

Sign in with X and approve access. Postkea stores the tokens encrypted and refreshes them for you. On Pro and Business you can use your own OAuth app.

Options for X

Pass these in platformSpecificData on the X entry of a post. Everything else, like text, media, first comment and scheduling, works the same on every network.

  • replySettings
  • replyToTweetId
  • quoteTweetId
  • communityId
  • shareWithFollowers
  • poll
  • madeWithAi
  • paidPartnership

Example request

curl -X POST "https://postkea.com/api/v1/posts" \
  -H "Authorization: Bearer $POSTKEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "Our spring pottery workshop opens for booking today.",
  "platforms": [
    {
      "accountId": "acc_x_8f2k",
      "platformSpecificData": {
        "replySettings": "following"
      }
    }
  ],
  "scheduledFor": "2026-11-03T09:00",
  "timezone": "Europe/Berlin"
}'

Read public X data

7 operations for public X content. Each returns clean JSON and costs credits only when it succeeds.

OperationEndpoint
X post detailsText, author, views, likes, reposts, replies, quotes, bookmarks, photos, video variants, poll and quoted post of an X post.POST /v1/scrape/x/tweet
X threadAll consecutive posts of the author in a thread, in order, with the joined text.POST /v1/scrape/x/thread
X post repliesReplies to an X post, ranked by likes or newest first, with authors and like counts.POST /v1/scrape/x/comments
X profileName, bio, avatar, banner, website, location, followers, following, post and like counts and join date of an X account.POST /v1/scrape/x/profile
X profile postsLatest posts of an X account with text, media and engagement counts.Returns a list you can use in pipelinesPOST /v1/scrape/x/tweets
X Article to MarkdownTitle, cover image, author, engagement and the full body of an X Article as Markdown.POST /v1/scrape/x/article
X video transcriptTranscript with timestamps of the video in an X post, from X captions or speech to text.POST /v1/scrape/x/transcript

X questions

Can I schedule X posts with the API?

Yes. Send a post with scheduledFor and a timezone, or addToQueue to use the next free slot of the account. You can also schedule from the dashboard calendar or let an AI agent do it through the MCP server.

What are the X limits?

Posts can have up to 280 characters. Postkea checks text length, media count, file size, duration and aspect ratio before publishing, so you get a clear error instead of a failed post.

What happens if a X post fails?

The post gets a result per network. Failed networks cost no credits, the error says what went wrong, and you can retry them with one call to POST /v1/posts/{id}/retry or one click in the dashboard.

Can I get data from public X posts?

Yes. Use the X scraping operations for details, comments, profiles and more, or POST /v1/scrape/auto with any X link.

Other platforms

Connect your first channels

Free includes 3 channels and 200 credits a month.