Quick start with cURL
The fastest way to test the API is with cURL. Let’s look up a user:$BEARER_TOKEN with your actual Bearer Token. You’ll get a response like:
Step-by-step guide
1
Get your Bearer Token
In the Developer Console, navigate to your app and copy the Bearer Token.
2
Choose an endpoint
Start with one of these beginner-friendly endpoints:
| Endpoint | What it does |
|---|---|
| User lookup | Get user profile by username or ID |
| Post lookup | Get post by ID |
| Recent search | Search posts from the last 7 days |
3
Make the request
Use cURL, Postman, or your preferred HTTP client:
4
Parse the response
Responses are JSON. The primary data is in the
data field:Request more data with fields
By default, endpoints return minimal fields. Use thefields parameter to request additional data:
More examples
- Look up a post
- Search recent posts
- Get user's posts
Using code instead of cURL
- Python
- JavaScript
- Official SDKs
Tools for testing
Postman
Visual API testing with our collection.
Sample code
Examples in multiple languages.
API reference
Full endpoint documentation.
Troubleshooting
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
- Your app may not have access to this endpoint
- Some endpoints require user-context authentication (OAuth 1.0a or 2.0)
- Check your app’s permissions in the Developer Console
429 Too Many Requests
429 Too Many Requests
- You’ve hit a rate limit
- Check the
x-rate-limit-resetheader for when to retry - Implement exponential backoff in your code