Skip to content
Scrappa Get API key
Reddit API 1 credit/request

Reddit oEmbed API Documentation

GET https://scrappa.co/api/reddit/oembed

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.

Reddit oEmbed API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/reddit/oembed
Auth header
x-api-key
Cost
1 credit/request
url = https://example.com/product
Response preview
200 OK
{
    "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"
    },
...

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.

url string Required
Open example

Reddit post URL. Example: https://www.reddit.com/r/pics/comments/1xhsecz/title/.

Example value 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
JSON Response
200 OK
{
    "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.

422

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"
}
404

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
}
503

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.