Dev.to hub

Dev.to Tag API

One tag with the rules and about text its page carries, not just its name.

GET /v1/dev-to/tag

1 credit Failed requests are free

About this endpoint

GET /v1/dev-to/tag?name=javascript returns tag with id, name, summary, backgroundColor and textColor, plus the page fields logoUrl, guidelinesHtml, aboutHtml and lastPage. guidelinesHtml is the moderators' submission guidance and aboutHtml is the tag's about text, both as HTML.

lastPage is the number of pages of older posts Dev.to has under the tag, which pairs with /v1/dev-to/articles?tag=... when you want to walk everything under a tag. A tag name is folded to lowercase and a leading # is removed. An unknown tag returns lookupStatus: not_found with tag null.

Dev.to Tag API FAQ

How do I name a tag?

Send one tag such as javascript. Case is folded and a leading # is removed. Lists of tags are refused because the endpoint takes one tag.

How many credits does a tag lookup cost?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth.

What is lastPage for?

It is the number of pages of older posts Dev.to has under the tag. Use it with the articles route to decide how far to page under the tag. It is null when unknown.

Why are guidelinesHtml or aboutHtml null?

Not every tag has guidelines or about text, and either can be unavailable. Null means there is nothing to show, not that the tag is missing.