Vai al contenuto
GET /v1/posts

A user's recent posts and reposts

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/gettr-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/gettr-api/v1/posts" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gettr-api/v1/posts", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gettr-api/v1/posts");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/gettr-api/v1/posts",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "count": 7,
        "posts": [
            {
                "id": "p2tgf4we387",
                "url": "https://gettr.com/post/p2tgf4we387",
                "text": "Let’s get this straight: Too many Democrats are trashing new House Speaker Mike Johnson for being a Christian. While defending Hamas supporters cheering the slaughter of Jews. Today’s Democrats have become a collection of BLM, Hamas, anti-American, anti-Christian, antisemitic, Marxist trash.",
                "likes": 1190,
                "author": "mrddmia",
                "shares": 460,
                "created": "2023-10-27T22:31:13.015Z",
                "comments": 145,
                "is_repost": true
            },
            {
                "id": "p2tf58l321a",
                "url": "https://gettr.com/post/p2tf58l321a",
                "text": "The Chris Salcedo Show Call 281-558-KSEV / 281-558-5738",
                "likes": 122,
                "author": "chrissalcedo",
                "shares": 40,
                "created": "2023-10-27T12:04:48.642Z",
                "comments": 2,
                "is_repost": true
            },
            {
                "id": "p2te0nv5036",
                "url": "https://gettr.com/post/p2te0nv5036",
                "text": "Tune into Ep. 4 of Loomer Unleashed tonight, LIVE on Rumble at 7 pm EST! LONG LIVE THE MAGA KING: President Trump Dominates Despite Attacks My special guest tonight is @JasonMillerinDC, Trump 2024 campaign Senior Advisor! Watch here! 👇🏻👇🏻👇🏻 https://rumble.com/v3rwf94-long-live-the-maga-king-trump-dominates-despite-attacks.html",
                "likes": 240,
                "author": "lauraloomer",
                "shares": 75,
                "created": "2023-10-26T22:48:09.385Z",
                "comments": 12,
                "is_repost": true
            },
            {
                "id": "p2tb0j4a904",
                "url": "https://gettr.com/post/p2tb0j4a904",
                "text": "President Trump’s Senior Advisor @JasonMillerinDC is my guest on Loomer Unleashed this Thursday! Submit your questions for Jason in the comments below! What would you like me to ask him about President Trump’s campaign? Tune in Thursday, Oct. 26 at 7 pm EST! https://rumble.com/c/LauraLoomer",
                "likes": 241,
                "author": "lauraloomer",
                "shares": 76,
                "created": "2023-10-25T18:46:22.216Z",
                "comments": 17,
                "is_repost": true
            },
            {
                "id": "c25fise8a2a",
                "url": "https://gettr.com/post/c25fise8a2a",
                "text": "Trump is the ONLY candidate that has the desire, motivation, and more importantly, the ability to 'right' all of Biden's wrongs on day one, Rep. Greg Steube https://gettr.com/post/p2gbd1h9b28",
                "likes": null,
                "author": "livefromflorida",
                "shares": null,
                "created": "2023-
…