GET and POST requests. Each step includes working examples in cURL, Python, and JavaScript.
Step 1: Get your API key
- Open the Sorsa Dashboard and click Sign in. Register with any available option. Sorsa asks for nothing beyond what your auth provider shares.
- Your account starts with 100 free requests. No card required, they work on all available endpoints, and they never expire, so you can start testing immediately.
- When you need more volume, choose a plan (10K, 100K, or 500K requests per month) and a billing cycle (monthly or yearly), then pay by card or crypto.
Keep your API key private. Never expose it in frontend code, public repositories, or client-side JavaScript. Treat it like a password.
Step 2: Understand the basics
A few things to know before your first call. Base URLApiKey header:
200.
Rate limit
Every plan shares a limit of 20 requests per second. See Rate Limits for pacing and retry strategies.
Step 3: Send your first GET request
Before running the examples: install Python’srequests package with python -m pip install requests. Run JavaScript on your backend using Node.js 18+ with fetch; save examples as .mjs for top-level await. Replace YOUR_API_KEY with your key. The profile and tweet responses below are illustrative.
The quickest way to confirm your setup is to fetch a public profile with the /info endpoint.
cURL
Step 4: Send your first POST request
Many tweet and search endpoints usePOST with a JSON body. Here is a tweet search with /search-tweets:
cURL
next_cursor in your next request. See Pagination for the full pattern.
Step 5: Check your API usage
Check how many requests you have left at any time with/key-usage-info:
Common error codes
For full details and handling strategies, see the Error Codes Reference.
Try it without code
Prefer to click around first? Explore every endpoint in the API Reference or use the no-code API Playground. Both let you send real requests and inspect responses before writing a line of code.Next steps
- Authentication - Security best practices and header configuration
- Pagination - Handling cursors and paginated responses
- Rate Limits - Request pacing and retry strategies
- API Reference - All available endpoints with schemas
- Use Cases Guide - Real-world implementation patterns