{"name":"DEV.to Article Comments API","description":"Read DEV.to article discussions with comment text, publication time, author names and nested replies.","api_id":"generated_28154e71a9995dd92be70c8a","slug":"dev-to-article-comments-api","source":{"name":"dev.to","domain":"dev.to","url":"https://dev.to/"},"category":"social_communities","countries":[],"languages":[],"record_types":[],"tags":[],"limitations":[],"updated":"2026-11-29","note":"Sample records are saved samples, not a live run. CleanedWeb is not affiliated with the source.","version":"1.0","versions":[{"major":1,"latest_minor":"1.0","status":"current","sunset_at":null}],"changelog":[{"version":"1.0","date":"2026-11-28T20:57:44.000Z","kind":"major","changes":[]}],"version_note":"Pin a major with \"version\": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.","endpoints":[{"endpoint_id":"generated_28154e71a9995dd92be70c8a_search","name":"List DEV.to Article Comments","description":"Return records within the accepted scope.","definition_version":"854632b4a3a1a85799a6102c9f02c4abc392fb4e837742441e7fc75722d88f10","method":"POST","path":"/v1/catalog/public/apis/generated_28154e71a9995dd92be70c8a/endpoints/generated_28154e71a9995dd92be70c8a_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_28154e71a9995dd92be70c8a/endpoints/generated_28154e71a9995dd92be70c8a_search/run","authentication":{"type":"bearer","scheme":"Authorization: Bearer <API key>","scope":"run","note":"Reading this file and the live catalog needs no credential. A run needs a CleanedWeb account and uses the credits of its workspace.","docs":"https://cleanedweb.com/docs/run-catalog-api/"},"required_headers":[{"name":"Authorization","value":"Bearer YOUR_API_KEY","description":"An API key with the run scope."},{"name":"Idempotency-Key","value":"UNIQUE_REQUEST_ID","description":"Required. Save it before you send; reuse it only to retry the same request and to read the result. 1-200 characters: letters, numbers, . _ : -"},{"name":"Content-Type","value":"application/json","description":"The body is JSON."}],"request_body":{"input":"An object that follows input_schema.","max_items":"Optional. Stop after this many records.","timeout_seconds":"Optional, 60-86400, default 10800.","wait_seconds":"Optional, 0-86400, default 90. How long the request waits before answering 202.","version":"Optional integer major. Leave it out for the latest major."},"input_schema":{"type":"object","properties":{"a_id":{"type":"string","minLength":1,"maxLength":200,"examples":["4222221","4943128"],"default":"4222221","description":"Required. The source request's own \"a_id\" value, sent exactly as typed."}},"required":["a_id"],"additionalProperties":false},"output_schema":{"additionalProperties":true,"properties":{"ai_disclosure_label":{"type":["string"]},"ai_disclosure_level":{"type":["string"]},"body_html":{"type":["string"]},"children":{"type":["array"],"x-cleanedweb-source-value-opaque":true},"children_ai_disclosure_label":{"items":{"type":["string"]},"type":["array"]},"children_ai_disclosure_level":{"items":{"type":["string"]},"type":["array"]},"children_body_html":{"items":{"type":["string"]},"type":["array"]},"children_created_at":{"items":{"type":["string"]},"type":["array"]},"children_id_code":{"items":{"type":["string"]},"type":["array"]},"children_type_of":{"items":{"type":["string"]},"type":["array"]},"children_user_profile_image":{"items":{"type":["string"]},"type":["array"]},"children_user_profile_image_90":{"items":{"type":["string"]},"type":["array"]},"children_user_website_url":{"items":{"type":["string"]},"type":["array"]},"created_at":{"type":["string"]},"id_code":{"type":["string"]},"name":{"type":["string"]},"profile_image":{"type":["string"]},"profile_image_90":{"type":["string"]},"type_of":{"type":["string"]},"user":{"type":["object"],"x-cleanedweb-source-value-opaque":true},"website_url":{"type":"string"}},"required":["id_code"],"type":"object"},"output_schema_note":"Some fields the source returns are not published here (identifiers, personal details and page-building noise). A record can carry fields this schema does not list, so additionalProperties is true. Do not reject a record for an extra field. The live contract, linked as live_contract, lists every field the saved definition declares.","examples":[{"kind":"saved_validation_records","saved_at":"2026-11-28T20:57:44.930Z","live_verified":false,"request":{"input":{}},"records_shown":2,"records_saved":2,"records":[{"ai_disclosure_label":"Not Disclosed","ai_disclosure_level":"not_disclosed","body_html":"<p>Klaudia, that's quite a lot for one person to carry around. I sometimes think the tech world could use fewer new tools and a few more quiet afternoons.</p>\n\n<p>Funny enough, today's story at The Third Cup touches on a similar feeling. Maybe give it a read when you have a little time. I'll put the kettle on. ☕</p>\n\n","children_ai_disclosure_label":["Not Disclosed"],"children_ai_disclosure_level":["not_disclosed"],"children_body_html":["<blockquote>\n<p>I sometimes think the tech world could use fewer new tools and a few more quiet afternoons.</p>\n</blockquote>\n\n<p>100% agree. I hope one day everyone realizes that, in the long run, hustle culture does more harm than good.</p>\n\n<p>I am just discovering the concept of organizations 😅 For sure I will have a look around The Third Cup, of course with some tasty warm beverage to drink ☕</p>\n\n"],"children_created_at":["2026-11-25T16:39:00Z"],"children_id_code":["3medk"],"children_type_of":["comment"],"children_user_profile_image":["https://media2.dev.to/dynamic/image/width=640,height=640,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3860723%2F17664281-c5ce-4e9b-9f01-8999849fc88d.jpg"],"children_user_profile_image_90":["https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3860723%2F17664281-c5ce-4e9b-9f01-8999849fc88d.jpg"],"children_user_website_url":["https://www.linkedin.com/in/klaudia-grzondziel-75269a185/"],"created_at":"2026-11-25T14:16:48Z","id_code":"3me18","name":"xulingfeng","profile_image":"https://media2.dev.to/dynamic/image/width=640,height=640,fit=cover,gravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3941526%2Faae40319-0a84-40c7-8434-832b0e75c708.gif","profile_image_90":"https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3941526%2Faae40319-0a84-40c7-8434-832b0e75c708.gif","type_of":"comment","website_url":"https://amazon.com/author/xulingfeng"},{"ai_disclosure_label":"Not Disclosed","ai_disclosure_level":"not_disclosed","body_html":"<p>🖖</p>\n\n","created_at":"2026-11-25T18:09:40Z","id_code":"3melo","name":"Todd Tanner","profile_image":"https://media2.dev.to/dynamic/image/width=640,height=640,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3764795%2Ff44abd5a-147e-40af-88c4-7a48ad30cee7.png","profile_image_90":"https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3764795%2Ff44abd5a-147e-40af-88c4-7a48ad30cee7.png","type_of":"comment","website_url":"https://www.spawndev.com/"}]}],"request_example":{"body":{"input":{"a_id":"4222221"},"version":1,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_28154e71a9995dd92be70c8a/endpoints/generated_28154e71a9995dd92be70c8a_search/run \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Idempotency-Key: UNIQUE_REQUEST_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"input\": {\n    \"a_id\": \"4222221\"\n  },\n  \"version\": 1,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_28154e71a9995dd92be70c8a/endpoints/generated_28154e71a9995dd92be70c8a_search/result","note":"A run that does not end within wait_seconds answers 202. Read the result with the same API key and the same Idempotency-Key."},"links":{"page":"https://cleanedweb.com/catalog/dev-to-article-comments-api/","markdown":"https://cleanedweb.com/catalog/dev-to-article-comments-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_28154e71a9995dd92be70c8a/endpoints/generated_28154e71a9995dd92be70c8a_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/dev-to-article-comments-api/","markdown":"https://cleanedweb.com/catalog/dev-to-article-comments-api/index.md","contract":"https://cleanedweb.com/catalog/dev-to-article-comments-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
