Dev.to

Get Dev.to trend

Get a trending Dev.to topic with its top posts.

GET/v1/dev-to/trend
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
5
idintegerquery

Numeric trend id.

≥ 1 · ≤ 9007199254740991

slugstringquery

Trend slug to look up, e.g. `ghost-in-the-machine-ai-legacy-code`.

pattern: ^[a-z0-9][a-z0-9-]{0,199}$

includestringquery

`articles` adds a page of the trend's posts (`page` and `limit` apply to them).

one of: articles

pageintegerquery

Page number (1-1000). Default: 1. A full page may be followed by an empty page when the list ends exactly at a page boundary.

≥ 1 · ≤ 1000

limitintegerquery

Rows per page (1-1000). Default: 30. A page is the same price at any size.

≥ 1 · ≤ 1000

Response fields
68

Endpoint-specific response payload.

datalookupStatus
string

Whether the item was found.

one of: found, not_found

The trend when found; otherwise null.

datatrendid
integer

Numeric trend id.

datatrendname
string

Trend name.

datatrendslug
string

Trend slug.

datatrenddescription
stringnullable

What the trend is about.

Questions developers are asking about the trend.

datatrendkeyQuestions[]
stringoptional
datatrendscore
numbernullable

Trend score; higher is hotter.

datatrendarticlesCount
integernullable

Posts that belong to the trend.

datatrendcoverImage
stringnullable

Cover image URL.

datatrendfirstObservedAt
stringnullable

When the trend was first seen.

datatrendlastObservedAt
stringnullable

When the trend was last refreshed.

The trend's top-scoring posts.

datatrendtopArticles[]id
integer

Numeric post id.

datatrendtopArticles[]title
string

Post title.

datatrendtopArticles[]slug
string

Post slug.

datatrendtopArticles[]score
numbernullable

Post score within the trend.

datatrendtopArticles[]publishedAt
stringnullable

When the post was published.

A page of the trend's posts when `include=articles` was sent; otherwise null.

dataarticles[]id
integer

Numeric post id.

dataarticles[]url
string

Post URL on Dev.to.

dataarticles[]slug
string

Post slug.

dataarticles[]title
string

Post title.

dataarticles[]description
stringnullable

Short description (the first lines of the post).

Tag names, in the order shown.

dataarticles[]tags[]
stringoptional
dataarticles[]language
stringnullable

ISO 639-1 language code, e.g. `en`. Null on older posts.

dataarticles[]publishedAt
stringnullable

When the post was published (ISO-8601).

dataarticles[]republishedAt
stringnullable

The later time the post was published again, or null when it matches `publishedAt`.

dataarticles[]createdAt
stringnullable

When the draft was first created (ISO-8601). Can be earlier than `publishedAt`.

dataarticles[]editedAt
stringnullable

When the post was last edited, or null.

dataarticles[]crosspostedAt
stringnullable

When the post was cross-posted from another site, or null.

dataarticles[]lastCommentAt
stringnullable

When the last comment was posted.

dataarticles[]readingTimeMinutes
integernullable

Estimated reading time in minutes.

dataarticles[]reactionsCount
integer

Reactions on the post, all kinds combined.

dataarticles[]commentsCount
integer

Comments on the post.

dataarticles[]coverImage
stringnullable

Cover image URL, or null.

dataarticles[]socialImage
stringnullable

Image used when the post is shared.

dataarticles[]canonicalUrl
stringnullable

Canonical URL. Points to the author's own site for cross-posts.

dataarticles[]seriesId
integernullable

Id of the series the post belongs to, or null.

dataarticles[]communityId
integernullable

Id of the Dev.to community the post belongs to, or null.

dataarticles[]aiDisclosure
stringnullable

The author's AI disclosure: `not_disclosed`, `no_ai`, `some_ai` or `fully_autonomous`.

The one tag Dev.to highlights on the post's card.

dataarticles[]flareTagname
string

Tag name.

dataarticles[]flareTagbackgroundColor
stringnullable

Tag background colour (hex).

dataarticles[]flareTagtextColor
stringnullable

Tag text colour (hex).

The user who wrote a post or comment.

dataarticles[]authorid
integernullable

Numeric user id.

dataarticles[]authorusername
string

Username, e.g. `ben`.

dataarticles[]authorname
stringnullable

Display name.

dataarticles[]authoravatarUrl
stringnullable

Profile picture URL.

dataarticles[]authorwebsiteUrl
stringnullable

Website the user lists on their profile.

dataarticles[]authortwitterUsername
stringnullable

Twitter or X username the user lists.

dataarticles[]authorgithubUsername
stringnullable

GitHub username the user lists.

The organization the post was published under, or null.

dataarticles[]organizationname
stringnullable

Organization name.

dataarticles[]organizationusername
string

Organization username.

dataarticles[]organizationavatarUrl
stringnullable

Organization logo URL.

Pagination for `articles`; null when it is not included.

datapagepage
integer

Current page number (1-based).

≥ 0

datapagehasMore
boolean

Whether another page is available. A full page may be followed by an empty page when the list ends exactly at a page boundary.

datapagenextPage
integernullable

Next page number when more pages exist; null on the last page.

≥ 0

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/dev-to/trend?slug=ghost-in-the-machine-ai-legacy-code" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Dev.to trend.