Developers
The Votaran Data API
Officials on the Presidential plan can let their office's own tools and dashboards read its totals: followers, posts, messages, issues and bills. It's read-only, and it never names a resident.
Getting a key
The official, or a manager on their team, makes keys in Votaran under Connectors › API. Make one key for each tool, so one can be revoked without touching the others. An office can have 10 at a time.
A key is shown once, when it's made. Votaran keeps only a scrambled copy (a hash), so a lost key can't be shown again: revoke it and make another.
Send the key with every request, in this header:
Authorization: Bearer vtr_…
Keep keys on a server. Don't put them in web pages or apps that people download, where anyone could find them.
For the office's official work. In most places, an office's resources, including what residents send it, can't be used for a campaign. Connect a campaign's tools only if the office's own rules allow it.
Endpoints
All requests go to https://votaran.com/api/data/v1 and answer in JSON.
| GET /office | The office: name, title, jurisdiction, level, whether it's verified, and its followers and posts so far. |
|---|---|
| GET /report | A full report, the same as the Reports page. Choose sections with the sections parameter. |
| GET /summary | The key numbers: followers, posts, views, likes, messages, replies and reply times. |
| GET /followers | New followers and the running total, week by week (or month by month beyond three months). |
| GET /posts | Each post published in the period, with its views, likes, dislikes, comments and poll votes so far. |
| GET /messages | Messages from residents, replies sent and the median time to a first reply, by week or month. |
| GET /issues | Messages about each issue, the residents who wrote, and the office's posts on it. |
| GET /audience | Today's followers by party, age and place, in groups large enough to keep private. |
| GET /bills | The official's bills and positions, with residents' support where enough weighed in. |
Parameters
Everything but /office takes these, all optional:
| from, to | The first and last day, written YYYY-MM-DD, both included. Without them: the last 30 days. Up to a year at a time, from 2024 on. |
|---|---|
| utc_offset | The office's time zone in minutes from UTC, so days start at local midnight: -300 for New York in winter, -240 in summer. Without it: UTC. |
| compare | true to add the same figures for the period just before, where a section has them. |
| sections | For /report: a comma list of summary, followers, posts, messages, issues, audience and bills. Without it: all of them. |
Example
curl "https://votaran.com/api/data/v1/summary?from=2026-10-01&to=2026-10-31&utc_offset=-240&compare=true" \ -H "Authorization: Bearer vtr_…"
The answer (shortened):
{
"office": { "name": "Jordan Ellis", "title": "City Commissioner, District 3" },
"period": { "from": "2026-10-01T04:00:00.000Z", "to": "2026-11-01T04:00:00.000Z" },
"previous": { "from": "2026-08-31T04:00:00.000Z", "to": "2026-10-01T04:00:00.000Z" },
"generatedAt": "2026-11-18T15:02:11.000Z",
"summary": {
"current": { "followers": 1248, "newFollowers": 247, "posts": 7, "views": 16780,
"likes": 1100, "residentMessages": 42, "replies": 38,
"medianFirstReplyHours": 5.5, "…": "…" },
"previous": { "followers": 1001, "newFollowers": 139, "…": "…" }
}
}Times are in UTC. A period's to is the first moment after it.
Limits
Each key can make 60 requests a minute and 5,000 a day (days in UTC). Every answer says how many are left:
X-RateLimit-Remaining-Minute: 59 X-RateLimit-Remaining-Day: 4999
Past a limit, the answer is 429 with a Retry-After header: the seconds to wait. The figures change slowly, so asking once an hour is plenty for most tools.
Errors
Errors come back as JSON with a code and a message:
{ "error": { "code": "invalid_key", "message": "That API key isn't valid. It may have been revoked." } }| 400 | bad_request | A parameter isn't right. The message says which. |
| 401 | missing_key | No key was sent. |
| 401 | invalid_key | The key isn't valid, or it was revoked. |
| 403 | plan | The office isn't on the Presidential plan. |
| 404 | not_found | There's no such endpoint. |
| 429 | rate_minute, rate_day | Too many requests. Wait for Retry-After. |
| 500, 503 | server_error, unavailable | Something went wrong on Votaran's side. Try again shortly. |
Privacy
The API gives totals, never people. No answer names a resident, quotes a message or shows who follows the office. Groups of fewer than 5 followers are combined, nothing about the audience shows under 10 followers, followers under 18 are one “Under 18” total in the age groups and in nothing else, and residents' support for a bill shows only where enough of them weighed in. Team members aren't named either.
Keys only read. Nothing can be posted, sent or changed through the API.
