# DEV Community Articles (`devto.articles`)

Articles from dev.to by tag, author or top-of-period: title, author, tags, reactions, comments and reading time.

- **Route:** `POST /v1/run/devto.articles`
- **Price:** $0.0008 per request ($0.80 per 1,000) · `cost_usd` on every response
- **Source:** DEV Community (Forem) API (`devto`) · failover: no
- **Measured latency:** p50 255 ms · p95 255 ms · p99 255 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `tag` | string | no |  | Tag, e.g. javascript |
| `username` | string | no |  | Author username |
| `top_days` | integer | no | 0 | Most popular of the last N days (0 = latest) |
| `limit` | integer | no | 20 | Results per page |
| `page` | integer | no | 1 | Page number |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `articles` | id, title, description, url, published_at, author, tags, reactions, comments, reading_time_minutes. |
| `count` | Articles returned. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/devto.articles \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tag":"ai","top_days":7,"limit":5}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('devto.articles', {'tag': 'ai', 'top_days': 7, 'limit': 5})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run devto.articles '{"tag":"ai","top_days":7,"limit":5}'
```

Quote first (free, validates input): `POST /v1/quote/devto.articles` with the same body.
