curl --request POST \
--url https://api.example.com/api/reddit-search \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"limit": 123,
"excludeUrls": [
"<string>"
]
}
'{
"[].id": "<string>",
"[].title": "<string>",
"[].author": "<string>",
"[].subreddit": "<string>",
"[].url": "<string>",
"[].media_url": "<string>",
"[].thumbnail": {},
"[].score": 123,
"[].num_comments": 123,
"[].created_utc": 123,
"[].is_video": true,
"[].nsfw": true,
"[].spoiler": true
}Search Reddit posts by keyword across all subreddits
curl --request POST \
--url https://api.example.com/api/reddit-search \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"limit": 123,
"excludeUrls": [
"<string>"
]
}
'{
"[].id": "<string>",
"[].title": "<string>",
"[].author": "<string>",
"[].subreddit": "<string>",
"[].url": "<string>",
"[].media_url": "<string>",
"[].thumbnail": {},
"[].score": 123,
"[].num_comments": 123,
"[].created_utc": 123,
"[].is_video": true,
"[].nsfw": true,
"[].spoiler": true
}"sunset photography""cute cats""nsfw joi"curl -X POST "https://app.joip.io/api/reddit-search" \
-H "Content-Type: application/json" \
-d '{
"query": "cute cats",
"limit": 25
}'
curl -X POST "https://app.joip.io/api/reddit-search" \
-H "Content-Type: application/json" \
-d '{
"query": "sunset photography",
"limit": 50
}'
curl -X POST "https://app.joip.io/api/reddit-search" \
-H "Content-Type: application/json" \
-d '{
"query": "nature",
"limit": 25,
"excludeUrls": [
"https://i.redd.it/abc123.jpg",
"https://i.imgur.com/xyz789.png"
]
}'
[
{
"id": "abc123",
"title": "Beautiful sunset over the ocean",
"author": "photographer123",
"subreddit": "earthporn",
"url": "https://reddit.com/r/earthporn/comments/abc123",
"media_url": "https://i.redd.it/abc123xyz.jpg",
"thumbnail": "https://b.thumbs.redditmedia.com/abc.jpg",
"score": 5432,
"num_comments": 234,
"created_utc": 1709280000,
"is_video": false,
"nsfw": false,
"spoiler": false
},
{
"id": "def456",
"title": "Golden hour photography",
"author": "sunsetlover",
"subreddit": "photography",
"url": "https://reddit.com/r/photography/comments/def456",
"media_url": "https://i.imgur.com/def456.png",
"thumbnail": "https://i.imgur.com/def456s.png",
"score": 3210,
"num_comments": 145,
"created_utc": 1709283600,
"is_video": false,
"nsfw": false,
"spoiler": false
}
]
400 Bad Request
{
"message": "Validation error: String must contain at least 1 character(s) at query"
}
400 Bad Request
{
"message": "Validation error: String must contain at most 200 character(s) at query"
}
503 Service Unavailable
{
"message": "Content integration is not configured. Please contact support.",
"error": "MISSING_CREDENTIALS"
}
500 Internal Server Error
{
"message": "Failed to search Reddit"
}