Developer API
API Documentation
Integrate our services into your platforms with our simple REST API.
Getting Started
To use the Trendr API, you'll need an API key. You can find your API key in your dashboard settings after creating an account.
Base URL
https://api.trendr.online/api/v1🔑
Keep Your API Key Secret
Never share your API key publicly. Use environment variables to store it securely. If your key is compromised, regenerate it immediately from your dashboard.
API Endpoints
POST
/api/v1/orderCreate a new order
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Your API key |
action | string | Yes | Set to "add" |
service | integer | Yes | Service ID |
link | string | Yes | URL to the content |
quantity | integer | Yes | Order quantity |
Example Response
{
"order": 12345,
"status": "pending",
"charge": 1.50,
"currency": "GHS"
}GET
/api/v1/statusGet order status
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Your API key |
action | string | Yes | Set to "status" |
order | integer | Yes | Order ID |
Example Response
{
"order": 12345,
"status": "completed",
"start_count": 1000,
"remains": 0
}GET
/api/v1/servicesGet list of all services
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Your API key |
action | string | Yes | Set to "services" |
Example Response
[
{
"service": 1001,
"name": "Instagram Followers",
"type": "Default",
"rate": 15.00,
"min": 100,
"max": 100000,
"category": "Instagram"
}
]GET
/api/v1/balanceGet account balance
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Your API key |
action | string | Yes | Set to "balance" |
Example Response
{
"balance": 150.75,
"currency": "GHS"
}Rate Limits
The API is rate limited to prevent abuse. Current limits:
- 100 requests per minute per IP
- 1000 requests per hour per API key
- 10 concurrent connections
Error Handling
The API uses standard HTTP response codes. Here are the common ones:
200OKRequest successful
400Bad RequestInvalid parameters
401UnauthorizedInvalid API key
429Too Many RequestsRate limit exceeded
500Server ErrorSomething went wrong on our end
💬