Realiza una búsqueda para encontrar el RUC que desees; y también el tipo de cambio actual.

Fácil de usar con cualquier lenguaje como Java, Php o Python. Y más aún si utilizas algún framework como Laravel, Django o Spring.

DNI Perú (50 consultas diarias - Restringido)

Request Method: GET

https://dni.optimizeperu.com/api/persons/≺dni≻

Response: JSON

{"dni": "xxxxx",

"name": "xxxxx",

"first_name": "xxxxx",

"last_name": "xxxxx"}

"cui": "xxxxx"}

RUC Perú (50 consultas diarias - Restringido)

Request Method: GET

https://dni.optimizeperu.com/api/company/≺ruc≻

Response: JSON

{"ruc": "xxxxx",

"razon_social": "xxxxx",

"actividad_economica": "xxxxx",

"contribuyente_condicion": "xxxxx",

"contribuyente_tipo": "xxxxx",

"contribuyente_estado": "xxxxx",

"fecha_inscripcion": "xxxxx",

"fecha_actividad": "xxxxx",

"domicilio_fiscal": "xxxxx",

"tipo_empresa": "xxxxx",

TIPO DE CAMBIO Perú (50 consultas diarias - Restringido)

Request Method: GET

Headers

Authorization: Token k4d2956bd531ab61d44f4fa07304b20e13913815

EndPoint

https://dni.optimizeperu.com/api/prod/tipo-cambio

Response: JSON

"anio": {

"mes_nombre": "xxxxx",

"mes_valor": "xxxxx",

"anio": "xxxxx"}


"cambio_actual": {

"dia": "xxxxx",

"compra": "xxxxx"

"venta": "xxxxx"}


"dias": [

{"dia": "xxxxx", "compra": "xxxxx","venta": "xxxxx"},

{"dia": "xxxxx","compra": "xxxxx","venta": "xxxxx"},

{"dia": "xxxxx","compra": "xxxxx","venta": "xxxxx"}

...

]