OpenAny
Get API keyAPI Key
APIDataSocial Media

reddit logo
Reddit Post by ID API

Get Reddit Post by ID data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by JustOneAPI, pass parameters such as postId, and retrieve structured data including post fullname, post title, post score, comment count, and creation timestamp to inspect a known post id, and plan comment follow-up.

Selected price
$0.015385 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Reddit Post by ID API

Prepare your request, then continue with your agent.

Selected price

$0.015385 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Reddit Post by ID API

Reddit Post by ID API

Send postId in t3_<post-id> format. The response contains data.postsInfoByIds, whose entries use postTitle for the title and can have null content.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required query: postId in t3_<post-id> format.
Selected implementation justoneapi · Reddit Post Details API (V1)
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Inspect a known post ID: Retain post identity, source URL and available content.
  • Plan comment follow-up: Use the post reference in a compatible comment lookup.

Returned Data

Field Meaning
data.postsInfoByIds[].id Post fullname
data.postsInfoByIds[].postTitle Post title
data.postsInfoByIds[].score Post score
data.postsInfoByIds[].commentCount Comment count
data.postsInfoByIds[].createdAt Creation timestamp
data.postsInfoByIds[].content Post content when available; may be null
data.postsInfoByIds[].url Source post URL

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/justoneapi/api/reddit/get-post-detail/v1 \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode postId=t3_1q4aqti

Request and Response Examples

The response is a historical documentation reference; the request is an independent calling template. Returned records and available content can differ.

Published Reddit Post by ID API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
The Reddit post identifier in t3_<post-id> format.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
justoneapiCurrent
Reddit Post Details API (V1) · GET · View API reference
$0.015385 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · justoneapiUSD / call
Unit price
$0.015385

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $1.5385

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/justoneapi/api/reddit/get-post-detail/v1
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
postIdURL query parametersquerystringYes

The Reddit post identifier in t3_<post-id> format.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • codeinteger
  • dataobject
    • postsInfoByIdsobject[]
      • __typenamestring
      • attributionInfonull
      • authorCommunityBadgenull
      • authorFlairnull
      • authorInfoobject
        • __typenamestring
        • accountTypestring
        • iconSmallobject
          • __typenamestring
          • dimensionsobject
            • heightinteger
            • widthinteger
          • urlstring
        • idstring
        • isBlockedboolean
        • isCakeDayNowboolean
        • namestring
        • newIconobject
          • __typenamestring
          • dimensionsobject
            • heightinteger
            • widthinteger
          • urlstring
        • profileobject
          • isNsfwboolean
        • snoovatarIconobject
          • __typenamestring
          • dimensionsobject
            • heightinteger
            • widthinteger
          • urlstring
      • awardingsobject[]
        • __typenamestring
        • awardobject
          • __typenamestring
          • idstring
          • namestring
          • static_icon_16object
            • __typenamestring
            • dimensionsobject
              • heightinteger
              • widthinteger
            • urlstring
          • static_icon_24object
            • __typenamestring
            • dimensionsobject
              • heightinteger
              • widthinteger
            • urlstring
          • static_icon_32object
            • __typenamestring
            • dimensionsobject
              • heightinteger
              • widthinteger
            • urlstring
          • static_icon_48object
            • __typenamestring
            • dimensionsobject
              • heightinteger
              • widthinteger
            • urlstring
          • static_icon_64object
            • __typenamestring
            • dimensionsobject
              • heightinteger
              • widthinteger
            • urlstring
          • tagsstring[]
        • totalinteger
      • awardingsInfonull
      • commentCountinteger
      • contentnull
      • createdAtstring
      • crosspostRootnull
      • crowdControlLevelstring
      • devvitnull
      • distinguishedAsnull
      • domainstring
      • editedAtnull
      • flairnull
      • gallerynull
      • idstring
      • isArchivedboolean
      • isAuthorBlockedboolean
      • isCommercialCommunicationboolean
      • isContestModeboolean
      • isCrosspostableboolean
      • isCrowdControlFilterEnabledboolean
      • isFollowedboolean
      • isGildableboolean
      • isHiddenboolean
      • isLockedboolean
      • isNsfwboolean
      • isPollIncludedboolean
      • isReactAllowedboolean
      • isSavedboolean
      • isScoreHiddenboolean
      • isSelfPostboolean
      • isSpoilerboolean
      • isStickiedboolean
      • isThumbnailEnabledboolean
      • isTranslatableboolean
      • isTranslatedboolean
      • languageCodestring
      • medianull
      • moderationInfonull
      • outboundLinkobject
        • expiresAtstring
        • urlstring
      • permalinkstring
      • pollnull
      • postEventInfonull
      • postHintnull
      • postStatsobject
        • shareAllTotalinteger
        • viewCountTotalnull
      • postStatsPrivateobject
        • viewCountTotalsnull
      • postTitlestring
      • predictedRemovalSavedResponsesunknown[]
      • reactedFromnull
      • removedByCategorystring
      • scoreinteger
      • subredditobject
        • __typenamestring
        • communityStatusnull
        • idstring
        • isNsfwboolean
        • isQuarantinedboolean
        • isSubscribedboolean
        • isThumbnailsEnabledboolean
        • isTitleSafeboolean
        • isUserBannedboolean
        • modPermissionsnull
        • namestring
        • prefixedNamestring
        • stylesobject
          • backgroundColornull
          • bannerBackgroundImagestring
          • iconstring
          • legacyIconobject
            • urlstring
          • legacyPrimaryColorstring
          • primaryColorstring
        • subscribersCountnumber
        • tippingStatusnull
        • titlestring
        • typestring
        • whitelistStatusstring
      • suggestedCommentSortstring
      • thumbnailnull
      • translatedLanguagenull
      • upvoteRationumber
      • urlstring
      • viewCountnull
      • voteStatestring
  • messagenull
  • recordTimenull

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Historical response; independent request temp

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 1

    Review these request fields before running. Keep the published provider and request method unchanged.

    postId
    The Reddit post identifier in t3_<post-id> format.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/justoneapi/api/reddit/get-post-detail/v1?postId=%3CREPLACE_POSTID%3E' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "code": 0,
      "data": {
        "postsInfoByIds": [
          {
            "__typename": "SubredditPost",
            "attributionInfo": null,
            "authorCommunityBadge": null,
            "authorFlair": null,
            "authorInfo": {
              "__typename": "Redditor",
              "accountType": "USER",
              "iconSmall": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 50,
                  "width": 50
                },
                "url": "https://preview.redd.it/snoovatar/avatars/495a64a3-a7b9-4289-90a8-8bba16564b1b-headshot.png?width=50&height=50&auto=webp&s=8fbe87c6a54b0bb02d1fbd4c2289ec0698f23003"
              },
              "id": "t2_144icfdwdo",
              "isBlocked": false,
              "isCakeDayNow": false,
              "name": "goswamitulsidas",
              "newIcon": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 256,
                  "width": 256
                },
                "url": "https://preview.redd.it/snoovatar/avatars/495a64a3-a7b9-4289-90a8-8bba16564b1b-headshot.png?auto=webp&s=fe2ac439bb6f9d827747f37a05dac029a8fce7a5"
              },
              "profile": {
                "isNsfw": false
              },
              "snoovatarIcon": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 600,
                  "width": 380
                },
                "url": "https://i.redd.it/snoovatar/avatars/495a64a3-a7b9-4289-90a8-8bba16564b1b.png"
              }
            },
            "awardings": [
              {
                "__typename": "AwardingTotal",
                "award": {
                  "__typename": "Award",
                  "id": "award_free_popcorn_2",
                  "name": "Popcorn",
                  "static_icon_16": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 16,
                      "width": 16
                    },
                    "url": "https://i.redd.it/snoovatar/snoo_assets/marketing/Popcorn_16.png"
                  },
                  "static_icon_24": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 24,
                      "width": 24
                    },
                    "url": "https://i.redd.it/snoovatar/snoo_assets/marketing/Popcorn_24.png"
                  },
                  "static_icon_32": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 32,
                      "width": 32
                    },
                    "url": "https://i.redd.it/snoovatar/snoo_assets/marketing/Popcorn_32.png"
                  },
                  "static_icon_48": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 48,
                      "width": 48
                    },
                    "url": "https://i.redd.it/snoovatar/snoo_assets/marketing/Popcorn_48.png"
                  },
                  "static_icon_64": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 64,
                      "width": 64
                    },
                    "url": "https://i.redd.it/snoovatar/snoo_assets/marketing/Popcorn_64.png"
                  },
                  "tags": [
                    "award:legacy",
                    "award:unlimited_free",
                    "award:sort:50",
                    "award:quick_give"
                  ]
                },
                "total": 5
              }
            ],
            "awardingsInfo": null,
            "commentCount": 714,
            "content": null,
            "createdAt": "2026-01-05T03:30:19.779000+0000",
            "crosspostRoot": null,
            "crowdControlLevel": "OFF",
            "devvit": null,
            "distinguishedAs": null,
            "domain": "v.redd.it",
            "editedAt": null,
            "flair": null,
            "gallery": null,
            "id": "t3_1q4aqti",
            "isArchived": false,
            "isAuthorBlocked": false,
            "isCommercialCommunication": false,
            "isContestMode": false,
            "isCrosspostable": false,
            "isCrowdControlFilterEnabled": false,
            "isFollowed": false,
            "isGildable": false,
            "isHidden": false,
            "isLocked": true,
            "isNsfw": false,
            "isPollIncluded": false,
            "isReactAllowed": false,
            "isSaved": false,
            "isScoreHidden": false,
            "isSelfPost": false,
            "isSpoiler": false,
            "isStickied": false,
            "isThumbnailEnabled": true,
            "isTranslatable": false,
            "isTranslated": false,
            "languageCode": "en",
            "media": null,
            "moderationInfo": null,
            "outboundLink": {
              "expiresAt": "2026-10-23T16:00:16.617649+0000",
              "url": "https://www.reddit.com/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/"
            },
            "permalink": "/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/",
            "poll": null,
            "postEventInfo": null,
            "postHint": null,
            "postStats": {
              "shareAllTotal": 3234,
              "viewCountTotal": null
            },
            "postStatsPrivate": {
              "viewCountTotals": null
            },
            "postTitle": "[ Removed by moderator ]",
            "predictedRemovalSavedResponses": [],
            "reactedFrom": null,
            "removedByCategory": "MODERATOR",
            "score": 32609,
            "subreddit": {
              "__typename": "Subreddit",
              "communityStatus": null,
              "id": "t5_2x2oy",
              "isNsfw": false,
              "isQuarantined": false,
              "isSubscribed": false,
              "isThumbnailsEnabled": true,
              "isTitleSafe": true,
              "isUserBanned": false,
              "modPermissions": null,
              "name": "Whatcouldgowrong",
              "prefixedName": "r/Whatcouldgowrong",
              "styles": {
                "backgroundColor": null,
                "bannerBackgroundImage": "https://styles.redditmedia.com/t5_2x2oy/styles/bannerBackgroundImage_noc56x5mbi821.png?frame=1&auto=webp&s=1f3624576a44b55f140b70f788d5377147af899c",
                "icon": "https://a.thumbs.redditmedia.com/wk4DdnifrZxOjoVTiBzk1jsK8RqACLAQi6TO4JMxCx0.png",
                "legacyIcon": {
                  "url": "https://a.thumbs.redditmedia.com/wk4DdnifrZxOjoVTiBzk1jsK8RqACLAQi6TO4JMxCx0.png"
                },
                "legacyPrimaryColor": "#222222",
                "primaryColor": "#B8001F"
              },
              "subscribersCount": 8010123.0,
              "tippingStatus": null,
              "title": "What Could Possibly Go Wrong?",
              "type": "PUBLIC",
              "whitelistStatus": "ALL_ADS"
            },
            "suggestedCommentSort": "TOP",
            "thumbnail": null,
            "translatedLanguage": null,
            "upvoteRatio": 0.9703780024470345,
            "url": "https://www.reddit.com/r/Whatcouldgowrong/comments/1q4aqti/removed_by_moderator/",
            "viewCount": null,
            "voteState": "NONE"
          }
        ]
      },
      "message": null,
      "recordTime": null
    }

Common questions

Does postId need the t3_ prefix?

Yes. The contract specifies t3_<post-id> format.

Is the title field called title?

This response uses postTitle within postsInfoByIds entries.

Can content be null?

Yes. Unavailable content can remain null; display the source content state instead of a reconstructed body.

Does the array response mean I can send many IDs?

No. The request declares one postId string, not a batch array.

Does commentCount include comment records?

No. Retrieve a comment forest or thread with a separate operation.

Can this recover a moderator-removed body?

No recovery guarantee is established. Preserve the source removal and content states.

Use Reddit Post by ID API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.