83trust / 100

By Id

by x402.twit.sh in News & content

x402 APIPassing, checked 2 h ago

Retrieve the full content of an X Article by the tweet ID of the post that hosts it. Returns article title, preview text, cover image, publish date, and full article_content as Markdown (headings, bold, italic, lists, images). Not available in the official X API. Query param: id (string, required) - numeric tweet ID of the article post, e.g. GET /articles/by/id?id=2010751592346030461.

GET https://x402.twit.sh/articles/by/id

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
37 ms typical, 37 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.twit.sh/articles/by/id?id=2010751592346030461"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.twit.sh%2Farticles%2Fby%2Fid
const res = await pay("https://x402.twit.sh/articles/by/id?id=2010751592346030461");
console.log(await res.json());

Example input

{
  "id": "2010751592346030461"
}

Example output

{
  "data": {
    "article": {
      "article_content": "# My X Article\n\nParagraph one.\n\nParagraph two with **bold** text.",
      "cover_image_url": "https://pbs.twimg.com/media/example.jpg",
      "id": "abc123",
      "modified_at": "2025-01-02T00:00:00.000Z",
      "preview_text": "A short preview of the article content.",
      "published_at": "2025-01-01T00:00:00.000Z",
      "title": "My X Article"
    },
    "author": {
      "id": "9253672",
      "name": "Hal Finney",
      "username": "halfin"
    },
    "created_at": "2009-01-11T03:39:18.000Z",
    "id": "1110302988",
    "public_metrics": {
      "like_count": 134000,
      "quote_count": 3500,
      "reply_count": 5400,
      "retweet_count": 32000
    },
    "text": "Running bitcoin"
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40237 ms$0.01