๐ How to query my history of requests made through the JUDIT API
This step-by-step guide will show you how to query the history of requests made through the JUDIT API. With it, you will be able to view details such as:- Type of search performed
- Period
- Presence of attachments
- Origin of the request (tracking or API)
- And even infer the cost of each operation.
1. How to query the history via Postman (using cURL)
To make the request: Copy the followingcURL command and paste it into Postman (Raw mode in the Body and POST type):
<START DATE> and <END DATE> with the format YYYY-MM-DD, for example:
2. How to query the history via JavaScript (fetch)
Code example:3. Example API response
Sample excerpt:4. Explanation of the main fields
| Field | Meaning |
|---|---|
origin | Can be api (direct request) or tracking (automatic tracking). |
response_type | Return type: lawsuit, entity, warrant, lawsuits. |
search.search_type | Search type: cpf, cnpj, oab, name, lawsuit_cnj. |
on_demand | If true, indicates a real-time query at the court. |
with_attachments | If true, case files were included (impacts the cost). |
๐ Field interpretation
origin
This field indicates the origin of the request, and can take the following values:
api: query performed directly through the API.tracking: query performed via tracking (recurring).
response_type
Defines the type of document that will be returned in the search. The possibilities include:
lawsuit: used in queries by CNJ number (Unified Case Number).lawsuits: used in searches by CPF, CNPJ, OAB, or NAME, returning a list of lawsuits.entity: used in registration data queries (by CPF, CNPJ, etc.).warrant: used in arrest warrant queries.
๐งช Real-world example and pricing analysis
๐ฐ Pricing analysis based on the fields:
origin: trackingโ this is a query through tracking, therefore monthly billing.search_type: lawsuit_cnjโ the tracking is on a lawsuit by CNJ number.on_demand: trueโ since this is tracking, this value will always be true because every tracking is on-demand.with_attachments: trueโ case files were collected, which implies an additional charge.
๐ธ Estimated total for the request:
The values shown are for illustrative purposes only. For actual commercial information, check our official pricing table.
- Lawsuit tracking: R$ 0.69/month
- Case files: R$ 3.50 (one-time charge)
โก๏ธ Estimated total cost: R$ 4.19
โน๏ธ Important points
- Billing may vary depending on the type of search, real-time mode (
on_demand), and the presence of attachments. - Requests via
trackingare renewed monthly as long as the tracking is active. - Historical requests (
cpf,cnpj, etc.) have a one-time charge per query.