Consulta Situacao CPF ou CNPJ

FREEMIUM
By DataFast
Updated 4 months ago
Commerce
8.3/10
Popularity Score
1464ms
Latency
67%
Success Rate

Consulta Situacao CPF ou CNPJ API Documentation

API para consulta de situação do CPF junto a Receita Federal.

View API Details
GET/consultaSituacaoCPF?cpf={cpf}
GET/consultaSituacaoCPF?cpf={cpf}

Consulta Situação CPF

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
cpfSTRING
REQUIRED
Code Snippet
unirest.get("https://consulta-situacao-cpf-cnpj.p.rapidapi.com/consultaSituacaoCPF?cpf={cpf}")
.header("X-RapidAPI-Host", "consulta-situacao-cpf-cnpj.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://consulta-situacao-cpf-cnpj.p.rapidapi.com/consultaSituacaoCPF?cpf={cpf}
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://consulta-situacao-cpf-cnpj.p.rapidapi.com/consultaSituacaoCPF?cpf={cpf}")
.header("X-RapidAPI-Host", "consulta-situacao-cpf-cnpj.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication