Reddit returns 403 to curl: why, and how to fix it
Reddit hard-blocks unauthenticated requests from datacenter address space. curl https://www.reddit.com/search.json returns a 403 block page from any cloud host, and old.reddit 403s the same way - the block is on the IP, not the path, so switching endpoints does not help. The official OAuth API works, but its terms forbid redistributing the data, and the public RSS feed is throttled to roughly one request every 30 seconds.
50 free credits on signup, no card
unified JSON, no proxies or parsers to keep alive
1What people try first
| Approach | What happens |
|---|---|
| Adding a browser User-Agent | Does nothing on its own. The block is IP reputation, not the header. |
| Using old.reddit.com | Also 403s from cloud IPs. It helps with parsing, not with access. |
| The .json suffix | Same 403. It is the same origin behind the same edge rules. |
| Official OAuth API | Works, and is the right call for your own account's data - but the Data API terms do not permit redistributing what you pull. |
| A managed data API | The practical fix: a provider whose whole job is keeping access to the public surface working, so you maintain neither infrastructure nor an HTML parser. |
2The one-call fix
curl -H "x-api-key: $SS_KEY" \ "https://api.socialsearchapi.com/v1/reddit/search?query=cloudflare+workers"
Signup is an email and a 6-digit code, no card. Create a key in the dashboard and your account starts with 50 free credits on any platform, so the command above runs as-is.
Real response from that endpoint, captured 2026-09-08:
{
"success": true,
"platform": "reddit",
"data": {
"total": 3,
"items": [
{
"id": "1svlt79",
"title": "Cloudflare Workers AI - worth it?",
"url": "https://www.reddit.com/r/CloudFlare/comments/1svlt79/cloudflare_workers_ai_worth_it/",
"created_at": "2026-04-25T19:42:34Z",
"metrics": {
"score": 4,
"comments": 25
}
}
]
},
"credits_used": 2
}3Related
Verified against a live Reddit response on 2026-09-08. Platform terms and pricing change often. If something here has gone stale, tell us at support@socialsearchapi.com.