Authentication
All API requests require authentication using your API key in theX-API-Key header.
Getting Your API Key
- Sign up at sociavault.com
- Navigate to your Dashboard
- Copy your API key (starts with
sk_live_)
Using Your API Key
Include your API key in every request using theX-API-Key header:
API Performance
The SociaVault API is built to scale automatically with your needs.Auto-Scaling
Our infrastructure automatically scales to handle your request volume
High Availability
99.9% uptime with redundant systems and automatic failover
Global CDN
Fast response times from anywhere in the world
No Rate Limits
Send as many requests as you need - we scale with you
Enterprise-grade infrastructure ensures your requests are handled quickly and reliably, no matter the volume.
Credit System
Each API endpoint consumes credits based on data complexity:| Complexity | Credit Cost | Examples |
|---|---|---|
| Simple | 1 credit | Profile lookups, basic info |
| Moderate | 5-10 credits | Posts, videos, comments |
| Complex | 20+ credits | Demographics, analytics |
Check individual endpoint documentation for specific credit costs.
Checking Your Balance
Monitor your credit balance in real-time via the Dashboard.Error Responses
The API uses standard HTTP status codes and returns detailed error messages:| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Insufficient credits |
| 500 | Internal Server Error |
Error Response Format
Best Practices
Secure Your API Key
Secure Your API Key
- Store API keys in environment variables
- Never commit API keys to version control
- Use different keys for development and production
- Rotate keys regularly for security
Optimize Credit Usage
Optimize Credit Usage
- Cache frequently accessed data
- Use pagination for large datasets
- Only request the data you need
- Monitor your usage in the dashboard
Error Handling
Error Handling
- Always check response status codes
- Implement proper error handling
- Log errors for debugging
- Retry failed requests with exponential backoff
Performance Optimization
Performance Optimization
- Implement caching strategies
- Use batch requests when possible
- Monitor response times in your logs
- Contact support for optimization advice