Sources › Social media › Reddit › Post
Reddit Post API
Fetch a post and its comment discussion.
Request
https://api.zapi.ink/v1/social-media:reddit/post/:postIdSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 5 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| postId | string | path | Yes | Reddit post ID, or a full reddit.com post URL Example: 1vg555b |
| sub | string | query | No | Subreddit, only needed when it cannot be read from a URL Example: programming |
| limit | number | query | No | Max comments to return. Default 100 Example: 50 |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:reddit/post/1vg555b?sub=programming&limit=50" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:reddit/post/1vg555b?sub=programming&limit=50", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/social-media:reddit/post/1vg555b", params={"sub":"programming","limit":"50"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Frequently asked questions
How do I call the Reddit Post API?
Send a GET request to https://api.zapi.ink/v1/social-media:reddit/post/1vg555b with your Zapi key in the x-api-key header. Parameters — required: postId; optional: sub, limit. The response is JSON in the { project, data, timestamp } envelope.
What does the Reddit Post API return?
Fetch a post and its comment discussion.
Is the Reddit Post API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 5 Zap. Paid plans raise the limits.
Can an AI assistant call the Reddit Post API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "reddit" and endpoint "post".
What other Reddit API endpoints are there?
It has 3 endpoints. Besides Post: User, Subreddit.