Listar serviços
Devolve o catálogo de serviços disponível e as tarifas aplicáveis à conta. A resposta pode ficar em cache até 5 minutos, por isso é um instantâneo do catálogo e não uma cotação em tempo real; consultar com muita frequência não a torna mais recente.
https://notpanel.com/api/v3action=servicesapplication/x-www-form-urlencodedParâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| keyObrigatório | string | Sua chave de API. Obrigatória em toda requisição. |
| actionObrigatório | string | Deve ser a string literal "services". |
| language | language code | Idioma opcional do nome: en, es, pt, ru, tr, ar, hi, id, fr ou zh. pt é português do Brasil e zh é chinês simplificado. Omita para preservar exatamente a resposta legada em inglês. Os administradores podem revisar ou ajustar cada nome. |
Exemplo de requisição
Substitua YOUR_API_KEY pela chave gerada na página de API do seu painel.
curl -X POST https://notpanel.com/api/v3 \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "key=YOUR_API_KEY&action=services&language=hi"const res = await fetch("https://notpanel.com/api/v3", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({
key: "YOUR_API_KEY",
action: "services",
language: "hi",
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://notpanel.com/api/v3",
data={
"key": "YOUR_API_KEY",
"action": "services",
"language": "hi",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'services',
'language' => 'hi',
]);
$response = file_get_contents('https://notpanel.com/api/v3', false, stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => $body,
'ignore_errors' => true,
],
]));
print_r(json_decode($response, true));
Exemplo de resposta
[
{
"service": "1",
"name": "Instagram रियल फॉलोअर्स",
"canonical_name": "Instagram Followers — Real",
"name_language": "hi",
"type": "Default",
"type_key": "default",
"rate": "0.50",
"min": "100",
"max": "100000",
"category": "Instagram Followers",
"refill": true,
"cancel": true,
"dripfeed": true
},
{
"service": "2",
"name": "TikTok Views — High Retention",
"canonical_name": "TikTok Views — High Retention",
"name_language": "en",
"type": "Default",
"type_key": "default",
"rate": "0.05",
"min": "1000",
"max": "10000000",
"category": "TikTok Views",
"refill": false,
"cancel": true,
"dripfeed": false
}
]Erros comuns
| Status | Corpo | Causa |
|---|---|---|
| 400 | {"error":"Invalid API key"} | Chave ausente ou não reconhecida. |
| 403 | {"error":"Account suspended"} | A conta não está com status ativo. |
| 400 | {"error":"language must be one of en, es, pt, ru, tr, ar, hi, id, fr, zh","error_code":"INVALID_LANGUAGE"} | O valor de idioma não é compatível. Use um dos dez códigos de idioma documentados para nomes de serviços. |