Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/finnhub/list-earnings-results \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"symbol": "AAPL"
}'curl --request POST \
--url https://api.aisa.one/apis/v1/finnhub/list-earnings-results \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"symbol": "AAPL"
}
'import requests
url = "https://api.aisa.one/apis/v1/finnhub/list-earnings-results"
payload = { "symbol": "AAPL" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({symbol: 'AAPL'})
};
fetch('https://api.aisa.one/apis/v1/finnhub/list-earnings-results', 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.aisa.one/apis/v1/finnhub/list-earnings-results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => 'AAPL'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/finnhub/list-earnings-results"
payload := strings.NewReader("{\n \"symbol\": \"AAPL\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/finnhub/list-earnings-results")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"AAPL\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/finnhub/list-earnings-results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"AAPL\"\n}"
response = http.request(request)
puts response.read_body{
"returned_count": 123,
"truncated": true,
"upstream_count": 123,
"items": [
{
"actual": 123,
"estimate": 123,
"period": "<string>",
"quarter": 123,
"surprise": 123,
"surprise_percent": 123,
"symbol": "<string>",
"year": 123
}
]
}Finnhub
List Earnings Results
List Earnings Results
POST
https://api.aisa.one
/
apis
/
v1
/
finnhub
/
list-earnings-results
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/finnhub/list-earnings-results \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"symbol": "AAPL"
}'curl --request POST \
--url https://api.aisa.one/apis/v1/finnhub/list-earnings-results \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"symbol": "AAPL"
}
'import requests
url = "https://api.aisa.one/apis/v1/finnhub/list-earnings-results"
payload = { "symbol": "AAPL" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({symbol: 'AAPL'})
};
fetch('https://api.aisa.one/apis/v1/finnhub/list-earnings-results', 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.aisa.one/apis/v1/finnhub/list-earnings-results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => 'AAPL'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/finnhub/list-earnings-results"
payload := strings.NewReader("{\n \"symbol\": \"AAPL\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/finnhub/list-earnings-results")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"AAPL\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/finnhub/list-earnings-results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"AAPL\"\n}"
response = http.request(request)
puts response.read_body{
"returned_count": 123,
"truncated": true,
"upstream_count": 123,
"items": [
{
"actual": 123,
"estimate": 123,
"period": "<string>",
"quarter": 123,
"surprise": 123,
"surprise_percent": 123,
"symbol": "<string>",
"year": 123
}
]
}Request contract
- Method and path: POST /apis/v1/finnhub/list-earnings-results
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/finnhub/list-earnings-results
{
"operationId": "finnhub.list-earnings-results",
"method": "POST",
"path": "/apis/v1/finnhub/list-earnings-results",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"max_results": {
"default": 4,
"description": "Requested and locally enforced result cap. Finnhub may ignore the upstream limit; the free tier currently returns the last four quarters.",
"maximum": 20,
"minimum": 1,
"type": "integer"
},
"symbol": {
"description": "Company ticker, such as AAPL; must not be blank.",
"examples": [
"AAPL"
],
"type": "string"
}
},
"required": [
"symbol"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0203 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json