# Look up CNPJ records with Python and Radar CNPJ

Read the free record of each CNPJ in a list with the Python standard library. No key needed.

Radar CNPJ · Updated 2026-10-14

## Step 1. Copy the script

The script reads each record and prints the company name and status.

```
import json
import urllib.request

RADAR = "https://radar-cnpj.com/api/cnpj/"


def ficha(cnpj):
    limpo = "".join(c for c in cnpj if c.isalnum()).upper()
    with urllib.request.urlopen(RADAR + limpo, timeout=20) as resposta:
        return json.load(resposta)["data"]


for cnpj in ["00000000000191"]:
    empresa = ficha(cnpj)
    print(empresa["cnpjFormatted"], empresa["razaoSocial"], empresa["situacao"]["label"])
```

## Step 2. Run the script

Run python3 radar.py and replace the list with your CNPJs.

[Open a record](https://radar-cnpj.com/en/?cnpj=00000000000191)

[Look up CNPJ records with Python and Radar CNPJ](https://radar-cnpj.com/en/guias/python)
