Sources › Social media › Reddit › Post

Reddit Post API

Fetch a post and its comment discussion.

RedditGET /postAll plans5 Zap

Request

GET
https://api.zapi.ink/v1/social-media:reddit/post/:postId

Send 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

NameTypeInRequiredDescription
postIdstringpathYesReddit post ID, or a full reddit.com post URL Example: 1vg555b
substringqueryNoSubreddit, only needed when it cannot be read from a URL Example: programming
limitnumberqueryNoMax comments to return. Default 100 Example: 50

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/social-media:reddit/post/1vg555b?sub=programming&limit=50" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
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);
Python
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.