Lista de Consultas automáticas
Retorna a lista de requisições automáticas geradas pelo usuário.
Requisição
GET https://api.capturaweb.com.br/v1/autorequest
Parâmetros
Atenção!
Os parâmetros abaixo são query string
Nome | Tipo | Obrigatório | Descrição |
---|---|---|---|
key | string | false | Key válida: ex.: cnj |
value | string | false | Valor de busca válido: ex.: 0804495-71.2018.8.10.0001 |
page | integer | false | Página: ex.: 1 |
limit | integer | false | Limite por página: ex.: 25 |
start | string | false | Data inicial da lista: ex.: 2019-10-01 |
end | string | false | Data final da lista: ex.: 2019-11-20 |
Exemplos
- cURL
- Python
- PHP
- NodeJs
curl -X GET "https://api.capturaweb.com.br/v1/autorequest?key=cnj&value=0804495-71.2018.8.10.0001" \
-H "accept: */*" \
-H "Authorization: Bearer eyJhb…..57wxQ"
import requests
headers = {
'accept': '_/_',
'Authorization': 'Bearer eyJhb…..57wxQ',
}
params = {
'key': 'cnj',
'value': '0804495-71.2018.8.10.0001',
}
response = requests.get('https://api.capturaweb.com.br/v1/autorequest', params=params, headers=headers)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.capturaweb.com.br/v1/autorequest?key=cnj&value=0804495-71.2018.8.10.0001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'accept: */*',
"Authorization: Bearer eyJhb…..57wxQ",
]);
$response = curl_exec($ch);
curl_close($ch);
var request = require("request");
var headers = {
accept: "*/*",
Authorization: "Bearer eyJhb…..57wxQ",
};
var options = {
url: "https://api.capturaweb.com.br/v1/autorequest?key=cnj&value=0804495-71.2018.8.10.0001",
headers: headers,
};
function callback(error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
}
request(options, callback);
Respostas
- Sucesso
{
"success": true,
"data": {
"total": 2,
"result": [
{
"id": "c5c42bbe-7fa8-44d7-9d78-a8c89e821dd9",
"key": "cnj",
"value": "0804495-71.2018.8.10.0001",
"createdAt": "2022-03-08T01:06:42.664Z",
"requests": [
{
"requestId": "7e11cef3-53da-4deb-81bb-2e07244107de"
},
{
"requestId": "471fd997-fa85-479e-a3a8-97d8391537bf"
},
{
"requestId": "222f496a-0444-42d3-b9be-78f4927532ac"
},
{
"requestId": "f2a9a200-c742-43e1-820c-a008e37ddce3"
},
{
"requestId": "d5d6615d-3327-4f73-801f-c94e456cf281"
}
]
},
{
"id": "dcbe1ecf-59c3-4016-be5c-8259816ee2a5",
"key": "cnj",
"value": "0804495-71.2018.8.10.0001",
"createdAt": "2022-03-08T01:00:24.315Z",
"requests": [
{
"requestId": "e660d7fd-4b47-4837-85e8-b877c9229324"
},
{
"requestId": "80f55a79-9dc2-423a-9ff3-a99281ed27ee"
},
{
"requestId": "b6ce4daa-1da3-42a9-9baf-0278584cdff3"
},
{
"requestId": "e729dd49-3319-4c6d-b7ba-3daaf7fbad36"
},
{
"requestId": "9429a876-7558-43fc-9d13-4670dd2524cd"
}
]
}
]
}
}
Status | Significado | Descrição | Schema |
---|---|---|---|
200 | OK | Sucesso | None |
401 | Undocumented | "key" must be one of [cnj, number, cartaprecatoria, doc, documentodelegacia, legado, nome, nomeadvogado, oab, numerocda, nomeadv, nomeparte, numorigem, numregistro, numstj] | None |
401 | Unauthorized | Access denied | None |
429 | Too Many Requests | Waiting for request data |