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 /officeThe office: name, title, jurisdiction, level, whether it's verified, and its followers and posts so far.
GET /reportA full report, the same as the Reports page. Choose sections with the sections parameter.
GET /summaryThe key numbers: followers, posts, views, likes, messages, replies and reply times.
GET /followersNew followers and the running total, week by week (or month by month beyond three months).
GET /postsEach post published in the period, with its views, likes, dislikes, comments and poll votes so far.
GET /messagesMessages from residents, replies sent and the median time to a first reply, by week or month.
GET /issuesMessages about each issue, the residents who wrote, and the office's posts on it.
GET /audienceToday's followers by party, age and place, in groups large enough to keep private.
GET /billsThe official's bills and positions, with residents' support where enough weighed in.

Parameters

Everything but /office takes these, all optional:

from, toThe 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_offsetThe 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.
comparetrue to add the same figures for the period just before, where a section has them.
sectionsFor /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." } }
400bad_requestA parameter isn't right. The message says which.
401missing_keyNo key was sent.
401invalid_keyThe key isn't valid, or it was revoked.
403planThe office isn't on the Presidential plan.
404not_foundThere's no such endpoint.
429rate_minute, rate_dayToo many requests. Wait for Retry-After.
500, 503server_error, unavailableSomething 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.

Want API access for your office?

It comes with the Presidential plan, along with team seats and custom reports.