Integra Viewencer en tus aplicaciones con nuestra API RESTful
La API de Viewencer te permite integrar nuestros servicios directamente en tus aplicaciones. Nuestra API RESTful utiliza JSON para todas las respuestas.
https://api.viewencer.com/v1/
Todas las requests requieren autenticación mediante API Key. Puedes obtener tu API Key desde tu panel de usuario.
Authorization: Bearer YOUR_API_KEY
Obtiene la lista de todos los servicios disponibles.
GET /services
{
"status": "success",
"data": [
{
"id": 1,
"name": "Instagram Followers",
"category": "Instagram",
"rate": "0.015",
"min": 100,
"max": 100000,
"description": "High quality Instagram followers"
}
]
}
Crea una nueva orden para un servicio específico.
POST /orders
Parámetro | Tipo | Requerido | Descripción |
---|---|---|---|
service | integer | Sí | ID del servicio |
link | string | Sí | URL del perfil/post |
quantity | integer | Sí | Cantidad deseada |
{
"service": 1,
"link": "https://instagram.com/example",
"quantity": 1000
}
Obtiene el estado actual de una orden específica.
GET /orders/{order_id}
{
"status": "success",
"data": {
"id": 1234,
"service": "Instagram Followers",
"link": "https://instagram.com/example",
"quantity": 1000,
"start_count": 5000,
"remains": 400,
"status": "In progress",
"created_at": "2024-01-15 10:30:00"
}
}
Obtiene el balance actual de tu cuenta.
GET /balance
{
"status": "success",
"data": {
"balance": "125.50",
"currency": "USD"
}
}
1,
'link' => 'https://instagram.com/example',
'quantity' => 1000
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer ' . $api_key,
'Content-Type: application/json'
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
print_r($result);
?>
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.viewencer.com/v1/orders';
const data = {
service: 1,
link: 'https://instagram.com/example',
quantity: 1000
};
fetch(url, {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json'
},
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
import requests
import json
api_key = 'YOUR_API_KEY'
url = 'https://api.viewencer.com/v1/orders'
data = {
'service': 1,
'link': 'https://instagram.com/example',
'quantity': 1000
}
headers = {
'Authorization': f'Bearer {api_key}',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers, data=json.dumps(data))
result = response.json()
print(result)
Código | Descripción |
---|---|
200 |
Éxito |
400 |
Bad Request - Parámetros inválidos |
401 |
Unauthorized - API Key inválida |
403 |
Forbidden - Acceso denegado |
404 |
Not Found - Recurso no encontrado |
429 |
Too Many Requests - Rate limit excedido |
500 |
Internal Server Error |