UnGovr Names API

The Names API from UnGovr, for names.

GitHub OpenAPI

Operations 4

GET /names/index.json The urn:via names files, one per country, with line counts #
HEAD /names/index.json Headers of the GET, without the body #
GET /names/{cc}.jsonl One country's names, one JSON object per line #
HEAD /names/{cc}.jsonl Headers of the GET, without the body #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ungovr-org:ungovr-org-names-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ungovr-org-names-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: UnGovr Open Data Names 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: Names
paths:
  /names/index.json:
    get:
      summary: The urn:via names files, one per country, with line counts
      description: UnGovr assigns every urn:via name (https://ungovr.org/urn/about) and never gives one to a second body. The names files list every name in use, every former name and the names each resolves to, so another organization could continue resolution from them. CC BY 4.0, keyless.
      responses:
        '200':
          description: license and countries, an array of {code, url, count}
      tags:
      - Names
      operationId: getNamesIndexJson
      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:
      - Names
      operationId: headNamesIndexJson
      x-operation-id-source: derived
  /names/{cc}.jsonl:
    get:
      summary: One country's names, one JSON object per line
      description: Each line is one name, sorted by slug. status current is a body's name, with body, type, page, body_status (active, inactive, dissolved, closed ...), dissolved_date when set and former, the slugs of the former names that resolve to it. status former is a retired name with resolves_to, the names it now resolves to. status contested is a name given to more than one body, with resolves_to listing each of them. name is the urn:via form; a slug outside the name grammar still resolves but carries no name key. A line is filed under its body's country (the first candidate's for a contested name).
      parameters:
      - name: cc
        in: path
        required: true
        description: Lowercase ISO 3166-1 alpha-2 code, or int for international organizations with no country
        schema:
          type: string
      responses:
        '200':
          description: newline-delimited JSON (application/x-ndjson)
      tags:
      - Names
      operationId: getNames{cc}Jsonl
      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.'
      parameters:
      - name: cc
        in: path
        required: true
        description: Lowercase ISO 3166-1 alpha-2 code, or int for international organizations with no country
        schema:
          type: string
      responses:
        '200':
          description: Headers of the GET 200 response, with no body
      tags:
      - Names
      operationId: headNames{cc}Jsonl
      x-operation-id-source: derived
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key