curl --request POST \
--url https://api.example.com/api/validate-subreddit \
--header 'Content-Type: application/json' \
--data '
{
"subreddit": "<string>"
}
'{
"valid": true,
"message": "<string>",
"subreddit": "<string>"
}Check if a subreddit exists and is accessible
curl --request POST \
--url https://api.example.com/api/validate-subreddit \
--header 'Content-Type: application/json' \
--data '
{
"subreddit": "<string>"
}
'{
"valid": true,
"message": "<string>",
"subreddit": "<string>"
}r/ prefix or not.Examples:"pics""r/aww""cats"curl -X POST "https://app.joip.io/api/validate-subreddit" \
-H "Content-Type: application/json" \
-d '{
"subreddit": "pics"
}'
curl -X POST "https://app.joip.io/api/validate-subreddit" \
-H "Content-Type: application/json" \
-d '{
"subreddit": "r/aww"
}'
{
"valid": true,
"subreddit": "pics"
}
{
"valid": false,
"message": "Subreddit not found or inaccessible"
}
{
"valid": false,
"message": "Invalid subreddit name"
}
400 Bad Request
{
"valid": false,
"message": "Validation error: Required at subreddit"
}
500 Internal Server Error
{
"valid": false,
"message": "Content service is not configured"
}
500 Internal Server Error
{
"valid": false,
"message": "Failed to validate subreddit"
}
r/ prefix and trims whitespacer/ prefix is optional and automatically stripped