POST
/api/v1/comment-permalinkContentComment Permalink
Fetch a specific comment based on its permalink URL, along with its parent post context and any nested replies it has received.
Ready to try it?
Create a free account — 30 requests included, no credit card.
Request Parameters
Send as a JSON body in your POST request.
| Parameter | Type | Required |
|---|---|---|
| url | string | Yes |
Code Examples
curl
curl -X POST https://subscraper.dev/api/v1/comment-permalink \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.reddit.com/r/programming/comments/12345/best_languages/abcde/"
}'TypeScript SDK
const thread = await client.getCommentPermalink({
url: "https://www.reddit.com/r/programming/comments/12345/best_languages/abcde/"
});Install the SDK →Sample Response
{
"post": {
"id": "t3_12345",
"title": "What are the best programming languages to learn in 2024?",
"author": "coding_newbie",
"subreddit": "programming"
},
"comment": {
"id": "t1_abcde",
"author": "senior_dev",
"body": "I highly recommend starting with Python or JavaScript.",
"score": 450,
"replies": [
{
"id": "t1_abcdf",
"author": "coding_newbie",
"body": "Thanks! Why Python over JS?",
"score": 15,
"replies": []
}
]
}
}Common Use Cases
- Extracting specific comment sub-threads
- Resolving notifications or mentions to their full context
- Deep-linking to specific discussions in your app
Credits
Each call to /api/v1/comment-permalink uses 1 credit. Free tier includes 30 credits. View pricing →
Related Tools & Guides
All developer tools →Related Endpoints
Start using /comment-permalink now
Free tier — 30 requests, no credit card required.