Democracy and APIs are connected more deeply than most people realize, because APIs are the infrastructure through which government becomes transparent, accountable, and accessible to the people it serves — or through which it remains opaque and closed. I came into the API world partly through government work, and I’ve long believed that APIs are a genuine democratic technology: they can open up government data, enable public oversight of public institutions, let citizens build on the information their taxes paid to produce, and make the machinery of government legible to the people. But I’ve also watched the limits and the risks — the open-washing, the privacy failures, the way platform APIs shape public discourse and elections. The relationship between APIs and democracy is real and important, and it cuts both ways: APIs can strengthen democratic transparency and participation, or they can be tools of surveillance, manipulation, and the concentration of power. Which way they cut depends on the political choices we make about how they’re built and governed.
The open-government promise is where APIs and democracy connect most directly, and I’ve championed it for years. I argued that every city, county, and state should have an API — because public institutions running on open, accessible APIs are public institutions that citizens can actually see into and build on. When the Obama administration directed federal agencies to have APIs, it was a recognition that government-as-a-platform — government that exposes its data and services through APIs — is more transparent, more accountable, and more useful to the public. I wrote that APIs provide much-needed oxygen and sunlight in our world, because opening government data through APIs lets journalists, researchers, watchdogs, and citizens scrutinize how government works and hold it accountable. This is APIs as a democratic technology in the most literal sense: the mechanism through which the public gains access to the information and services of its own government, turning opaque institutions into transparent, inspectable, buildable platforms.
The accountability and civic-participation dimension is where the democratic value gets concrete, and I’ve tracked it across many domains. Elections data through APIs — which I wrote about in the context of APIs dedicated to elections at every level of government — lets citizens access information about candidates, polling, and results, supporting informed democratic participation. The Sunlight Foundation’s work, which I cared enough about to write about preserving when the organization wound down, was fundamentally about using open data and APIs to shine light on government and money in politics. Public data commons, which I wrote about in 2020 as infrastructure for the economy and the public good, represent the idea that shared, accessible public data is a democratic asset. Across all of these, the through-line is the same: APIs that open government data enable the transparency, oversight, and informed participation that democracy depends on. An informed citizenry needs access to information, and APIs are how public information becomes genuinely accessible at scale.
But the democratic risks of APIs are just as real, and I’ve refused to be naive about them. Open data efforts get rendered useless — or worse, harmful — when privacy is ignored, as I wrote in 2013, because opening data without regard for privacy can expose and endanger the very citizens it’s supposed to serve. The platform APIs that shape public discourse have been weaponized against democracy: the Cambridge Analytica scandal showed how data harvested through APIs could be used to manipulate voters, and the broader dynamics of social media platforms — their APIs, their algorithms, their data practices — have profound and often troubling effects on elections, misinformation, and the health of democratic discourse. The same API openness that enables government transparency can enable surveillance, manipulation, and the concentration of power in the hands of platforms that mediate public conversation. The democratic value of APIs is not automatic; it depends entirely on whether they’re built and governed to serve the public interest or to serve private power.
The persistent gap between open-washing and genuine democratic value is something I’ve pushed on hard, because the rhetoric of open government often outruns the reality. Publishing data is not the same as making it genuinely accessible, usable, and accountable — I wrote that opening up information is not enough, it needs to be truly accessible. Too often, governments and platforms perform openness — releasing data in unusable formats, behind barriers, or without the sustained commitment that real transparency requires — while the substance of accountability remains elusive. Genuine democratic value from APIs requires more than a press release about open data; it requires sustained investment in making public information actually accessible, actually usable, and actually connected to mechanisms of accountability. The democratic promise of APIs is real, but realizing it takes ongoing political will, not just the one-time gesture of standing up an open data portal that then languishes unmaintained.
Where I land on democracy is that APIs are a genuinely powerful democratic technology whose value depends entirely on the political choices we make about them. They can open government to public scrutiny, enable civic participation, support accountability, and make the machinery of public institutions legible to the people — and I’ve spent years advocating for exactly that vision of government-as-a-platform. But they can also be instruments of surveillance, manipulation, and the concentration of power, as the platform APIs that shape our public discourse have repeatedly demonstrated. The open-government promise, the accountability and participation it enables, the privacy and manipulation risks, and the persistent gap between open-washing and genuine transparency all point to the same conclusion: APIs are not inherently democratic or anti-democratic; they’re infrastructure, and infrastructure serves whoever controls it. The democratic potential of APIs — to make government transparent, to empower citizens, to support informed participation — is real and worth fighting for, but it has to be actively built and defended against the forces that would use the same technology for surveillance and control. Whether APIs strengthen democracy or undermine it is one of the most consequential political questions of our time, and the answer depends on the choices we make, deliberately and continuously, about how this infrastructure gets built and who it serves.
References
- Every City, County And State Should Have An API
- Barack Obama Directs All Federal Agencies To Have An API
- APIs Provide Much Needed Oxygen And Sunlight In Our World
- Open Data And API Efforts Rendered Useless When Privacy Is Ignored
- APIs Dedicated To Elections At The City, County, State, Or Federal Level
- Preserving The Sunlight On GitHub
- Helping The Public Data Commons Drive Our Economy Using APIs
- Why I Still Believe In APIs—The 2017 Edition