Home · APIs · Social posts and channels · X (Twitter) post

X (Twitter) post API

One request, one key: POST /v1/social/twitter/post. The sample below is a real response captured 20 November 2026, shortened for display (long text cut, lists cut to three items); it is not invented.

Price

3 credits a call. One call is about $0.0294 and 1,000 calls are about $29.40 at the smallest paid plan's rate.Formula A call that comes back empty is not charged.

Try it free

Runs one real call with the sample input below. No key and no sign-up; a few runs a day per visitor.

{
  "url": "https://x.com/MentionFox/status/2030509507147944155"
}

What it returns

FieldTypeValue in the sample
urlstringhttps://x.com/MentionFox/status/2030509507147944155
platformstringtwitter
extracted_atstring2026-11-20T10:21:36.334384+00:00
titlestringPost
descriptionstringThis post is from a suspended account.
date_sourcestringtwitter_og_meta
thumbnail_urlstringhttps://abs.twimg.com/x-web/assets/og/default-og.a2e144f0cf66.jpg
content_typestringpost
extrasobject{}
credits_usednumber3
latency_msnumber917

Sample response (20 November 2026)

{
  "url": "https://x.com/MentionFox/status/2030509507147944155",
  "platform": "twitter",
  "extracted_at": "2026-11-20T10:21:36.334384+00:00",
  "text": null,
  "title": "Post",
  "description": "This post is from a suspended account.",
  "author_name": null,
  "author_handle": null,
  "author_url": null,
  "author_avatar": null,
  "author_followers": null,
  "author_verified": null,
  "published_at": null,
  "published_at_unix": null,
  "modified_at": null,
  "date_source": "twitter_og_meta",
  "likes": null,
  "comments_count": null,
  "shares": null,
  "views": null,
  "reposts": null,
  "saves": null,
  "thumbnail_url": "https://abs.twimg.com/x-web/assets/og/default-og.a2e144f0cf66.jpg",
  "video_url": null,
  "images": [],
  "content_type": "post",
  "hashtags": [],
  "mentions": [],
  "language": null,
  "extras": {},
  "errors": [],
  "credits_used": 3,
  "latency_ms": 917
}

Measured on that call: 1603 ms.

Code

curl -X POST https://api.foxapis.com/v1/social/twitter/post \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://x.com/MentionFox/status/2030509507147944155"}'
import requests

r = requests.post(
    "https://api.foxapis.com/v1/social/twitter/post",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"url":"https://x.com/MentionFox/status/2030509507147944155"},
)
print(r.json())
const r = await fetch("https://api.foxapis.com/v1/social/twitter/post", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"url":"https://x.com/MentionFox/status/2030509507147944155"}),
});
console.log(await r.json());

n8n (HTTP Request node: paste it into a workflow)

{
  "nodes": [
    {
      "name": "X (Twitter) post",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.foxapis.com/v1/social/twitter/post",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_KEY"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"url\":\"https://x.com/MentionFox/status/2030509507147944155\"}"
      }
    }
  ],
  "connections": {}
}

Assistants (Claude, ChatGPT, Cursor)

Connect the FoxAPIs server once; the tools it offers are listed on the MCP page.

claude mcp add --transport http foxapis https://foxapis.com/mcp \
  --header "Authorization: Bearer YOUR_KEY"

Errors and limits

Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.

Get my free key

Try it free, no key: Buying intent checker

Same category: Social posts and channels · all APIs

How we calculate

Data: scripts/data/endpoint-credits.json and plans.json, 2026-11-20. Every other figure on this page is copied from the record, not calculated by us.