Si necesitas validar RUC o consultar DNI desde tu sistema, ERP o aplicación, empieza gratis con 200 consultas al mes o pasa al plan anual de $9.90 con consultas ilimitadas.
Regístrate, genera un token y consulta RUC por POST. Sirve para PHP, Node, .NET o cualquier servicio en Perú.
curl --location --request POST 'https://buscaruc.com/api/v1/ruc' \
--header 'Content-Type: application/json' \
--data-raw '{
"ruc": "20788757225",
"token": "YOUR_TOKEN"
}'
const res = await fetch('https://buscaruc.com/api/v1/ruc', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ ruc: '20788757225', token: 'YOUR_TOKEN' })
});
console.log(await res.json());
$payload = json_encode(['ruc' => '20788757225', 'token' => 'YOUR_TOKEN']);
$ch = curl_init('https://buscaruc.com/api/v1/ruc');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $payload,
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
]);
echo curl_exec($ch);