CPFHub.io
Start for free

SDKs and examples

The API is plain HTTP: any language can look up a CPF with one request and the x-api-key header. Use the Python SDK or copy the example for your language.

Official SDK

The Node.js SDK is in the works. In the meantime, use the Node.js example over HTTP.

Examples by language

Complete Simple Lookup code, with the key in an environment variable and error handling.

Real-Time and batch

The examples above use the Simple Lookup. The Real-Time Lookup and the batch lookup have examples in several languages on their own reference pages.