Suche

Einen Trend durchsuchen

GET /v1/search/trends reads 2 Guthaben

Die nach Rang sortierten Beiträge, die X beim Öffnen eines Trends zeigt: die top-Ergebnismenge für den Namen des Trends, in der Reihenfolge, in der ein Leser sie auf der Trendseite sieht.

Abfrageparameter

Query-ParameterTypBedeutung
q *stringDer Name oder die Anfrage des Trends genau so, wie in einer Trends-Antwort aufgeführt
countint 1–100 = 20Gewünschte Seitengröße; X behandelt sie als Hinweis
cursorstringAus dem next_cursor der vorherigen Seite

Antwort

Dieselbe Form wie bei der Suche, mit product immer top; next_cursor ist auf der ersten Seite ohne Beiträge null. Feld für Feld: Tweet (Lesen).

Status: 200, 400, 422, 429, 502

Anfrage
curl https://api.xsignalfeed.com/v1/search/trends?q=NASA&count=10 \
  -H "Authorization: Bearer xsf_your_key"
Antwort · 200 / 400
{
  "query": "NASA",
  "product": "top",
  "tweets": [
    {
      "id": 2100295141441347962,
      "created_ms": 1789584357973,
      "user_id": 15165493,
      "user": "NASASolarSystem",
      "name": "NASA Solar System",
      "text": "…",
      "lang": "en",
      "reply_to": null,
      "reply_to_status_id": null,
      "reply_to_user_id": null,
      "conversation_id": "2100295141441347962",
      "is_rt": false,
      "rt_of": null,
      "is_quote": false,
      "quoted": null,
      "media": [
        "https://pbs.twimg.com/media/HSW_TFmX0AA6HWR.jpg"
      ],
      "media_items": [
        {
          "type": "photo",
          "url": "https://pbs.twimg.com/media/HSW_TFmX0AA6HWR.jpg",
          "expanded_url": "https://x.com/NASASolarSystem/status/2100295141441347962/photo/1",
          "width": 2856,
          "height": 1604
        }
      ],
      "urls": [
        "https://go.nasa.gov/…"
      ],
      "views": "295748",
      "counts": {
        "reply": 103,
        "rt": 444,
        "like": 2990,
        "quote": 58,
        "bookmark": 253
      },
      "source": "<a href=\"https://www.sprinklr.com\" rel=\"nofollow\">Sprinklr</a>"
    },
    {
      "…": "…"
    }
  ],
  "next_cursor": "DAACCgACHSYw9bMAJxAKAAMd…"
}