Propriedades Rurais
Perfil rural de uma pessoa
Retorna propriedades SNCR e CAFIR, infracoes IBAMA, autorizacoes florestais (AUTEX), transportes florestais (DOF), produtores organicos e resumo consolidado.
GET
/
rural
/
cpf
/
{cpf}
Perfil rural de uma pessoa
curl --request GET \
--url 'https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token='import requests
url = "https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"documento": "12345678901",
"tipo": "PF",
"propriedades_sncr": [
{
"codigo_imovel": "9200123456",
"nome_imovel": "Fazenda Boa Vista",
"municipio": "Ribeirão Preto",
"uf": "SP",
"area_total": 500.5,
"modulos_fiscais": 25,
"cod_ibge": "3543402",
"nome_detentor": "João Silva",
"cpf_cnpj_mask": "123.***.***-01",
"documento": "12345678901",
"tipo": "PF",
"tipo_detentor": "Proprietário",
"fracao": 100,
"condicao_detentor": "Proprietário",
"pais": "BRASIL"
}
],
"propriedades_cafir": [
{
"nirf": "1234567890",
"area_total": 500.5,
"codigo_incra": "9200123456",
"nome_imovel": "Fazenda Boa Vista",
"situacao": "Ativo",
"logradouro": "Estrada Rural km 5",
"distrito": "Distrito Rural",
"uf": "SP",
"municipio": "Ribeirão Preto",
"cep": "14000000",
"data_atualizacao": "2023-01-15",
"imune_isento": "Não",
"codigo_sncr": "9200123456"
}
],
"transportes": {
"total": 5,
"volume_total": 250,
"valor_total": 75000,
"produtos": [
"Eucalipto"
],
"por_produto": [
{
"produto": "Eucalipto",
"qtd": 5,
"volume": 250,
"valor": 75000,
"unidade": "m3"
}
],
"por_ano": [
{
"ano": 2023,
"qtd": 3,
"volume": 150
},
{
"ano": 2024,
"qtd": 2,
"volume": 100
}
],
"parceiros": [
{
"documento": "98765432000188",
"tipo": "PJ",
"nome": "Madeireira Central LTDA",
"uf": "SP",
"municipio": "Ribeirão Preto",
"direcao": "destinatario",
"qtd_operacoes": 5,
"volume_total": 250,
"valor_total": 75000,
"produtos": [
"Eucalipto"
],
"por_produto": [],
"periodo": {
"primeiro": "2023-03-10",
"ultimo": "2024-08-20"
},
"operacoes": []
}
]
},
"autorizacoes": [
{
"numero_de_serie": "AUTEX-2023-0001",
"tipo_autex": "Supressão de vegetação",
"municipio": "Ribeirão Preto",
"uf": "SP",
"situacao": "Ativa",
"data_emissao": "2023-02-01",
"data_vencimento": "2024-02-01",
"produtos": [
{
"produto": "Eucalipto",
"quantidade_autorizada": 500
}
]
}
],
"infracoes": [
{
"numero_auto": "9876543",
"tipo_auto": "Multa",
"documento": "12345678901",
"tipo": "PF",
"nome_infrator": "João Silva",
"municipio": "Ribeirão Preto",
"uf": "SP",
"descricao_dano": "Desmatamento irregular de área de preservação permanente",
"area_embargada": 2.5,
"latitude": -21.1767,
"longitude": -47.8208,
"data_auto": "2022-06-15",
"valor_multa": 50000,
"situacao_debito": "Em cobrança"
}
],
"produtor_organico": [
{
"nome_produtor": "João Silva",
"documento": "12345678901",
"tipo": "PF",
"cpf_cnpj_mask": "123.***.***-01",
"uf": "SP",
"cidade": "Ribeirão Preto",
"escopo": "Produção primária vegetal",
"atividade": "Olericultura",
"situacao": "Ativo"
}
],
"resumo": {
"area_total_ha": 1001,
"qtd_imoveis_sncr": 1,
"qtd_imoveis_cafir": 1,
"qtd_infracoes": 1,
"valor_total_multas": 50000,
"qtd_autorizacoes": 1,
"qtd_transportes": 5,
"estados": [
"SP"
]
}
}{
"success": false,
"erro": {
"codigo": "VALIDATION_ERROR",
"mensagem": "CPF invalido"
}
}{
"success": false,
"erro": {
"codigo": "VALIDATION_ERROR",
"mensagem": "CPF invalido"
}
}Authorizations
Path Parameters
CPF (11 digitos)
Example:
"12345678901"
Response
Perfil rural completo. Em caso de documento invalido ou servico indisponivel, retorna { erro: string } tambem com status 200.
- Option 1
- Option 2
Perfil rural agregado. Retornado de forma identica por /rural/cpf/{cpf} e /rural/cnpj/{cnpj}; a unica diferenca e o valor de 'tipo' (PF para CPF, PJ para CNPJ).
CPF/CNPJ consultado (somente digitos)
PF quando consultado por CPF (11 digitos), PJ quando consultado por CNPJ (14 digitos)
Available options:
PF, PJ Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Perfil rural de uma pessoa
curl --request GET \
--url 'https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token='import requests
url = "https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://221b-api.sherlocker.com.br/api/v1/rural/cpf/{cpf}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"documento": "12345678901",
"tipo": "PF",
"propriedades_sncr": [
{
"codigo_imovel": "9200123456",
"nome_imovel": "Fazenda Boa Vista",
"municipio": "Ribeirão Preto",
"uf": "SP",
"area_total": 500.5,
"modulos_fiscais": 25,
"cod_ibge": "3543402",
"nome_detentor": "João Silva",
"cpf_cnpj_mask": "123.***.***-01",
"documento": "12345678901",
"tipo": "PF",
"tipo_detentor": "Proprietário",
"fracao": 100,
"condicao_detentor": "Proprietário",
"pais": "BRASIL"
}
],
"propriedades_cafir": [
{
"nirf": "1234567890",
"area_total": 500.5,
"codigo_incra": "9200123456",
"nome_imovel": "Fazenda Boa Vista",
"situacao": "Ativo",
"logradouro": "Estrada Rural km 5",
"distrito": "Distrito Rural",
"uf": "SP",
"municipio": "Ribeirão Preto",
"cep": "14000000",
"data_atualizacao": "2023-01-15",
"imune_isento": "Não",
"codigo_sncr": "9200123456"
}
],
"transportes": {
"total": 5,
"volume_total": 250,
"valor_total": 75000,
"produtos": [
"Eucalipto"
],
"por_produto": [
{
"produto": "Eucalipto",
"qtd": 5,
"volume": 250,
"valor": 75000,
"unidade": "m3"
}
],
"por_ano": [
{
"ano": 2023,
"qtd": 3,
"volume": 150
},
{
"ano": 2024,
"qtd": 2,
"volume": 100
}
],
"parceiros": [
{
"documento": "98765432000188",
"tipo": "PJ",
"nome": "Madeireira Central LTDA",
"uf": "SP",
"municipio": "Ribeirão Preto",
"direcao": "destinatario",
"qtd_operacoes": 5,
"volume_total": 250,
"valor_total": 75000,
"produtos": [
"Eucalipto"
],
"por_produto": [],
"periodo": {
"primeiro": "2023-03-10",
"ultimo": "2024-08-20"
},
"operacoes": []
}
]
},
"autorizacoes": [
{
"numero_de_serie": "AUTEX-2023-0001",
"tipo_autex": "Supressão de vegetação",
"municipio": "Ribeirão Preto",
"uf": "SP",
"situacao": "Ativa",
"data_emissao": "2023-02-01",
"data_vencimento": "2024-02-01",
"produtos": [
{
"produto": "Eucalipto",
"quantidade_autorizada": 500
}
]
}
],
"infracoes": [
{
"numero_auto": "9876543",
"tipo_auto": "Multa",
"documento": "12345678901",
"tipo": "PF",
"nome_infrator": "João Silva",
"municipio": "Ribeirão Preto",
"uf": "SP",
"descricao_dano": "Desmatamento irregular de área de preservação permanente",
"area_embargada": 2.5,
"latitude": -21.1767,
"longitude": -47.8208,
"data_auto": "2022-06-15",
"valor_multa": 50000,
"situacao_debito": "Em cobrança"
}
],
"produtor_organico": [
{
"nome_produtor": "João Silva",
"documento": "12345678901",
"tipo": "PF",
"cpf_cnpj_mask": "123.***.***-01",
"uf": "SP",
"cidade": "Ribeirão Preto",
"escopo": "Produção primária vegetal",
"atividade": "Olericultura",
"situacao": "Ativo"
}
],
"resumo": {
"area_total_ha": 1001,
"qtd_imoveis_sncr": 1,
"qtd_imoveis_cafir": 1,
"qtd_infracoes": 1,
"valor_total_multas": 50000,
"qtd_autorizacoes": 1,
"qtd_transportes": 5,
"estados": [
"SP"
]
}
}{
"success": false,
"erro": {
"codigo": "VALIDATION_ERROR",
"mensagem": "CPF invalido"
}
}{
"success": false,
"erro": {
"codigo": "VALIDATION_ERROR",
"mensagem": "CPF invalido"
}
}