Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: UnGovr Open Data Products.json API
version: '1.0'
description: 'Free, read-only access to 327,114+ government entities,
6,177+ California Grand Jury reports, and an AI and scraping
law research corpus (the /ai-laws/ paths below).
Every path answers GET and HEAD (the GET''s status and headers with no
body) and OPTIONS for CORS preflight. Any other method is 405 with an
Allow header naming those three.
The license below (CC BY 4.0) covers every path except /ai-laws/*. The
AI-law corpus is licensed separately and non-exclusively, by agreement;
every /ai-laws/* path names this in its own x-ungovr-license extension.
Full terms: https://www.ungovr.org/open-data/license.
The entity and report counts above are a snapshot from the build that
generated this description, and the corpus rebuilds daily, so two reads
a day apart can disagree. For the count as of right now, read entities
and cgj_reports in https://data.ungovr.org/v1/meta/last-updated.json,
whose built_at field names the build they belong to.
This source repository is private. To report an error in the data,
email api@ungovr.org naming the entity or report and what looks wrong.'
contact:
email: api@ungovr.org
license:
name: CC BY 4.0
url: https://creativecommons.org/licenses/by/4.0/
servers:
- url: https://data.ungovr.org/v1
tags:
- name: Products.json
paths:
/products.json:
get:
summary: Product-availability index
description: Every UnGovr product, each with the total count of entities where it is offered directly. The same product ids and names appear in the products array on every entity detail record (see /entities/detail/{slug}.json), where availability is either 'direct' or 'descendants' (a supported_count names how many covered descendants).
responses:
'200':
description: count-bearing product index
tags:
- Products.json
operationId: getProductsJson
x-operation-id-source: derived
head:
summary: Headers of the GET, without the body
description: 'The status and headers the GET would send (ETag, Content-Type, Cache-Control, Content-Length, the X-Quota set on a gated path) and no body. Metered exactly like the GET: a HEAD on a key-gated path counts against the same daily cap.'
responses:
'200':
description: Headers of the GET 200 response, with no body
tags:
- Products.json
operationId: headProductsJson
x-operation-id-source: derived
components:
securitySchemes:
apiKey:
type: apiKey
in: header
name: X-API-Key