What you get#
Onekey exposes DEV Community as 16 endpoints behind one API key: 4 endpoints return one record (data is an object) and 12 endpoints return a list (data is an array). Every answer uses the same envelope (success, data, metadata, error), the cost is reported in metadata.credits_charged, and fields are mapped onto the unified schema so the code you write for DEV Community also works for the rest of the news & publishing category.
Endpoints#
| Endpoint | What it does | Parameters | Credits | Status |
|---|---|---|---|---|
article | A DEV article by id. | id* | 1 | stable |
article_by_path | A DEV article by author username and slug. | username*, slug* | 1 | stable |
articles_by_tag | Latest DEV articles for a tag. | tag* | 5 | stable |
articles_by_user | Latest DEV articles by a user. | username* | 5 | stable |
comments | Top-level comments on a DEV article (replies nested in the raw response). | id* | 5 | stable |
latest | Latest DEV articles. | - | 5 | stable |
organization | A DEV organization's profile. | org* | 1 | stable |
organization_articles | Articles published by a DEV organization. | org* | 5 | stable |
organization_users | Members of a DEV organization. | org* | 5 | stable |
podcast_episodes | Recent podcast episodes on DEV. | - | 5 | stable |
profile | Fetch a DEV (dev.to) user's public profile. | username* | 1 | stable |
rising | Rising DEV articles. | - | 5 | stable |
search | List popular DEV articles for a tag. | q* | 5 | stable |
tags | Popular DEV tags. | - | 5 | stable |
top_articles | Top DEV articles of the last N days. | days | 5 | stable |
videos | Recent video articles on DEV. | - | 5 | stable |
A * marks a required parameter. Each endpoint name links to its reference page with the full parameter table, caching window and a recorded response.
Make a request#
This calls devto.article (1 credit, stable). Replace YOUR_API_KEY with your key; sign up, no card. 1,000 free credits cover the open-platform endpoints. Hard-to-reach platforms (X, TikTok, Instagram, Reddit, and others marked on their page) need a verified email and a purchased pack.
curl "https://api.onekey.dev/v1/devto/article?id=270180" \
-H "x-api-key: YOUR_API_KEY"Fields you get back#
These unified fields come back from DEV Community, with the same names as on every other platform. The count is how many of its 16 mapped endpoints return the field; a field the source lacks is null, never missing. 4 platform-specific fields (ext.<name>) come on top, documented on each endpoint page.
| Field | Type | Endpoints |
|---|---|---|
author.displayName | string | 13 |
author.username | string | 13 |
author.avatarUrl | URL | 12 |
author.id | string | 12 |
content.id | string | 12 |
content.text | string | 12 |
content.title | string | 11 |
media.thumbnailUrl | URL | 11 |
content.createdAt | ISO 8601 date | 10 |
content.url | URL | 9 |
engagement.comments | integer | 9 |
engagement.likes | integer | 9 |
content.language | string | 8 |
entity.name | string | 3 |
author.url | URL | 2 |
entity.description | string | 2 |
entity.id | string | 2 |
entity.slug | string | 2 |
engagement.views | integer | 1 |
entity.location | string | 1 |
entity.url | URL | 1 |
media.url | URL | 1 |
The full schema is in Unified schema.
Pricing#
DEV Community calls cost 1 to 5 credits, flat per endpoint. Free when served from cache (0.2 credit for a cached response over 100 KB). Invalid, failed or not-found calls are not charged. See pricing for credit packs.