🇵🇾 ParaguayService to query Paraguayan citizens using the CIC (Civil Identity Card).
Paraguayan Citizen Information
GET - https://api.verifik.co/v2/py/cic
The Paraguay Citizen Information service allows you to effortlessly retrieve essential information from Paraguay's Citizen Identification Cards. By leveraging this service, you can efficiently obtain verified data associated with a specific CIC, enabling various identity verification and data processing applications.
Implementation
Headers
Query Parameters
Request
JavaScript Python Swift PHP
Copy import axios from 'axios' ;
const options = {
method : 'GET' ,
url : '<https://api.verifik.co/v2/py/cic>' ,
params : {documentNumber : '1234567' } ,
headers : {
Accept : 'application/json' ,
Authorization : 'jwt <tu_token>'
}
};
try {
notFou const { data } = await axios .request (options);
console .log (data);
} catch (error) {
console .error (error);
}
Copy import http . client
conn = http . client . HTTPSConnection ( "api.verifik.co" )
payload = ''
headers = {}
conn . request ( "GET" , "/v2/py/cic?documentNumber=" , payload, headers)
res = conn . getresponse ()
data = res . read ()
print (data. decode ( "utf-8" ))
Copy var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/py/cic?documentNumber=1234567")!,timeoutInterval: Double.infinity)
request.httpMethod = "GET"
let task = URLSession.shared. dataTask ( with : request ) { data, response, error in
guard let data = data else {
print ( String ( describing : error ))
return
}
print ( String ( data : data, encoding : . utf8 ) ! )
}
task. resume ()
Copy <? php
require_once 'HTTP/Request2.php' ;
$request = new HTTP_Request2 ();
$request -> setUrl ( 'https://api.verifik.co/v2/py/cic?documentNumber=1234567' ) ;
$request -> setMethod ( HTTP_Request2 :: METHOD_GET ) ;
$request -> setConfig ( array (
'follow_redirects' => TRUE
) ) ;
try {
$response = $request -> send () ;
if ($response -> getStatus () == 200 ) {
echo $response -> getBody () ;
}
else {
echo 'Unexpected HTTP status: ' . $response -> getStatus () . ' ' .
$response -> getReasonPhrase () ;
}
}
catch ( HTTP_Request2_Exception $e) {
echo 'Error: ' . $e -> getMessage () ;
}
Response
200 404 409
Copy {
"data" : {
"arrayName" : [
"MATEO" ,
"VERIFIK"
] ,
"documentNumber" : "123456789" ,
"documentType" : "CICPY" ,
"firstName" : "MATEO" ,
"fullName" : "MATEO VERIFIK" ,
"lastName" : "VERIFIK"
} ,
"signature" : {
"dateTime" : "May 29, 2024 3:09 PM" ,
"message" : "Certified by Verifik.co"
} ,
"id" : "6BJW5"
}
Copy {
"code" : "NotFound" ,
"message" : "Record not found." ,
"signature" : {
"dateTime" : "August 31, 2022 3:24 PM" ,
"message" : "Certified by Verifik.co"
}
}
Copy {
"code" : "MissingParameter" ,
"message" : "missing documentNumber\n"
}