/v1/posts
A user's recent posts and reposts
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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-
…