# Reddit Domain API Documentation

<p><strong>Reddit Domain API</strong> lists the posts that link to one domain, for brand monitoring. Only posts whose domain is exactly the requested domain are returned. Sort by <code>hot</code> (default), <code>new</code> or <code>top</code>; the time window <code>t</code> only works with <code>top</code>.</p><p>Each post has id, fullname, title, selftext (<code>null</code> for link posts), author, subreddit, score, upvote_ratio, num_comments, awards, flair, created_at and created_utc, permalink, url, domain, <code>post_type</code> (text, link, image, gallery, video or crosspost), the flags over_18, spoiler, stickied, locked and archived, <code>removed_by_category</code>, <code>thumbnail_url</code>, <code>gallery</code>, <code>video</code> and <code>crosspost_parent</code>. Deleted authors and removed posts show Reddit's own marker such as <code>[deleted]</code>.</p><p>Every list has <code>pagination</code> with <code>limit</code>, <code>after</code>, <code>next_after</code> and <code>has_more</code>. Pass <code>next_after</code> as <code>after</code> to read the next page. A page is never another page's data under a new label. Reddit ends every list after about 1000 items.</p>

- **Documentation:** [https://scrappa.co/docs/reddit-api/reddit_domain](https://scrappa.co/docs/reddit-api/reddit_domain)
- **API group:** Reddit API
- **Endpoint:** `GET https://scrappa.co/api/reddit/domain`

## 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 |
| --- | --- | --- | --- |
| `domain` | string | Yes | Domain without scheme. Example: github.com. |
| `sort` | string | No | hot (default), new or top. Example: new. |
| `t` | string | No | Time window: hour, day, week, month, year or all. Only with sort top. Items outside the window are never returned. Example: week. |
| `after` | string | No | Cursor from pagination.next_after of the previous page. Example: t3_1xhv532. |
| `limit` | integer | No | Items per page, 1 to 100 (default 25). Example: 25. |

## Example response

```json
{
    "data": {
        "sort": "new",
        "time": null,
        "posts": [
            {
                "id": "1xie3aw",
                "url": "https://github.com/NMavana/file_indexer.git",
                "flair": null,
                "score": 1,
                "title": "I built File Indexer: A fast, local-first search tool to find files in huge directory trees (Tauri + Rust)",
                "video": null,
                "author": "Massive_Arrival_6629",
                "awards": [],
                "domain": "github.com",
                "locked": false,
                "gallery": null,
                "over_18": false,
                "spoiler": false,
                "archived": false,
                "fullname": "t3_1xie3aw",
                "selftext": null,
                "stickied": false,
                "edited_at": null,
                "permalink": "https://www.reddit.com/r/githubrepos/comments/1xie3aw/i_built_file_indexer_a_fast_localfirst_search/",
                "post_type": "link",
                "subreddit": "githubrepos",
                "created_at": "2026-10-29T08:15:12+00:00",
                "created_utc": 1793261712,
                "preview_url": null,
                "author_flair": null,
                "num_comments": 0,
                "subreddit_id": "t5_2sgol",
                "upvote_ratio": 1,
                "distinguished": null,
                "thumbnail_url": null,
                "num_crossposts": 0,
                "author_fullname": "t2_2i9mqz12ew",
                "crosspost_parent": null,
                "is_original_content": false,
                "removed_by_category": null,
                "subreddit_subscribers": 142,
                "total_awards_received": 0
            }
        ],
        "domain": "github.com",
        "pagination": {
            "after": null,
            "limit": 25,
            "has_more": true,
            "next_after": "t3_1xidnbt"
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "domain"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 503 | Upstream Unavailable | Reddit could not be reached or returned data that does not match the request. This response is not billable and is retryable. |

## 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)
