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.
Node.js
native fetch
Next.js
App Router
Express
REST API
PHP
native cURL
Laravel
HTTP Client
Python
requests
Ruby
Net::HTTP
Rails
Service object
Go
net/http
Rust
reqwest
Elixir
Req
Java
HttpClient
.NET
HttpClient
Dart / Flutter
http
Swift
URLSession
Lua
LuaSec
Nim
httpclient
curl
Terminal
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.