X / Twitter-API

X / Twitter-Tweet-API

Alle Details zu einem einzelnen Tweet per URL: Text, Autor-ID und Interaktionszahlen (Likes, Retweets, Antworten, Zitate, Lesezeichen, Aufrufe).

0,21 USD/1k Anfr., Zahlung pro Anfrage, kein Abo.

Post
x.com/NASA/status/1800000000000000000

Post

N

NASA

@NASA

Liftoff! 🚀

1:45 PM · Jun 9, 2024 · 9.4M Views

3,90021.4K142K8,600
Was die API zurückgegeben hat
{
"id": "1800000000000000000",
"text": "Liftoff! 🚀",
"authorId": "11348282",
"likes": 142000,
"retweets": 21400,
"replies": 3900,
"quotes": 1200,
"bookmarks": 8600,
... 10 weitere Felder
}
Verfügbarkeit
100,00%
30d · 585.407 Aufrufe
Anfragen
586.433
30 T · wöchentlich, letzte 12 Wochen
Antwort
1,3s
Median · 30d

Preise und Anbieter

Preise der X / Twitter-Tweet-API: eine API, 5 austauschbare Anbieter

Der günstigste Anbieter bedient zuerst. Fällt er aus, übernimmt der nächste im selben Aufruf.

Du zahlst
2,10 USD
0,21 USD/1k Anfr., nur für das, was du nutzt. Kein Monatstarif.
Deine ersten 476 Anfragen sind mit dem Startguthaben von 0,10 USD kostenlos.

Ausprobieren

X / Twitter Tweet mit einer Anfrage abrufen

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `videoUrl` or `width`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a tweet that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Öffnen in
Beispielantwort
Kostenlose Läufe liefern nur die ersten 3 Ergebnisse. Lade einen Schlüssel auf, um die vollständige Antwort zu bekommen.

Dieses Beispiel zeigt 12 von 26 Feldern. Alle Felder ansehen

{
  "found": true,
  "data": {
    "id": "1800000000000000000",
    "text": "Liftoff! 🚀",
    "authorId": "11348282",
    "likes": 142000,
    "retweets": 21400,
    "replies": 3900,
    "quotes": 1200,
    "bookmarks": 8600,
    "views": 9400000,
    "createdUtc": 1717940700
  }
}

Vollständige Parameter- und Antwortreferenz: jedes Feld, jeder Typ und jedes Beispiel für diesen Endpoint.

Referenz

Eine Anfrage, eine Antwortstruktur.

Jedes Feld, das du sendest, und jedes Feld, das du zurückbekommst, jeweils mit einem echten Beispiel.

Zuletzt geprüft 2026-11-21 · Verfügbarkeit und Latenz gemessen über 30d

Request-Body

JSON, per POST an diesen Endpoint gesendet.

  • urlstring

    https://x.com/NASA/status/1800000000000000000

    Kanonische x.com- oder twitter.com-Status-URL mit numerischer Tweet-ID, einschließlich der Varianten /i/web/status und Media-Share.

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `videoUrl` or `width`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a tweet that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.

Du sendest. Ein kleiner JSON-Body. Die gezeigten Werte sind Beispiele, die du durch deine eigenen ersetzt.

Antwort

JSON, ein Beispielwert pro Feld.

datadata
  • authorHandlestring

    Handle of the account that posted.

  • authorIdstring

    11348282

    Populated whenever the provider has data for the entity.

  • authorImagestring

    Avatar image URL of the account that posted.

  • authorNamestring

    Display name of the account that posted.

  • authorVerifiedboolean

    Whether the posting account carries an X blue verification badge.

  • bookmarksinteger

    8600

  • conversationIdstring

    Id of the conversation the post belongs to, as a string.

  • createdUtcnumber

    1717940700

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.

  • idstring

    1800000000000000000

    Populated whenever the provider has data for the entity.

  • inReplyToIdstring

    Id of the post this post directly replies to, as a string, or null when the post is not a reply.

  • langstring

    Two-letter language code X detected for the post.

  • likesinteger

    142000

  • quotesinteger

    1200

  • repliesinteger

    3900

  • retweetsinteger

    21400

  • textstring

    Liftoff! 🚀

    Populated whenever the provider has data for the entity.

  • viewsinteger

    9400000

    View count, or null when X does not report one for this tweet. Distinct from 0, which means the tweet has no views.

each mediadata.media[]

Photo, video, and GIF attachments on the post. Empty when the post has none.

  • heightintegerkann erfordern

    Pixel height of the media item, when the lane reports it.

  • typestring

    One of photo, video, or gif.

  • urlstring

    Image URL. For a video or GIF this is the poster/thumbnail frame. X media URLs on pbs.twimg.com are publicly fetchable without authentication; append ?name=orig for the full-resolution original.

  • videoUrlstringkann erfordern

    Playable video file URL. Present only for video and gif items.

  • widthintegerkann erfordern

    Pixel width of the media item, when the lane reports it.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Du bekommst zurück. Benannte, typisierte Felder in derselben Struktur, egal welche Quelle antwortet.

Du verkaufst diese API? Hier ist das vollständige Schema, das dein Endpoint zurückgeben muss.

FAQ

Über die X / Twitter-Tweet-API

Die AnyAPI-X / Twitter-Tweet-API liefert X / Twitter-Daten als normalisiertes JSON aus einem POST-Aufruf an /v1/run/twitter.tweet. Alle Details zu einem einzelnen Tweet per URL: Text, Autor-ID und Interaktionszahlen (Likes, Retweets, Antworten, Zitate, Lesezeichen, Aufrufe). AnyAPI routet jede Anfrage über 5 Quellen und weicht automatisch aus, wenn eine ausfällt. Sie kostet ab 0,21 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. In den letzten 30 Tagen waren 100,0% der X / Twitter Tweet-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 1,3 Sekunden über 585.407 gemessene Aufrufe.

Sie kostet ab 0,21 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. Du lädst ein USD-Guthabenkonto auf, und jeder Aufruf bucht davon ab. Bei manchen fehlgeschlagenen, vom Guthabenkonto bezahlten Anfragen fallen Bearbeitungsgebühren an, die wir zum Selbstkostenpreis ohne Aufschlag weitergeben. Die Fehlerantwort zeigt den berechneten Betrag.

Alle Details zu einem einzelnen Tweet per URL: Text, Autor-ID und Interaktionszahlen (Likes, Retweets, Antworten, Zitate, Lesezeichen, Aufrufe). Die Antwort ist normalisiertes JSON mit demselben Envelope, den jeder AnyAPI-Endpoint liefert, sodass das Parsen eines zweiten Endpoints nur eine geänderte URL bedeutet.

In den letzten 30 Tagen waren 100,0% der X / Twitter Tweet-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 1,3 Sekunden über 585.407 gemessene Aufrufe. Das sind AnyAPIs eigene Messungen des Traffics durch das Gateway, laufend neu berechnet, kein veröffentlichtes Service-Level-Ziel.

Ja. Ein neues AnyAPI-Konto startet mit 0,10 USD Gratis-Guthaben, ohne Karte. Das deckt 476 X / Twitter-Tweet-Aufrufe zu je 0,00021 USD.

AnyAPI fragt in derselben Anfrage die nächste seiner 5 Quellen, die günstigste zuerst, sodass der Ausfall einer Quelle deinen Aufruf nicht scheitern lässt.

Sende eine POST-Anfrage an https://api.getanyapi.com/v1/run/twitter.tweet mit deinem AnyAPI-Schlüssel in einem Header „Authorization: Bearer“ und der Eingabe als JSON-Body. Derselbe Schlüssel und dasselbe Guthabenkonto funktionieren bei jedem AnyAPI-Endpoint.

Nein. Du lädst US-Dollar auf ein Prepaid-AnyAPI-Guthaben, und jede Anfrage bucht davon ab. Es gibt keinen Monatstarif und kein Minimum, und dasselbe Guthaben bezahlt jeden AnyAPI-Endpoint.

Ja. Installiere @getanyapi/sdk von npm für TypeScript oder getanyapi von pip für Python. Beide rufen jeden AnyAPI-Endpoint mit demselben Schlüssel auf, und jeder HTTP-Client funktioniert ebenfalls.

Ja. Ein Agent kann sich mit dem AnyAPI-MCP-Server unter https://api.getanyapi.com/mcp verbinden oder mit einem unauthentifizierten POST an https://api.getanyapi.com/agent/signup einen eigenen kostenlosen Test-Schlüssel erstellen und diesen Endpoint über HTTP aufrufen.