Reddit

Getting Started

Learn how to set up and start using the Web Scraping APIs

What is Web Scraping APIs?

Web Scraping APIs provides simple, reliable, and affordable access to web scraping capabilities. Our API lets you extract data from various websites using a credit-based system. You only pay for what you use.

Currently, we support scraping from Reddit - search for posts and fetch detailed comments. More platforms are coming soon.

Ready to get started? You'll need an API key to make requests.

Get Your API Key

Authentication

All API requests require authentication using your API key. Include it in the request headers.

Using the x-api-key Header

The recommended way is to include your API key in the x-api-key header:

curl -X GET "https://api.webscrapingapis.com/v1/reddit/search?q=nodejs" \
-H "x-api-key: YOUR_API_KEY"

Using Bearer Token

Alternatively, you can use the Authorization header with your API key as a Bearer token:

curl -X GET "https://api.webscrapingapis.com/v1/reddit/search?q=nodejs" \
-H "Authorization: Bearer YOUR_API_KEY"

Security Best Practices

Never hardcode API keys

Use environment variables or secret management tools to store your keys securely

Rotate keys regularly

Generate new keys and revoke old ones periodically from your dashboard

Use HTTPS only

Always use secure connections when sending API requests with your key

Monitor key usage

Check your usage stats regularly in the dashboard for any suspicious activity

How to Use This Documentation

Use the sidebar on the left to navigate between different sections:

🚀 Getting Started

You are here! This page explains the basics of authentication and API setup.

🔴 Reddit

Complete reference for the Reddit API endpoints. Includes search and post scraping.

⚠️ Errors

Learn about error codes and how to handle them in your application.

What's Next?

📖

Explore the Reddit Endpoint

Check the Reddit section in the sidebar for detailed API documentation

💡

Test in Your Dashboard

Use the Playground in your dashboard to test requests before integrating

🔗

Integrate into Your App

Use your API key to start making requests from your application