Endpoint Playground
Test Crawlora's Reddit Search API with realistic prefilled parameters. Generate a cURL request, inspect the expected structured JSON response, and open the full docs or pricing page when you are ready to integrate this public web data extraction endpoint into your application.
curl "https://api.crawlora.net/api/v1/reddit/search?q=<q>&sort=relevance&time=hour" \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| q | string | Yes | Search keywords | |
| subreddit | string | No | Restrict search to a subreddit name, without r/ | |
| sort | string | No | relevance | Sort: relevance, hot, new, top, or comments |
| time | string | No | hour | Time window for top/comments sorts: hour, day, week, month, year, or all |
| limit | integer | No | Maximum posts, defaults to 25 and clamps to 100 | |
| after | string | No | Reddit pagination token |
{
"code": 200,
"msg": "OK",
"data": {
"query": "gpt",
"subreddit": "OpenAI",
"sort": "relevance",
"posts": [
{
"id": "1abcxyz",
"name": "t3_1abcxyz",
"subreddit": "OpenAI",
"title": "OpenAI discussion thread",
"url": "https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/",
"author": {
"name": "sample_user",
"profile_url": "https://www.reddit.com/user/sample_user/"
},
"created": "2024-04-19T00:00:00Z",
"selftext": "Discussion body",
"source_feed_url": "https://www.reddit.com/r/OpenAI/search?q=gpt&restrict_sr=on&sort=relevance"
}
],
"pagination": {
"limit": 25,
"after": "t3_1abcxyz"
},
"source": {
"type": "feed",
"url": "https://www.reddit.com/r/OpenAI/search?q=gpt&restrict_sr=on&sort=relevance"
}
}
}Public Playground
Sample responses, schemas, request previews, and code snippets are visible before sign in. Create an account when you are ready to save an API key and run authenticated requests.
Searches public Reddit content and returns normalized public post entries.
{
"code": 200,
"msg": "OK",
"data": {
"query": "gpt",
"subreddit": "OpenAI",
"sort": "relevance",
"posts": [
{
"id": "1abcxyz",
"name": "t3_1abcxyz",
"subreddit": "OpenAI",
"title": "OpenAI discussion thread",
"url": "https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/",
"author": {
"name": "sample_user",
"profile_url": "https://www.reddit.com/user/sample_user/"
},
"created": "2024-04-19T00:00:00Z",
"selftext": "Discussion body",
"source_feed_url": "https://www.reddit.com/r/OpenAI/search?q=gpt&restrict_sr=on&sort=relevance"
}
],
"pagination": {
"limit": 25,
"after": "t3_1abcxyz"
},
"source": {
"type": "feed",
"url": "https://www.reddit.com/r/OpenAI/search?q=gpt&restrict_sr=on&sort=relevance"
}
}
}curl "https://api.crawlora.net/api/v1/reddit/search?q=<q>" \
-H "x-api-key: $CRAWLORA_API_KEY"