POST
/
api
/
v1
/
social
/
reddit-post
curl --request POST \
  --url https://scrapeapi.pangolinfo.com/api/v1/social/reddit-post \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "target": "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/"
}'
{
  "data": {
    "type": "post",
    "poster": {
      "nickname": "<string>",
      "avatar": null,
      "profileUrl": "<string>",
      "id": "<string>"
    },
    "community": {
      "url": "<string>",
      "name": "<string>",
      "desc": "<string>",
      "weeklyVisitors": 123,
      "weeklyContributions": 123,
      "subredditId": "<string>"
    },
    "post": {
      "title": "<string>",
      "captionText": "<string>",
      "publishedAt": {
        "text": "<string>",
        "value": 123
      },
      "likes": 123,
      "commentsCount": 123,
      "video": {
        "src": "<string>",
        "preview": "<string>",
        "poster": "<string>"
      },
      "redditPostId": "<string>",
      "id36": "<string>",
      "url": "<string>",
      "linkUrl": "<string>",
      "domain": "<string>",
      "subreddit": "<string>",
      "flair": "<string>",
      "ups": 123,
      "upvoteRatio": 123,
      "numCrossposts": 123,
      "editedAt": {
        "text": "<string>",
        "value": 123
      },
      "isSelf": true,
      "isVideo": true,
      "over18": true,
      "spoiler": true,
      "stickied": true,
      "locked": true,
      "archived": true,
      "distinguished": "<string>",
      "postHint": "<string>",
      "thumbnail": "<string>",
      "previewImage": "<string>",
      "redditVideo": {
        "hlsUrl": "<string>",
        "fallbackUrl": "<string>",
        "dashUrl": "<string>",
        "width": 123,
        "height": 123,
        "duration": 123
      },
      "gallery": [
        {
          "url": "<string>",
          "width": 123,
          "height": 123,
          "caption": "<string>"
        }
      ]
    },
    "comments": [
      {
        "time": {
          "text": "<string>",
          "value": 123
        },
        "content": "<string>",
        "score": 123,
        "avatar": null,
        "nickname": "<string>",
        "profileUrl": "<string>",
        "id": "<string>",
        "parentId": "<string>",
        "depth": 123,
        "replyCount": 123,
        "url": "<string>",
        "replys": [
          {
            "time": {
              "text": "<string>",
              "value": 123
            },
            "content": "<string>",
            "score": 123,
            "avatar": null,
            "nickname": "<string>",
            "profileUrl": "<string>",
            "id": "<string>",
            "parentId": "<string>",
            "depth": 123,
            "replyCount": 123,
            "url": "<string>",
            "replys": [
              {
                "time": {
                  "text": "<string>",
                  "value": 123
                },
                "content": "<string>",
                "score": 123,
                "avatar": null,
                "nickname": "<string>",
                "profileUrl": "<string>",
                "id": "<string>",
                "parentId": "<string>",
                "depth": 123,
                "replyCount": 123,
                "url": "<string>",
                "replys": [
                  "<any>"
                ]
              }
            ]
          }
        ]
      }
    ],
    "others": [
      "<any>"
    ],
    "pagination": {
      "comments": {
        "cursor": "<string>",
        "hasMore": true
      }
    }
  },
  "meta": {
    "requestId": "<string>",
    "durationMs": 123
  },
  "code": 123,
  "message": "<string>",
  "pointCost": 123,
  "billing": {
    "unitPrice": 0.8,
    "ruleVersion": "social-primary-v2",
    "billedCount": 123,
    "pointCost": 123,
    "counts": {
      "primaryCount": 1,
      "rootCommentCount": 1,
      "replyCount": 1,
      "includedWorkCount": 1,
      "includedRootCommentCount": 1,
      "includedReplyCount": 1
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

成功

The response is of type object.