Request Result
curl --request GET \
--url https://api.wokelo.ai/api/enterprise/request/result/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.wokelo.ai/api/enterprise/request/result/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wokelo.ai/api/enterprise/request/result/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wokelo.ai/api/enterprise/request/result/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wokelo.ai/api/enterprise/request/result/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wokelo.ai/api/enterprise/request/result/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wokelo.ai/api/enterprise/request/result/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"request_id": "d7a78d10-663a-493f-9b79-be1e6094f3bb",
"status": "COMPLETED",
"result": {
"tesla-motors": {
"firmographics": {
"name": "Tesla",
"website": "https://www.tesla.com",
"location": "Austin, United States",
"founded": 2003,
"type": "public",
"operating_status": "IPO",
"ticker": "NASDAQ:TSLA"
}
}
}
}
Supporting APIs
Request Result
Retrieves the final JSON result of a COMPLETED async request.
GET
/
api
/
enterprise
/
request
/
result
/
Request Result
curl --request GET \
--url https://api.wokelo.ai/api/enterprise/request/result/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.wokelo.ai/api/enterprise/request/result/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wokelo.ai/api/enterprise/request/result/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wokelo.ai/api/enterprise/request/result/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wokelo.ai/api/enterprise/request/result/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wokelo.ai/api/enterprise/request/result/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wokelo.ai/api/enterprise/request/result/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"request_id": "d7a78d10-663a-493f-9b79-be1e6094f3bb",
"status": "COMPLETED",
"result": {
"tesla-motors": {
"firmographics": {
"name": "Tesla",
"website": "https://www.tesla.com",
"location": "Austin, United States",
"founded": 2003,
"type": "public",
"operating_status": "IPO",
"ticker": "NASDAQ:TSLA"
}
}
}
}
Overview
Retrieves the result of a previously submitted API request.Endpoint Details
- Method: GET
- Endpoint:
/api/enterprise/request/result/
Authentication requirements
- Include a valid JWT token in your request header
- If you don’t have a token yet, you can get one from the
/auth/token/endpoint first.
Request
Request Parameters
Header Parameters
string
required
JWT token obtained from the Authentication request
Query Parameters
string
required
The unique identifier of the async request whose status is being checked. Example:
11db67b6-8345-4837-950f-87bbd8d7dcbeResponse
Successful Response Fields
string
Request ID of the initiated request
string
Status of the request
array
Result depending on the request
{
"request_id": "d7a78d10-663a-493f-9b79-be1e6094f3bb",
"status": "COMPLETED",
"result": {
"tesla-motors": {
"firmographics": {
"name": "Tesla",
"website": "https://www.tesla.com",
"location": "Austin, United States",
"founded": 2003,
"type": "public",
"operating_status": "IPO",
"ticker": "NASDAQ:TSLA"
}
}
}
}