Corporate Ownership Graph Mapping API API ID: 12723

Map corporate ownership structures with our multi-hop CNPJ ownership-graph API.
Use this API from your AI agent via MCP
Works with OpenClaw, Claude Code/Desktop, Cursor, Windsurf, Cline and any MCP-compatible AI client.
Docs & setup
Create a skill by wrapping this MCP: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

Corporate Ownership Graph Mapping API

Enrich any Brazilian CNPJ and walk the corporate-ownership graph: for every partner that is itself a company (PJ), recursively resolve its partners — up to 3 hops deep. Free CNPJ lookups stop at the first level; this resolves who owns whom. Built for KYC/KYB, due-diligence, credit analysis, and fraud-detection workflows.

The differentiator: OpenCNPJ, CNPJá, ReceitaWS, and Minha Receita all return a single-CNPJ lookup. The value-add here is multi-hop partner traversal — cycle-safe, node-capped, and cache-first — so you get the whole ownership tree in one call instead of writing your own recursive crawler. BR-specific moat: non-BR-aware competitors don't replicate Receita Federal QSA (quadro de sócios) traversal.

What you get

  • Recursive partner-CNPJ traversaldepth=1 (direct partners) through depth=3 (two hops of corporate ownership) via GET /v1/cnpj/enrich/{cnpj}?depth=N.
  • PJ vs PF partner typing — company partners (full CNPJ) are traversable; individuals are returned as masked-CPF leaf nodes.
  • Cycle-safe + node-capped — a visited-set prevents infinite loops in cross-ownership; total nodes are capped to bound fan-out.
  • Cache-first (24h TTL) — CNPJ data changes daily at most, so repeat calls are fast and cheap.
  • Per-node metadata_nodes_fetched, _cache_hits, _truncated.
  • MCP-compatible — AI agents can discover and call this API via Model Context Protocol.

Example response (200 — depth=1)

{
  "cnpj": "00000000000191",
  "legalName": "BANCO DO BRASIL SA",
  "tradeName": null,
  "status": "ATIVA",
  "partners": [
    { "name": "FULANO DE TAL", "document": "***000000**", "type": "PF",
      "qualification": "Diretor", "qualificationCode": 10 }
  ],
  "traversal_depth": 1,
  "_nodes_fetched": 1,
  "_cache_hits": 0,
  "_truncated": false,
  "_source": "brasil-api-cnpj"
}

At depth=2 or more, each PJ (company) partner gains a nested enriched subtree containing its partners — so a holding company resolves into the entities it owns, recursively, up to the requested depth.

Use cases

  • KYC / KYB onboarding — resolve the ownership chain behind a corporate customer.
  • Due diligence / compliance — surface ultimate beneficial owners across holding structures.
  • Fintech underwriting — assess corporate-group exposure beyond the single applying entity.

 

API Documentation

Endpoints


Retorna os dados de registro de uma empresa brasileira mais seu gráfico de propriedade corporativa, resolvendo recursivamente as empresas parceiras (PJ) até 3 níveis de profundidade. Seguro contra ciclos e com limite de nós



                                                                            
GET https://docs.zylalabs.com/api/12723/corporate+ownership+graph+mapping+api/24623/enriquecer+cnpj+com+traversal+de+s%c3%b3cios
                                                                            
                                                                        

Enriquecer CNPJ com Traversal de Sócios - Endpoint Features

Object Description
depth [Required] Traversal depth 1–3 (1=direct partners, 2=+corporate partners, 3=two hops).
cnpj [Required]

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

depth

API EXAMPLE RESPONSE

{"cnpj":"00000000000191","legalName":"BANCO DO BRASIL SA","tradeName":"DIRECAO GERAL","status":"ATIVA","partners":[{"name":"ALAN CARLOS GUEDES DE OLIVEIRA","type":"PF","document":"***550179**","qualification":"Diretor","qualificationCode":10},{"name":"ALBERTO MARTINHAGO VIEIRA","type":"PF","document":"***842999**","qualification":"Diretor","qualificationCode":10},{"name":"ALEXANDRE BOCCHETTI NUNES","type":"PF","document":"***753277**","qualification":"Diretor","qualificationCode":10},{"name":"ANA CRISTINA ROSA GARCIA","type":"PF","document":"***443671**","qualification":"Diretor","qualificationCode":10},{"name":"ANELIZE LENZI RUAS DE ALMEIDA","type":"PF","document":"***195641**","qualification":"Conselheiro de Administração","qualificationCode":8},{"name":"ANTONIO CARLOS WAGNER CHIARELLO","type":"PF","document":"***263100**","qualification":"Diretor","qualificationCode":10},{"name":"CARLA NESI","type":"PF","document":"***295868**","qualification":"Diretor","qualificationCode":10},{"name":"CARLOS EDUARDO GUEDES PINTO","type":"PF","document":"***464088**","qualification":"Diretor","qualificationCode":10},{"name":"ELISA VIEIRA LEONEL","type":"PF","document":"***460676**","qualification":"Conselheiro de Administração","qualificationCode":8},{"name":"EULER ANTONIO LUZ MATHIAS","type":"PF","document":"***344088**","qualification":"Diretor","qualificationCode":10},{"name":"FABIO FRANCO BARBOSA FERNANDES","type":"PF","document":"***324698**","qualification":"Conselheiro de Administração","qualificationCode":8},{"name":"FELIPE GUIMARAES GEISSLER PRINCE","type":"PF","document":"***345856**","qualification":"Diretor","qualificationCode":10},{"name":"FERNANDO FLORENCIO CAMPOS","type":"PF","document":"***755588**","qualification":"Conselheiro de Administração","qualificationCode":8},{"name":"FRANCISCO AUGUSTO LASSALVIA","type":"PF","document":"***355918**","qualification":"Diretor","qualificationCode":10},{"name":"GILSON ALCEU BITTENCOURT","type":"PF","document":"***284509**","qualification":"Diretor","qualificationCode":10},{"name":"JOAO VAGNES DE MOURA SILVA","type":"PF","document":"***043411**","qualification":"Diretor","qualificationCode":10},{"name":"JOSE RICARDO SASSERON","type":"PF","document":"***404558**","qualification":"Diretor","qualificationCode":10},{"name":"JOSE SALVADOR CONSTANTINO ZARCOS FILHO","type":"PF","document":"***192438**","qualification":"Diretor","qualificationCode":10},{"name":"JULIO CESAR VEZZARO","type":"PF","document":"***058029**","qualification":"Diretor","qualificationCode":10},{"name":"KAMILLO TONONI OLIVEIRA SILVA","type":"PF","document":"***027514**","qualification":"Diretor","qualificationCode":10},{"name":"LARISSA DA SILVA NOVAIS VIEIRA","type":"PF","document":"***038787**","qualification":"Diretor","qualificationCode":10},{"name":"LUCIANO MATARAZZO REGNO","type":"PF","document":"***210718**","qualification":"Diretor","qualificationCode":10},{"name":"MARCELO HENRIQUE GOMES DA SILVA","type":"PF","document":"***263598**","qualification":"Diretor","qualificationCode":10},{"name":"MARCIO LUIZ DE ALBUQUERQUE OLIVEIRA","type":"PF","document":"***563227**","qualification":"Conselheiro de Administração","qualificationCode":8},{"name":"MARCO GEOVANNE TOBIAS DA SILVA","type":"PF","document":"***225791**","qualification":"Diretor","qualificationCode":10},{"name":"MARIANA PIRES DIAS","type":"PF","document":"***147908**","qualification":"Diretor","qualificationCode":10},{"name":"MARISA REGHINI FERREIRA MATTOS","type":"PF","document":"***301948**","qualification":"Diretor","qualificationCode":10},{"name":"NEUDSON PERES DE FREITAS","type":"PF","document":"***631536**","qualification":"Diretor","qualificationCode":10},{"name":"PAULA SAYAO CARVALHO ARAUJO","type":"PF","document":"***989951**","qualification":"Diretor","qualificationCode":10},{"name":"PEDRO BRAMONT","type":"PF","document":"***472469**","qualification":"Diretor","qualificationCode":10},{"name":"PEDRO HENRIQUE DUARTE OLIVEIRA","type":"PF","document":"***476143**","qualification":"Diretor","qualificationCode":10},{"name":"RAFAEL MACHADO GIOVANELLA","type":"PF","document":"***211719**","qualification":"Diretor","qualificationCode":10},{"name":"RODRIGO COSTA VASCONCELOS","type":"PF","document":"***561061**","qualification":"Diretor","qualificationCode":10},{"name":"RODRIGO MULINARI","type":"PF","document":"***599070**","qualification":"Diretor","qualificationCode":10},{"name":"ROSIANE BARBOSA LAVIOLA","type":"PF","document":"***181471**","qualification":"Diretor","qualificationCode":10},{"name":"SELMA CRISTINA ALVES SIQUEIRA","type":"PF","document":"***991626**","qualification":"Conselheiro de Administração","qualificationCode":8},{"name":"TARCIANA PAULA GOMES MEDEIROS","type":"PF","document":"***128734**","qualification":"Presidente","qualificationCode":16},{"name":"THIAGO AFFONSO BORSARI","type":"PF","document":"***759718**","qualification":"Diretor","qualificationCode":10},{"name":"VALMIR PEDRO ROSSI","type":"PF","document":"***266790**","qualification":"Conselheiro de Administração","qualificationCode":8}],"traversal_depth":1,"_source":"brasil-api-cnpj","_fetchedAt":"2026-06-02T02:58:53.261Z","_nodes_fetched":1,"_cache_hits":1,"_truncated":false}

Enriquecer CNPJ com Traversal de Sócios - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/12723/corporate+ownership+graph+mapping+api/24623/enriquecer+cnpj+com+traversal+de+s%c3%b3cios?depth=1&cnpj=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Corporate Ownership Graph Mapping API simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

🚀 Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

Corporate Ownership Graph Mapping API FAQs

The API returns detailed information about a Brazilian company's registration, including its legal name, status, and a list of partners. For each partner, it provides their name, document type (CNPJ or masked CPF), qualification, and qualification code, allowing users to understand the ownership structure.

Key fields in the response include "cnpj," "legalName," "status," "partners" (an array of partner details), "traversal_depth," "_nodes_fetched," "_cache_hits," and "_source." These fields provide essential insights into the corporate ownership structure and data retrieval metrics.

The response is structured in JSON format. The main object contains company details, while the "partners" field is an array of objects, each representing a partner with attributes like name, document type, and qualification. This hierarchical structure allows for easy traversal of ownership relationships.

The API provides information on corporate ownership structures, including direct partners, their qualifications, and the ability to recursively explore up to three levels of ownership. It specifically focuses on Brazilian companies registered under CNPJ.

Data accuracy is maintained through sourcing from reliable public databases, specifically BrasilAPI and minhareceita.org, which are aligned with Receita Federal. The API employs a cache-first strategy with a 24-hour TTL to ensure users receive up-to-date information while minimizing load on upstream sources.

Typical use cases include KYC/KYB onboarding to verify corporate customers, conducting due diligence to identify ultimate beneficial owners, and fintech underwriting to assess exposure across corporate groups. The API's multi-hop traversal is particularly valuable for complex ownership structures.

Users can customize their requests by specifying the depth parameter in the endpoint (1 to 3), which determines how many levels of partners to retrieve. This allows for tailored queries based on the complexity of the ownership structure being analyzed.

Quality checks include a cycle-safe mechanism to prevent infinite loops in ownership structures and a node cap to limit the number of traversed nodes. Additionally, the API's reliance on established public data sources ensures a high level of data integrity and reliability.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs