One Reddit post by URL: title, body, author, subreddit, score, upvote ratio, comment count and flags.
2 credits/ call
Never more than 5 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/reddit.post" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.reddit.com/r/webscraping/comments/1flgwup/after_2_months_learning_scraping_im_sharing_what_i/"}'{
"output": {
"found": true,
"data": {
"title": "<string | null>",
"score": "<integer | null>",
"upvoteRatio": "<number | null>",
"isNsfw": "<boolean | null>", …
}
},
"credits": 2
}Input and output
1 field
https://www.reddit.com/r/webscraping/co….18 fields
Good to know
Unknown URL? It comes back as not found, not as an error.
Terms of use. Usernames and user content are personal data under GDPR/CCPA even when pseudonymous: use for lawful purposes only, honour deletions, do not keep removed content, and do not train AI models on it without rightsholder permission (Data API Terms §2.4).
The same key and credits work for every API.