API
Connect your own panel, website or script. The API follows the standard v2 format used across SMM panels.
- HTTP method
- POST
- API URL
- https://askbambi.org/api/v2
- Response format
- JSON
API key
Sign in to get your API key.
Send every request as a POST with form fields (or a JSON body). Every answer is JSON. A failed request returns an object with a single "error" field. Up to 300 requests per minute per key.
Service list
Returns every service you can order, with the rate that applies to your account.
Parameters
| Parameter | Description |
|---|---|
| key | Your API key |
| action | Method name: services |
Example request
<?php
$ch = curl_init('https://askbambi.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'services',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);Example response
[
{
"service": 1001,
"name": "Instagram Followers [Economy]",
"type": "Default",
"category": "Instagram Followers",
"rate": "1.45",
"min": "10",
"max": "500000",
"refill": false,
"cancel": false
},
{
"service": 1008,
"name": "Instagram Likes [HQ]",
"type": "Default",
"category": "Instagram Likes",
"rate": "0.13",
"min": "10",
"max": "100000",
"refill": true,
"cancel": true
}
]Add order
Places a new order and returns its ID. The charge is taken from your balance.
Parameters
| Parameter | Description |
|---|---|
| key | Your API key |
| action | Method name: add |
| service | Service ID |
| link | Link to the page, post or profile |
| quantity | Needed quantity |
Example request
<?php
$ch = curl_init('https://askbambi.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'add',
'service' => '1008',
'link' => 'https://www.instagram.com/p/CxYz123AbCd/',
'quantity' => '500',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);Example response
{
"order": 48321
}Order status
Returns the current status, charge, start count and remaining quantity of one order.
Parameters
| Parameter | Description |
|---|---|
| key | Your API key |
| action | Method name: status |
| order | Order ID |
Example request
<?php
$ch = curl_init('https://askbambi.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'status',
'order' => '48321',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);Example response
{
"charge": "0.065",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}Multiple orders status
Returns the status of up to 100 orders in a single request. Unknown IDs get an error entry.
Parameters
| Parameter | Description |
|---|---|
| key | Your API key |
| action | Method name: status |
| orders | Order IDs separated by a comma, up to 100 |
Example request
<?php
$ch = curl_init('https://askbambi.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'status',
'orders' => '48321,48322,100',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);Example response
{
"100": {
"error": "Incorrect order ID"
},
"48321": {
"charge": "0.065",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"48322": {
"charge": "1.44219",
"start_count": "234",
"status": "In progress",
"remains": "10",
"currency": "USD"
}
}Create refill
Requests a refill for a completed order. Works for services listed with refill: true; other guaranteed services are refilled through a ticket.
Parameters
| Parameter | Description |
|---|---|
| key | Your API key |
| action | Method name: refill |
| order | Order ID |
Example request
<?php
$ch = curl_init('https://askbambi.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'refill',
'order' => '48321',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);Example response
{
"refill": "12"
}Create multiple refill
Requests refills for up to 100 orders at once.
Parameters
| Parameter | Description |
|---|---|
| key | Your API key |
| action | Method name: refill |
| orders | Order IDs separated by a comma, up to 100 |
Example request
<?php
$ch = curl_init('https://askbambi.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'refill',
'orders' => '48321,48322,100',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);Example response
[
{
"order": 48321,
"refill": 12
},
{
"order": 48322,
"refill": 13
},
{
"order": 100,
"refill": {
"error": "Incorrect order ID"
}
}
]Get refill status
Returns the status of one refill.
Parameters
| Parameter | Description |
|---|---|
| key | Your API key |
| action | Method name: refill_status |
| refill | Refill ID |
Example request
<?php
$ch = curl_init('https://askbambi.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'refill_status',
'refill' => '12',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);Example response
{
"status": "Completed"
}Get multiple refill status
Returns the status of up to 100 refills.
Parameters
| Parameter | Description |
|---|---|
| key | Your API key |
| action | Method name: refill_status |
| refills | Refill IDs separated by a comma, up to 100 |
Example request
<?php
$ch = curl_init('https://askbambi.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'refill_status',
'refills' => '12,13,999',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);Example response
[
{
"refill": 12,
"status": "Completed"
},
{
"refill": 13,
"status": "Pending"
},
{
"refill": 999,
"status": {
"error": "Refill not found"
}
}
]Create cancel
Asks to cancel up to 100 orders. Only orders that are still running and whose service allows cancelling can be canceled.
Parameters
| Parameter | Description |
|---|---|
| key | Your API key |
| action | Method name: cancel |
| orders | Order IDs separated by a comma, up to 100 |
Example request
<?php
$ch = curl_init('https://askbambi.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'cancel',
'orders' => '48321,48322,100',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);Example response
[
{
"order": 48321,
"cancel": 1
},
{
"order": 48322,
"cancel": {
"error": "This service cannot be canceled."
}
},
{
"order": 100,
"cancel": {
"error": "Incorrect order ID"
}
}
]User balance
Returns your current balance.
Parameters
| Parameter | Description |
|---|---|
| key | Your API key |
| action | Method name: balance |
Example request
<?php
$ch = curl_init('https://askbambi.org/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'balance',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);Example response
{
"balance": "100.84292",
"currency": "USD"
}Order statuses
The status field of an order is one of: Pending, In progress, Processing, Completed, Partial, Canceled. A partial or canceled order has already been refunded for the part that was not delivered.