Consultar Vínculos societários
curl --request POST \
--url https://api.nlbs.ai/dados/consultar \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"datasets": [
"vinculos"
],
"documento": "11222333000181"
}
'import requests
url = "https://api.nlbs.ai/dados/consultar"
payload = {
"datasets": ["vinculos"],
"documento": "11222333000181"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({datasets: ['vinculos'], documento: '11222333000181'})
};
fetch('https://api.nlbs.ai/dados/consultar', 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://api.nlbs.ai/dados/consultar",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'datasets' => [
'vinculos'
],
'documento' => '11222333000181'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nlbs.ai/dados/consultar"
payload := strings.NewReader("{\n \"datasets\": [\n \"vinculos\"\n ],\n \"documento\": \"11222333000181\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nlbs.ai/dados/consultar")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"datasets\": [\n \"vinculos\"\n ],\n \"documento\": \"11222333000181\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/dados/consultar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"datasets\": [\n \"vinculos\"\n ],\n \"documento\": \"11222333000181\"\n}"
response = http.request(request)
puts response.read_body{
"consultado_em": "2026-01-15T12:00:00Z",
"datasets": {
"vinculos": {
"encontrado": true,
"itens": [
{
"ativo": true,
"capital": "1000.00",
"direcao": "socio",
"documento": "***.982.***-**",
"fim": null,
"inicio": "2020-01-01",
"moeda": "BRL",
"nome": "Fulano de Tal",
"percentual": "50.00",
"percentual_votos": null,
"qualificacao": "Socio-Administrador",
"tipo_participacao": "shareholder",
"tipo_pessoa": "person"
}
]
}
},
"documento": "11222333000181",
"encontrado": true,
"tipo": "cnpj"
}Datasets
Vínculos societários
Sócios do documento e participações dele em empresas.
POST
/
dados
/
consultar
Consultar Vínculos societários
curl --request POST \
--url https://api.nlbs.ai/dados/consultar \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"datasets": [
"vinculos"
],
"documento": "11222333000181"
}
'import requests
url = "https://api.nlbs.ai/dados/consultar"
payload = {
"datasets": ["vinculos"],
"documento": "11222333000181"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({datasets: ['vinculos'], documento: '11222333000181'})
};
fetch('https://api.nlbs.ai/dados/consultar', 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://api.nlbs.ai/dados/consultar",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'datasets' => [
'vinculos'
],
'documento' => '11222333000181'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nlbs.ai/dados/consultar"
payload := strings.NewReader("{\n \"datasets\": [\n \"vinculos\"\n ],\n \"documento\": \"11222333000181\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nlbs.ai/dados/consultar")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"datasets\": [\n \"vinculos\"\n ],\n \"documento\": \"11222333000181\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/dados/consultar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"datasets\": [\n \"vinculos\"\n ],\n \"documento\": \"11222333000181\"\n}"
response = http.request(request)
puts response.read_body{
"consultado_em": "2026-01-15T12:00:00Z",
"datasets": {
"vinculos": {
"encontrado": true,
"itens": [
{
"ativo": true,
"capital": "1000.00",
"direcao": "socio",
"documento": "***.982.***-**",
"fim": null,
"inicio": "2020-01-01",
"moeda": "BRL",
"nome": "Fulano de Tal",
"percentual": "50.00",
"percentual_votos": null,
"qualificacao": "Socio-Administrador",
"tipo_participacao": "shareholder",
"tipo_pessoa": "person"
}
]
}
},
"documento": "11222333000181",
"encontrado": true,
"tipo": "cnpj"
}Vínculos societários diretos do documento. Retorna até 50 itens: primeiro os sócios (
direcao: socio), depois as participações dele (direcao: participacao). O documento da contraparte vem sempre mascarado. Envie "datasets": ["vinculos"]; a chave precisa do escopo dados:vinculos.Headers
Body
application/json
Response
Um bloco por dataset pedido.

