Nag-aalok ang Followir ng simpleng HTTP API na sumusunod sa karaniwang format ng SMM Panel API v2, kaya gumagana ito nang walang pagbabago sa karamihan ng reseller panel at script. Lahat ng response ay JSON.
Pagsisimula
- Gumawa ng account at magdagdag ng pondo.
- Buksan ang API page sa account mo at gumawa ng API key. Panatilihin itong pribado.
- Opsyonal: idagdag ang mga IP address na puwedeng gumamit ng key mo (iwanang walang laman para payagan ang kahit anong IP).
Endpoint
| URL | https://followir.com/api/v2 |
|---|---|
| Method | POST (gumagana rin ang GET) |
| Format | Form parameters ang input, JSON ang output |
| Kailangan sa bawat call | key (ang API key mo) at action |
Mga Action
| action | Mga Parameter | Ano ang ginagawa nito |
|---|---|---|
services | key | Ilista ang lahat ng available na serbisyo kasama ang presyo at limitasyon |
add | key, service, link, quantity (runs, interval para sa drip-feed) | Mag-order ng bago |
status | key, order o orders (pinaghihiwalay ng kuwit) | Status ng order, isa o marami |
cancel | key, order o orders (pinaghihiwalay ng kuwit) | I-cancel ang mga order sa mga serbisyong pumapayag nito |
refill | key, order o orders (pinaghihiwalay ng kuwit) | Humiling ng refill sa mga kwalipikadong order |
refill_status | key, refill | Status ng refill request |
balance | key | Ang kasalukuyan mong balanse at currency |
services
curl -X POST "https://followir.com/api/v2" -d "key=YOUR_API_KEY" -d "action=services"
[
{
"service": "1",
"name": "Instagram Followers",
"type": "Default",
"category": "Instagram",
"rate": "0.9000",
"min": "100",
"max": "100000",
"refill": true,
"cancel": false
}
]
Ang rate ay ang presyo kada 1000. Ipinapakita ng refill at cancel kung sinusuportahan ng serbisyo ang mga ito.
add
curl -X POST "https://followir.com/api/v2" \
-d "key=YOUR_API_KEY" -d "action=add" \
-d "service=1" -d "link=https://instagram.com/username" -d "quantity=1000"
{ "order": 850758 }
Para sa mga drip-feed na serbisyo, puwede ka ring magpadala ng runs (hindi bababa sa 2) at interval (minuto, 1 hanggang 1440). Binabalewala ang mga ito sa ibang serbisyo.
status
curl -X POST "https://followir.com/api/v2" -d "key=YOUR_API_KEY" -d "action=status" -d "order=850758"
{
"charge": "0.9000",
"start_count": "3572",
"status": "In progress",
"remains": "400",
"currency": "USD"
}
Maraming order nang sabay: ipadala ang orders=850758,850759. Ang sagot ay isang object na naka-key sa numero ng order. Mga posibleng halaga ng status: Pending, In progress, Completed, Partial, Canceled, Refunded.
cancel
curl -X POST "https://followir.com/api/v2" -d "key=YOUR_API_KEY" -d "action=cancel" -d "order=850758"
{ "status": "Success" }
May mga cancellation na naghihintay ng kumpirmasyon, at ipinapakita ng sagot ang "status": "Pending". Kapag maraming order, makakatanggap ka ng listahan ng mga item na { "order": ..., "cancel": ... }.
refill and refill_status
curl -X POST "https://followir.com/api/v2" -d "key=YOUR_API_KEY" -d "action=refill" -d "order=850758"
{ "refill": "12" }
curl -X POST "https://followir.com/api/v2" -d "key=YOUR_API_KEY" -d "action=refill_status" -d "refill=12"
{ "refill": "12", "status": "Pending" }
balance
curl -X POST "https://followir.com/api/v2" -d "key=YOUR_API_KEY" -d "action=balance"
{ "balance": "25.50", "currency": "USD" }
Mga Error
Kapag may nagkamali, may error field ang sagot:
{ "error": "Not enough funds" }
| Mensahe | Kahulugan |
|---|---|
API key is required | Kulang ang key parameter |
Action is required / Incorrect action | Kulang o hindi kilalang action |
Invalid API key | Mali o naka-disable ang key, o wala sa whitelist ang IP mo |
Incorrect service ID / Service not found | Hindi umiiral o naka-disable ang numero ng serbisyo |
Link is required / Incorrect quantity | Kulang ang link, o hindi wastong numero ang dami |
Quantity must be between ... | Labas sa minimum at maximum ng serbisyo |
Not enough funds | Masyadong mababa ang balanse mo para sa order na ito |
Order not found | Walang ganitong order sa account mo |
Cancel is not available for this service | Hindi puwedeng i-cancel ang serbisyong ito |
Mga halimbawa ng code
PHP
$ch = curl_init("https://followir.com/api/v2");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'add',
'service' => 1,
'link' => 'https://instagram.com/username',
'quantity' => 1000,
]));
$response = json_decode(curl_exec($ch), true);
print_r($response);
Python
import requests
r = requests.post("https://followir.com/api/v2", data={
"key": "YOUR_API_KEY",
"action": "status",
"order": 850758,
})
print(r.json())
Mga dapat malaman
- Ang mga numero ng order ay kapareho ng nakikita mo sa orders page mo.
- Maaaring tanggihan ang sabay-sabay na pag-order ng marami para sa parehong link hangga't hindi tapos ang una.
- Nilo-log ang bawat call sa account mo. Kung sa tingin mo ay nabunyag ang key mo, gumawa ng bago mula sa API page.
- Kailangan ng tulong sa integration? Magbukas ng ticket sa support page.
