# DeviantArt Search API Documentation

<p><strong>DeviantArt Search API</strong> returns DeviantArt deviations matching a search query as JSON. Each result carries the deviation id, title, artist, published date, view/favourite/comment counts, tags and image URLs. Paginate with the cursor from the previous response. A valid empty result is a successful response.</p>

- **Documentation:** [https://scrappa.co/docs/deviantart-api/deviantart_search](https://scrappa.co/docs/deviantart-api/deviantart_search)
- **API group:** DeviantArt API
- **Endpoint:** `GET https://scrappa.co/api/deviantart/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | Yes | Search query. Example: forest. |
| `sort` | string | No | Sort order. Defaults to relevance (no sort param). |
| `cursor` | string | No | Pagination cursor from a previous response. Pass the next_cursor value to fetch the next page. |

## Example response

```json
{
    "data": {
        "page": 1,
        "query": "forest",
        "results": [
            {
                "id": "152693846",
                "url": "https://www.deviantart.com/duda/art/Forest-152693846",
                "tags": [
                    "forest",
                    "nature"
                ],
                "title": "Forest",
                "views": 1234,
                "artist": "duda",
                "comments": 7,
                "artist_id": "101024",
                "image_url": "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/5bd34a36/forest-152693846.jpg",
                "favourites": 56,
                "published_at": "2026-10-13T10:30:00Z",
                "thumbnail_url": "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/5bd34a36/forest-152693846-150.jpg"
            }
        ],
        "has_more": true,
        "next_cursor": "eyJpc1B1Ymxpc2hlZCI6dHJ1ZSwic29ydE9yZGVyIjoiQkVTVF9NQVRDSCIsImxpbml0IjoyNCwiY3Vyc29yIjoiMTUyNjkzODQ2In0="
    },
    "meta": {
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter or range is invalid. This response is not billable. |
| 502 | Invalid Source Response | DeviantArt could not be reached or returned an unexpected response. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
