Reddit Post
POST /api/v1/reddit/post
Scrape Reddit posts, subreddits, user profiles and listing pages with metrics, flairs, and metadata.
Overview
Scrape Reddit posts, subreddits, user profiles and listing pages with metrics, flairs, and metadata.
POST /api/v1/reddit/post
Method: POST Path: /api/v1/reddit/post Category: Social Media
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| limit | integer | Optional | Maximum number of posts to return for listing/feed pages. |
| url | string | Required | Reddit post, subreddit, or user profile URL / path (e.g. https://www.reddit.com/r/webdev/comments/1xaevy8/...) |
Request Example
Reddit Post Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/reddit/post" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"limit": "10", "url": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "posts_and_subreddits": { "post_id": "1234567890", "title": "string", "self_text_markdown": "string", "subreddit_name": "string", "author_username": "string", "upvote_score": 0, "upvote_ratio_pct": 0, "total_comments": 0, "url_link_domain": "https://example.com/...", "crosspost_count": 0, "post_flair": "string", "spoiler": false, "nsfw": false, "pinned_stickied": false, "post_type": "string", "created_timestamp": "2026-01-01T12:00:00Z", "post_url": "https://example.com/...", "content_url": "https://example.com/...", "subreddit_id": "1234567890", "author_id": "1234567890" }, "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Reddit Post", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| posts_and_subreddits | object | array<object> | Yes | Extracted Reddit post data for a single post or list of posts from a subreddit or user feed. |
| posts_and_subreddits.post_id | string | Yes | Reddit post ID without the 't3_' prefix (e.g. '1xaevy8'). |
| posts_and_subreddits.title | string | Yes | Post submission headline title. |
| posts_and_subreddits.self_text_markdown | string | Yes | Body text content of the post formatted as markdown. |
| posts_and_subreddits.subreddit_name | string | Yes | Prefixed subreddit name (e.g. 'r/webdev'). |
| posts_and_subreddits.author_username | string | Yes | Prefixed username of author (e.g. 'u/username' or '[deleted]'). |
| posts_and_subreddits.upvote_score | integer | Yes | Net upvotes / score for the post. |
| posts_and_subreddits.upvote_ratio_pct | integer | null | No | Upvote ratio percentage (0 to 100), or null if not available. |
| posts_and_subreddits.total_comments | integer | Yes | Total number of comments submitted on the post. |
| posts_and_subreddits.url_link_domain | string | Yes | Domain of outbound link or 'self.subreddit' for text posts. |
| posts_and_subreddits.crosspost_count | integer | null | No | Number of times the post was crossposted. |
| posts_and_subreddits.post_flair | string | Yes | Post flair text label. |
| posts_and_subreddits.spoiler | boolean | Yes | Whether the post is marked as a spoiler. |
| posts_and_subreddits.nsfw | boolean | Yes | Whether the post is marked as NSFW (Not Safe For Work). |
| posts_and_subreddits.pinned_stickied | boolean | Yes | Whether the post is stickied / pinned to the subreddit or profile. |
| posts_and_subreddits.post_type | string | Yes | Post type classification (e.g. 'text', 'link', 'image', 'video'). |
| posts_and_subreddits.created_timestamp | string | Yes | Creation timestamp in ISO-8601 string or numeric string format. |
| posts_and_subreddits.post_url | string | Yes | Full permanent canonical Reddit URL to the post. |
| posts_and_subreddits.content_url | string | Yes | Outbound link URL or media content URL. |
| posts_and_subreddits.subreddit_id | string | No | Reddit internal subreddit identifier (e.g. 't5_...'). |
| posts_and_subreddits.author_id | string | No | Reddit internal author identifier (e.g. 't2_...'). |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/reddit/post?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
url,limit example,10
Pricing & Rate Limits
Endpoint Pricing
$0.001 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |