JavaScript
import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const audience of client.audiences.list({ account_id: 'account_id' })) {
console.log(audience.id);
}curl --request GET \
--url https://api.whop.com/api/v1/audiences \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/audiences"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.whop.com/api/v1/audiences",
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.whop.com/api/v1/audiences"
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.whop.com/api/v1/audiences")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/audiences")
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{
"data": [
{
"audience_type": "lookalike",
"auto_refresh": false,
"created_at": "2026-01-01T12:00:00.000Z",
"error_message": "412 of 1,000 rows had no email or phone number, so the list could not be matched.",
"filters": {
"country": "US",
"last_seen_within_days": 30
},
"id": "adaud_xxxxxxxxxxxxxx",
"last_refreshed_at": "2026-01-01T12:00:00.000Z",
"lookalike_ratio": 0.04,
"lookalike_starting_ratio": 0.02,
"match_rates": [
{
"lower_bound": 40,
"platform": "meta",
"status": "available",
"upper_bound": 50
}
],
"matched_rows": 0,
"name": "Past purchasers Lookalike 2–4%",
"platform_audience_ids": [
"120246230799130687"
],
"processed_rows": 0,
"progress_percent": 0,
"source_audience_id": "adaud_xxxxxxxxxxxxxx",
"source_type": "csv_upload",
"status": "pending",
"total_rows": 0,
"updated_at": "2026-01-01T12:00:00.000Z"
}
],
"page_info": {
"end_cursor": "WyJjdXJzb3IiLDFd",
"has_next_page": false,
"has_previous_page": false,
"start_cursor": "WyJjdXJzb3IiLDFd"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}Audiences
List Audiences
Lists uploaded customer-list audiences for an account. Pass audience_id to return a specific audience.
GET
/
audiences
JavaScript
import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const audience of client.audiences.list({ account_id: 'account_id' })) {
console.log(audience.id);
}curl --request GET \
--url https://api.whop.com/api/v1/audiences \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/audiences"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.whop.com/api/v1/audiences",
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.whop.com/api/v1/audiences"
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.whop.com/api/v1/audiences")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/audiences")
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{
"data": [
{
"audience_type": "lookalike",
"auto_refresh": false,
"created_at": "2026-01-01T12:00:00.000Z",
"error_message": "412 of 1,000 rows had no email or phone number, so the list could not be matched.",
"filters": {
"country": "US",
"last_seen_within_days": 30
},
"id": "adaud_xxxxxxxxxxxxxx",
"last_refreshed_at": "2026-01-01T12:00:00.000Z",
"lookalike_ratio": 0.04,
"lookalike_starting_ratio": 0.02,
"match_rates": [
{
"lower_bound": 40,
"platform": "meta",
"status": "available",
"upper_bound": 50
}
],
"matched_rows": 0,
"name": "Past purchasers Lookalike 2–4%",
"platform_audience_ids": [
"120246230799130687"
],
"processed_rows": 0,
"progress_percent": 0,
"source_audience_id": "adaud_xxxxxxxxxxxxxx",
"source_type": "csv_upload",
"status": "pending",
"total_rows": 0,
"updated_at": "2026-01-01T12:00:00.000Z"
}
],
"page_info": {
"end_cursor": "WyJjdXJzb3IiLDFd",
"has_next_page": false,
"has_previous_page": false,
"start_cursor": "WyJjdXJzb3IiLDFd"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}Authorizations
An Account API key, account-scoped JWT, App API key, or user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************.
Query Parameters
Account ID, prefixed biz_.
Audience ID, prefixed adaud_, used to filter the response to one audience.
Filter by audience type: custom (uploaded lists) or lookalike.
Available options:
custom, lookalike Filter by member source: csv_upload (uploaded lists) or people_filter (automatic audiences built from saved People filters).
Available options:
csv_upload, people_filter Number of audiences to return. Defaults to 20; maximum 100.
Cursor for the next page of audiences.
⌘I

