Vai al contenuto
GET /v1/comments

The comments on an article

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/devto-api/v1/comments" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/devto-api/v1/comments", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/devto-api/v1/comments");
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/devto-api/v1/comments",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

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

{
    "data": {
        "count": 17,
        "comments": [
            {
                "id": "37fbg",
                "body": "Today's AI comedy showdown based on the joke from the cover Gemini ChatGPT",
                "author": "ben",
                "replies": 1,
                "created_at": "2026-05-04T12:46:13Z",
                "author_name": "Ben Halpern"
            },
            {
                "id": "37fbj",
                "body": "LinkedIn is turning into an infinite source of meme images",
                "author": "phalkmin",
                "replies": 0,
                "created_at": "2026-05-04T12:49:36Z",
                "author_name": "Paulo Henrique"
            },
            {
                "id": "37fbo",
                "body": null,
                "author": "youngfra",
                "replies": 0,
                "created_at": "2026-05-04T12:51:40Z",
                "author_name": "Fraser Young"
            },
            {
                "id": "37fbp",
                "body": null,
                "author": "youngfra",
                "replies": 0,
                "created_at": "2026-05-04T12:51:57Z",
                "author_name": "Fraser Young"
            },
            {
                "id": "37fc0",
                "body": null,
                "author": "youngfra",
                "replies": 0,
                "created_at": "2026-05-04T12:52:17Z",
                "author_name": "Fraser Young"
            },
            {
                "id": "37fcg",
                "body": null,
                "author": "avanichols_dev",
                "replies": 0,
                "created_at": "2026-05-04T13:11:03Z",
                "author_name": "Ava Nichols"
            },
            {
                "id": "37fch",
                "body": null,
                "author": "avanichols_dev",
                "replies": 0,
                "created_at": "2026-05-04T13:11:22Z",
                "author_name": "Ava Nichols"
            },
            {
                "id": "37fco",
                "body": null,
                "author": "gramli",
                "replies": 0,
                "created_at": "2026-05-04T13:25:48Z",
                "author_name": "Daniel Balcarek"
            },
            {
                "id": "37fd0",
                "body": "Today's comiCSS:",
                "author": "alvaromontoro",
                "replies": 0,
                "created_at": "2026-05-04T13:27:33Z",
                "author_name": "Alvaro Montoro"
            },
            {
                "id": "37fd2",
                "body": "Yeah, that's about right...",
                "author": "amtrakguy2",
                "replies": 0,
                "created_at": "2026-05-04T13:30:01Z",
                "author_name": "AmtrakGuy2"
            },
            {
                "id": "37ff8",
                "body": "May the 4th to be with you!",
                "author": "francistrdev",
                "replies": 0,
        
…