Sector & Country weights
curl --request GET \
--url https://api.unusualwhales.com/api/etfs/{ticker}/weights \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.unusualwhales.com/api/etfs/{ticker}/weights"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.unusualwhales.com/api/etfs/{ticker}/weights', 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.unusualwhales.com/api/etfs/{ticker}/weights",
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.unusualwhales.com/api/etfs/{ticker}/weights"
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.unusualwhales.com/api/etfs/{ticker}/weights")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.unusualwhales.com/api/etfs/{ticker}/weights")
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{
"country": [
{
"country": "Ireland",
"weight": "0.0164"
},
{
"country": "Other",
"weight": "0.0059"
},
{
"country": "Switzerland",
"weight": "0.0043"
},
{
"country": "Netherlands",
"weight": "0.0015"
},
{
"country": "Canada",
"weight": "0.0014"
},
{
"country": "Bermuda",
"weight": "0.0011"
},
{
"country": "Israel",
"weight": "0.0001"
},
{
"country": "United States",
"weight": "0.9693"
}
],
"sector": [
{
"sector": "Basic Materials",
"weight": "0.022"
},
{
"sector": "Communication Services",
"weight": "0.0861"
},
{
"sector": "Consumer Cyclical",
"weight": "0.1091"
},
{
"sector": "Consumer Defensive",
"weight": "0.0626"
},
{
"sector": "Energy",
"weight": "0.041"
},
{
"sector": "Financial Services",
"weight": "0.125"
},
{
"sector": "Healthcare",
"weight": "0.1272"
},
{
"sector": "Industrials",
"weight": "0.0816"
},
{
"sector": "Other",
"weight": "0.00009999999999990905"
},
{
"sector": "Real Estate",
"weight": "0.0243"
},
{
"sector": "Technology",
"weight": "0.2971"
},
{
"sector": "Utilities",
"weight": "0.0239"
}
]
}{
"code": "authentication_required",
"documentation_url": "https://api.unusualwhales.com/docs",
"expected_format": "uuid",
"message": "The API token provided is not in the expected format. Unusual Whales API tokens are UUIDs, such as 123e4567-e89b-12d3-a456-426614174000.",
"reason": "malformed_token",
"request_id": "GNI_YTC1CRnw2LACGBvE",
"retryable": false,
"support_email": "[email protected]",
"token_url": "https://unusualwhales.com/dashboard/api"
}{
"code": "missing_access",
"documentation_url": "https://api.unusualwhales.com/docs",
"message": "The API token provided is valid but is not permitted to access this route.",
"reason": "route_not_permitted",
"request_id": "GNI_YTC1CRnw2LACGBvE",
"retryable": false,
"support_email": "[email protected]",
"token_url": "https://unusualwhales.com/dashboard/api"
}{
"msg": "Invalid path input: MSFT12 (valid example: AAPL) - Invalid query input(s): date=2023-02-140 (valid example: date=2024-01-18)",
"path": "/api/darkpool/MSFT12",
"query": "date=2023-02-140",
"url": "localhost:4000/api/darkpool/MSFT12?date=2023-02-140"
}"Something went wrong"etfs
Sector & Country weights
Returns the sector & country weights for the given ETF ticker.
GET
/
api
/
etfs
/
{ticker}
/
weights
Sector & Country weights
curl --request GET \
--url https://api.unusualwhales.com/api/etfs/{ticker}/weights \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.unusualwhales.com/api/etfs/{ticker}/weights"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.unusualwhales.com/api/etfs/{ticker}/weights', 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.unusualwhales.com/api/etfs/{ticker}/weights",
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.unusualwhales.com/api/etfs/{ticker}/weights"
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.unusualwhales.com/api/etfs/{ticker}/weights")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.unusualwhales.com/api/etfs/{ticker}/weights")
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{
"country": [
{
"country": "Ireland",
"weight": "0.0164"
},
{
"country": "Other",
"weight": "0.0059"
},
{
"country": "Switzerland",
"weight": "0.0043"
},
{
"country": "Netherlands",
"weight": "0.0015"
},
{
"country": "Canada",
"weight": "0.0014"
},
{
"country": "Bermuda",
"weight": "0.0011"
},
{
"country": "Israel",
"weight": "0.0001"
},
{
"country": "United States",
"weight": "0.9693"
}
],
"sector": [
{
"sector": "Basic Materials",
"weight": "0.022"
},
{
"sector": "Communication Services",
"weight": "0.0861"
},
{
"sector": "Consumer Cyclical",
"weight": "0.1091"
},
{
"sector": "Consumer Defensive",
"weight": "0.0626"
},
{
"sector": "Energy",
"weight": "0.041"
},
{
"sector": "Financial Services",
"weight": "0.125"
},
{
"sector": "Healthcare",
"weight": "0.1272"
},
{
"sector": "Industrials",
"weight": "0.0816"
},
{
"sector": "Other",
"weight": "0.00009999999999990905"
},
{
"sector": "Real Estate",
"weight": "0.0243"
},
{
"sector": "Technology",
"weight": "0.2971"
},
{
"sector": "Utilities",
"weight": "0.0239"
}
]
}{
"code": "authentication_required",
"documentation_url": "https://api.unusualwhales.com/docs",
"expected_format": "uuid",
"message": "The API token provided is not in the expected format. Unusual Whales API tokens are UUIDs, such as 123e4567-e89b-12d3-a456-426614174000.",
"reason": "malformed_token",
"request_id": "GNI_YTC1CRnw2LACGBvE",
"retryable": false,
"support_email": "[email protected]",
"token_url": "https://unusualwhales.com/dashboard/api"
}{
"code": "missing_access",
"documentation_url": "https://api.unusualwhales.com/docs",
"message": "The API token provided is valid but is not permitted to access this route.",
"reason": "route_not_permitted",
"request_id": "GNI_YTC1CRnw2LACGBvE",
"retryable": false,
"support_email": "[email protected]",
"token_url": "https://unusualwhales.com/dashboard/api"
}{
"msg": "Invalid path input: MSFT12 (valid example: AAPL) - Invalid query input(s): date=2023-02-140 (valid example: date=2024-01-18)",
"path": "/api/darkpool/MSFT12",
"query": "date=2023-02-140",
"url": "localhost:4000/api/darkpool/MSFT12?date=2023-02-140"
}"Something went wrong"Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A single ticker
Example:
"AAPL"
Response
A list of countries with their exposure by percentage.
Show child attributes
Show child attributes
Example:
"[\n {\n \"country\": \"Netherlands\",\n \"weight\": \"0.0015\"\n },\n {\n \"country\": \"Canada\",\n \"weight\": \"0.0014\"\n }\n]\n"
A list of sectors with their exposure by percentage.
Show child attributes
Show child attributes
Example:
"[\n {\n \"sector\": \"Basic Materials\",\n \"weight\": \"0.022\"\n },\n {\n \"sector\": \"Communication Services\",\n \"weight\": \"0.0861\"\n }\n]\n"
Last modified on September 29, 2026
Was this page helpful?
