Lista de requisições
Para listar todas as consultas realizadas pelo usuário.
Requisição
GET https://api.capturaweb.com.br/v1/request
Parâmetros
Atenção!
Os parâmetros abaixo são query string
Nome | Tipo | Obrigatório | Descrição |
---|---|---|---|
source | string | false | Tipo da request: ex.: courts |
platform | string | false | Plataforma da request: ex.: esaj |
search | string | false | Tribunal da request: ex.: tjba |
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 |
pending | boolean | false | Requisições pendentes |
warning | boolean | false | Requisições com aviso |
success | boolean | false | Requisições com a resposta |
error | boolean | false | Requisições com algum erro |
Exemplos
- cURL
- Python
- PHP
- NodeJs
curl -X GET "https://api.capturaweb.com.br/v1/request?source=courts&platform=esaj&search=tjba" \
-H "accept: */*" \
-H "Authorization: Bearer eyJhb…..57wxQ"
import requests
headers = {
'accept': '_/_',
'Authorization': 'Bearer eyJhb…..57wxQ',
}
params = {
'source': 'courts',
'platform': 'esaj',
'search': 'tjba',
}
response = requests.get('https://api.capturaweb.com.br/v1/request', params=params, headers=headers)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.capturaweb.com.br/v1/request?source=courts&platform=esaj&search=tjba');
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/request?source=courts&platform=esaj&search=tjba",
headers: headers,
};
function callback(error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
}
request(options, callback);
Respostas
- Sucesso
{
"success": true,
"data": {
"total": 1,
"result": [
{
"id": "e8361bc1-903e-4929-b96e-828d12ccc9e8",
"respondedAt": "2022-03-08T00:23:19.726Z",
"createdAt": "2022-03-08T00:23:07.485Z",
"platform": "esaj",
"status": "success",
"source": "courts",
"search": "tjba",
"query": "principal",
"param": {
"key": "cnj",
"value": "0500275-63.2017.8.05.0103"
}
}
]
}
}
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 |