Stock indices
curl --request POST \
--url https://api.aisa.one/apis/v1/b3-com-br/companies/stock-indices \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keyword": "PETR"
}
'import requests
url = "https://api.aisa.one/apis/v1/b3-com-br/companies/stock-indices"
payload = { "keyword": "PETR" }
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({keyword: 'PETR'})
};
fetch('https://api.aisa.one/apis/v1/b3-com-br/companies/stock-indices', 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/b3-com-br/companies/stock-indices",
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([
'keyword' => 'PETR'
]),
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/b3-com-br/companies/stock-indices"
payload := strings.NewReader("{\n \"keyword\": \"PETR\"\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/b3-com-br/companies/stock-indices")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"keyword\": \"PETR\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/b3-com-br/companies/stock-indices")
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 \"keyword\": \"PETR\"\n}"
response = http.request(request)
puts response.read_body{
"country": "BR",
"keyword": "PETR",
"next_page": null,
"observed_at_ms": 1790046992117,
"page": 1,
"page_size": 20,
"source": "b3.com.br",
"stocks": [
{
"code": "E1CO34",
"company": "ECOPETROL SA",
"indices": [
"BDRX"
],
"type": "DRN"
},
{
"code": "PETR3",
"company": "PETROBRAS",
"indices": [
"IBBC",
"IBBE",
"IBBR",
"IBEE",
"IBEW",
"IBOV",
"IBRA",
"IBXL",
"IBXX",
"IDIV",
"IDVR",
"IGCT",
"IGCX",
"ITAG",
"MLCX"
],
"type": "ON N2"
},
{
"code": "PETR4",
"company": "PETROBRAS",
"indices": [
"IBBC",
"IBBE",
"IBBR",
"IBEE",
"IBEW",
"IBLV",
"IBOV",
"IBRA",
"IBSD",
"IBXL",
"IBXX",
"IDIV",
"IDVR",
"IGCT",
"IGCX",
"ITAG",
"MLCX"
],
"type": "PN N2"
},
{
"code": "RECV3",
"company": "PETRORECSA",
"indices": [
"GPTW",
"IBRA",
"IBXX",
"IDIV",
"IDVR",
"IGCT",
"IGCX",
"IGNM",
"ITAG",
"SCSR",
"SMLL"
],
"type": "ON NM"
}
],
"total_pages": 1,
"total_records": 4,
"updated_on": "2026-09-22",
"url": "https://sistemaswebb3-listados.b3.com.br/indexPage/stocks?language=pt-br",
"valid_from_month": 9,
"valid_to_month": 12,
"year": 2026
}B3 listed companies and indices
Stock indices
To learn the indices a company (e.g. PETR) is a member of.
POST
https://api.aisa.one
/
apis
/
v1
/
b3-com-br
/
companies
/
stock-indices
Stock indices
curl --request POST \
--url https://api.aisa.one/apis/v1/b3-com-br/companies/stock-indices \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keyword": "PETR"
}
'import requests
url = "https://api.aisa.one/apis/v1/b3-com-br/companies/stock-indices"
payload = { "keyword": "PETR" }
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({keyword: 'PETR'})
};
fetch('https://api.aisa.one/apis/v1/b3-com-br/companies/stock-indices', 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/b3-com-br/companies/stock-indices",
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([
'keyword' => 'PETR'
]),
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/b3-com-br/companies/stock-indices"
payload := strings.NewReader("{\n \"keyword\": \"PETR\"\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/b3-com-br/companies/stock-indices")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"keyword\": \"PETR\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/b3-com-br/companies/stock-indices")
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 \"keyword\": \"PETR\"\n}"
response = http.request(request)
puts response.read_body{
"country": "BR",
"keyword": "PETR",
"next_page": null,
"observed_at_ms": 1790046992117,
"page": 1,
"page_size": 20,
"source": "b3.com.br",
"stocks": [
{
"code": "E1CO34",
"company": "ECOPETROL SA",
"indices": [
"BDRX"
],
"type": "DRN"
},
{
"code": "PETR3",
"company": "PETROBRAS",
"indices": [
"IBBC",
"IBBE",
"IBBR",
"IBEE",
"IBEW",
"IBOV",
"IBRA",
"IBXL",
"IBXX",
"IDIV",
"IDVR",
"IGCT",
"IGCX",
"ITAG",
"MLCX"
],
"type": "ON N2"
},
{
"code": "PETR4",
"company": "PETROBRAS",
"indices": [
"IBBC",
"IBBE",
"IBBR",
"IBEE",
"IBEW",
"IBLV",
"IBOV",
"IBRA",
"IBSD",
"IBXL",
"IBXX",
"IDIV",
"IDVR",
"IGCT",
"IGCX",
"ITAG",
"MLCX"
],
"type": "PN N2"
},
{
"code": "RECV3",
"company": "PETRORECSA",
"indices": [
"GPTW",
"IBRA",
"IBXX",
"IDIV",
"IDVR",
"IGCT",
"IGCX",
"IGNM",
"ITAG",
"SCSR",
"SMLL"
],
"type": "ON NM"
}
],
"total_pages": 1,
"total_records": 4,
"updated_on": "2026-09-22",
"url": "https://sistemaswebb3-listados.b3.com.br/indexPage/stocks?language=pt-br",
"valid_from_month": 9,
"valid_to_month": 12,
"year": 2026
}Request contract
- Method and path: POST /apis/v1/b3-com-br/companies/stock-indices
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/b3-com-br/companies/stock-indices
{
"operationId": "b3-com-br.companies.stock-indices",
"method": "POST",
"path": "/apis/v1/b3-com-br/companies/stock-indices",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"keyword": "PETR"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"keyword": {
"description": "Ticker or company-name prefix, e.g. `PETR`. Omit for the full table.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"page": {
"default": 1,
"description": "1-based page number.\n\nProvider reference: minimum 1; default 1.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"min": 1
}
},
"page_size": {
"description": "Rows per page; B3 returns an empty page above 120.\n\nProvider reference: minimum 1; maximum 120.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 120,
"min": 1
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
Which B3 indices each stock belongs to in the current validity window, searchable by ticker or company prefix.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
country | string | |
keyword | string | |
next_page | number | Page to request next; null when this is the last page. |
observed_at_ms | number | |
page | number | |
page_size | number | |
source | string | |
stocks | object[] | |
total_pages | number | |
total_records | number | Total rows across pages as B3 reports it. |
updated_on | string | |
url | string | |
valid_from_month | number | |
valid_to_month | number | |
year | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.