Developer API
Build Your Business
On Idan API
Powerful REST API with 99.9% uptime. Integrate social media growth services into your application in minutes.
99.9%
Uptime SLA
<200ms
Response Time
24/7
Support
Authentication
Secure your API requests with Bearer token authentication.
Getting Your API Key
Your API key is available in your dashboard under Settings → API Keys. Include it in the Authorization header of all requests.
curl https://api.yarahub.com/v1/services \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
Security Tip: Never expose your API key in client-side code. Always make API calls from your backend server.
API Endpoints
All endpoints are accessible at https://api.yarahub.com
GET
/v1/servicesList all available services
POST
/v1/ordersCreate a new order
GET
/v1/orders/:idGet order status and details
GET
/v1/balanceCheck account balance
Example Request
POST /v1/orders
{
"service": 1234,
"link": "https://instagram.com/user",
"quantity": 1000
}Example Response
{
"order_id": 12345,
"status": "processing",
"charge": 5.00,
"remains": 1000
}Code Examples
Get started quickly with examples in your favorite language.
const axios = require('axios');
const API_KEY = 'your_api_key_here';
const BASE_URL = 'https://api.yarahub.com/v1';
// Create an order
async function createOrder() {
try {
const response = await axios.post(`${BASE_URL}/orders`, {
service: 1234,
link: 'https://instagram.com/username',
quantity: 1000
}, {
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
}
});
console.log('Order created:', response.data);
return response.data;
} catch (error) {
console.error('Error:', error.response.data);
}
}Rate Limits & Best Practices
Guidelines to ensure optimal API performance.
Rate Limits
- Standard Plan1,000 requests per hour
- Premium Plan5,000 requests per hour
- Enterprise PlanUnlimited requests
Exceeding rate limits will result in a 429 Too Many Requests response.
Best Practices
- 1Cache responses when possible to reduce API calls
- 2Implement retry logic with exponential backoff
- 3Monitor rate limit headers in API responses
- 4Use webhooks for order status updates instead of polling
- 5Validate input before making API calls