Getting Started

Set up your account and make your first API request in minutes.

1. Create an API Key

First, you'll need an API key to authenticate your requests. You can create one from your dashboard.

Your API key will be displayed only once. Store it securely and never commit it to version control.

2. Authenticate Requests

Include your API key in every request. Use the x-api-key header:

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

Alternatively, use the Authorization header with a Bearer token:

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

3. Make Your First Request

Try searching Reddit for posts. Replace YOUR_API_KEY with your actual key:

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

See the Reddit API reference for more details about available endpoints.

Next Steps