{
  "id": 14106349,
  "title": "How to check CPF via API in Node.js and Python",
  "url": "https://urgent.news/2026/10/13/como-consultar-cpf-via-api-em-node-js-e-python",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-13T03:25:55.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/cpfhub/como-consultar-cpf-via-api-em-nodejs-e-python-3deh"
  },
  "original_language": "pt",
  "account": "An article discusses using an API to validate and query Brazilian CPF numbers. The CPFHub API allows users to validate CPF digits locally and query the database for basic information such as name, gender, and birthdate. The article provides code examples in Node.js and Python for validating CPF digits and making a simple GET request to the CPFHub API. The API returns basic data on the CPF holder, including name, gender, and birthdate, and costs 1 credit per successful query.",
  "summary": "Transparência: sou fundador da CPFHub, a API usada nos exemplos. Os conceitos (validação local, tratamento de erros, LGPD) valem para qualquer API de consulta de CPF. Se você tem um formulário de cadastro, um checkout ou um backoffice no Brasil, cedo ou tarde precisa conferir se o CPF digitado existe e bate com o nome informado. Neste tutorial mostro como usar uma API de consulta de CPF em…",
  "key_points": [
    "Use CPFHub API for CPF verification in Node.js and Python",
    "Validate CPF digits before calling the API with cpfValido() or cpfvalido()",
    "Each verified CPF costs 1 credit, responses average ~150ms"
  ],
  "editors_take": "Integrating local validation before API calls optimizes resource usage and ensures compliance with data protection standards by preventing unnecessary credit consumption for invalid taxpayer identifiers.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}