VIA API · v1
Build, count, and sync audiences against 280M+ U.S. consumers and 30M+ businesses from any backend that can speak HTTPS.
curl -X POST https://app.via.tools/api/v1/data/count \
-H "X-Api-Token: $VIA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"data_source_id": 4,
"filters": [
{ "field": "state", "values": ["TX"] },
{ "field": "est_age", "values": ["35-65"] }
]
}'
const res = await fetch('https://app.via.tools/api/v1/data/count', {
method: 'POST',
headers: {
'X-Api-Token': process.env.VIA_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
data_source_id: 4,
filters: [
{ field: 'state', values: ['TX'] },
{ field: 'est_age', values: ['35-65'] },
],
}),
});
const { count } = await res.json();
console.log(`${count.toLocaleString()} records match.`);
import os
import requests
res = requests.post(
"https://app.via.tools/api/v1/data/count",
headers={"X-Api-Token": os.environ["VIA_API_TOKEN"]},
json={
"data_source_id": 4,
"filters": [
{"field": "state", "values": ["TX"]},
{"field": "est_age", "values": ["35-65"]},
],
},
)
print(f'{res.json()["count"]:,} records match.')
Try it from your terminal in under a minute.
What you can build
Every screen of the VIA app sits on top of these endpoints. Use them to embed audience targeting in your own product, automate list builds, or stream data into your warehouse.
Query the data platform
Count or fetch records from 280M+ U.S. consumer and 30M+ business profiles. Build with segments, OR groups, ranges, partial matches, and geographic predicates.
Manage audiences
Save reusable filter definitions, group them with cross-audience deduplication, and reuse the same audience across lists, exports, and ad-platform syncs.
Build and enrich lists
Materialise lists from audiences or uploaded CSVs. Append phone, email, household, and lifestyle data; download them once they're ready.
Subscribe with webhooks
Receive signed HTTP POSTs when data sources refresh, recounts finish, or lists become ready. HMAC-SHA256 verification, idempotent delivery ids.
Quickstart
No SDK required. Anything that can make an HTTPS request works.
Sign in to the VIA app and create an API token from the API page. Treat it like a password: server-side only, never in client code.
Pass the token in the X-Api-Token header on every call. There is no separate /auth endpoint.
Hit /data/count for a quick number, /data/query for the records, or /audiences to save a filter for reuse.
# 1. Generate a token in the dashboard, then export it
export VIA_API_TOKEN=via_live_••••2f3a
# 2. Send your first authenticated request
curl https://app.via.tools/api/v1/data_sources \
-H "X-Api-Token: $VIA_API_TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": [
{ "id": 4, "name": "Consumer", "record_count": 259307936 },
{ "id": 2, "name": "Business", "record_count": 74620606 }
]
}
Design principles
REST + JSON. Resource-oriented URLs, snake_case fields, standard HTTP status codes. Nothing exotic.
Counts and queries that exceed five seconds run as async jobs. Webhooks notify you the moment data is ready.
Every request is recorded with its type, body, and the number of records it returned, so usage and billing are always reconcilable.
Breaking changes ship in new major versions with six months of overlap. Additive fields ship into the current version unannounced.
Concepts
A handful of ideas thread through every data-platform endpoint. Read these once and the reference will feel half as long.
Filters
Segments, OR groups, match options, range fields, and negation.
Deduplication
select_type, dedupe_within, and cross-audience suppression.
Geographic targeting
Radius around a point or arbitrary polygons.
List suppression
Pass existing lists to exclude their records from results.
Sync vs async counts
When to switch to /count_requests and run derivatives.
Request modifiers
phones, emails, dnc, contact limits, output_field_keys, pagination.
Reference
Every section documents its endpoints with full request and response examples.
Overview
Authentication, format, errors, versioning.
Data Platform
Count and query records across consumer and business data.
Lists
Build, upload, append, and download record sets.
Audiences
Reusable saved audiences and deduplicated audience groups.
Field Values
Lookups for cities, counties, SIC codes, autos, and more.
Compliance
Submit and track CCPA / Daniel's Law removal requests.
Webhooks
Signed event deliveries for data + audience lifecycle events.
Grab a token, run a count, and you're live. There's no waitlist, no contract gate.