# Search dev.to Articles API

> Search articles on dev.to by tag, username, or top-of-week trending. Returns title, description, tags, author, reading time, reaction and comment counts.

Category: [Developer Tools APIs](https://upapi.io/apis/developer-tools) · Last updated 2026-06-12

## How to call it

- Endpoint: `POST https://api.upapi.io/devto-articles-search.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 15 seconds.
- Cache: identical requests are served from cache for 300 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/devto-articles-search.get

```bash
curl -X POST https://api.upapi.io/devto-articles-search.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "tag": "javascript", "pageSize": 10, "topArticles": false }'
```

## Request parameters

- `tag` (string) — Filter by single tag (e.g. javascript, python, ai)
- `pageSize` (integer)
- `username` (string) — Filter by author username
- `topArticles` (boolean) — If true, return the top articles of the week (ignores tag/username)

## Response fields

- `articles` (array, required)
- `articles[].id` (integer, required)
- `articles[].url` (string, required)
- `articles[].slug` (string, required)
- `articles[].tags` (array, required)
- `articles[].title` (string, required)
- `articles[].author` (string, required)
- `articles[].coverImage` (string, required)
- `articles[].description` (string, required)
- `articles[].publishedAt` (string, required)
- `articles[].commentsCount` (integer, required)
- `articles[].authorUsername` (string, required)
- `articles[].reactionsCount` (integer, required)
- `articles[].readingTimeMinutes` (integer, required)
- `articles[].positiveReactionsCount` (integer, required)
- `fetchedAt` (string, required)
- `totalReturned` (integer, required)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "tag": "javascript",
  "pageSize": 10,
  "topArticles": false
}
```

```json
{
  "articles": [
    {
      "id": 1,
      "url": "https://github.com",
      "slug": "example",
      "tags": [
        "example"
      ],
      "title": "Alan Turing",
      "author": "example",
      "coverImage": "example",
      "description": "example",
      "publishedAt": "example",
      "commentsCount": 1,
      "authorUsername": "example",
      "reactionsCount": 1,
      "readingTimeMinutes": 1,
      "positiveReactionsCount": 1
    }
  ],
  "fetchedAt": "example",
  "totalReturned": 1
}
```

## Frequently asked questions

### How much does the Search dev.to Articles API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Search dev.to Articles API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Search dev.to Articles API responses cached?

Yes — identical requests are served from cache for 300 seconds, and a cache hit is not billed.

## More Developer Tools APIs

- [Search GitHub Discussions](https://upapi.io/apis/developer-tools/github-search-discussions)
- [Search GitHub Issues](https://upapi.io/apis/developer-tools/github-search-issues)
- [Search GitHub Repositories](https://upapi.io/apis/developer-tools/github-search-repos)
- [Search GitHub Users](https://upapi.io/apis/developer-tools/github-search-users)
- [Search Stack Exchange](https://upapi.io/apis/developer-tools/stackexchange-search)
- [Star or Unstar a GitHub Repository](https://upapi.io/apis/developer-tools/github-repo-star)
- [Check a GitHub Account's Health](https://upapi.io/apis/developer-tools/github-account-health)
- [Detect Website Tech Stack](https://upapi.io/apis/developer-tools/detect-tech-stack)
