Reddit oEmbed API returns the title, the author name and the embed code of a Reddit post URL. Use it to render a post card without the full post data.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
string
Required
Reddit post URL. Example: https://www.reddit.com/r/pics/comments/1xhsecz/title/.
https://example.com/product
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"url": "https://www.reddit.com/r/pics/comments/1xhsecz/title/",
"html": "<blockquote class=\"reddit-embed-bq\" style=\"height:500px\"><a href=\"https://www.reddit.com/r/pics/comments/1xhsecz/title/\">Title</a> from <...",
"title": "I Transformed my Victorian home into Monster House for Halloween!",
"width": 550,
"height": null,
"author_url": null,
"author_name": "ChristineHMcConnell"
},
"meta": {
"billable": true,
"endpoint_family": "oembed"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required parameter or a value is invalid. This response is not billable.
{
"errors": {
"url": [
"The url field is required."
]
},
"message": "The request validation failed"
}Not Found
The subreddit, post or user does not exist, is private or is banned. This response is not billable.
{
"meta": {
"billable": false,
"retryable": false,
"endpoint_family": "oembed"
},
"error": {
"code": "NOT_FOUND",
"message": "The requested resource was not found."
},
"success": false
}Upstream Unavailable
Reddit could not be reached or returned data that does not match the request. This response is not billable and is retryable.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "oembed"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "Reddit could not be reached. Please retry shortly."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.