You can get public data of peruvian citizen only with DNI number (Identity Number). This script only retrive data from https://www.peruanosenlinea.com/demo/reniec/example/consulta.php.
The endpoint: http://142.93.86.195:3300/getfromessalud
Method: POST
Body: json like: {"dni": "73058954"}