UnGovr Ai Laws API

The Ai Laws API from UnGovr, for ai laws.

GitHub OpenAPI

Operations 14

GET /ai-laws/index.json AI and scraping law coverage index (API key required) #
HEAD /ai-laws/index.json Headers of the GET, without the body #
GET /ai-laws/{jurisdiction}.json Crawl and access legality for one jurisdiction (API key required) #
HEAD /ai-laws/{jurisdiction}.json Headers of the GET, without the body #
GET /ai-laws/vocab.json Vocabulary for AI-law verdict values (API key required) #
HEAD /ai-laws/vocab.json Headers of the GET, without the body #
GET /ai-laws/domains/{key}.json Domain shard, mapping bare domains to the jurisdiction governing the operator… #
HEAD /ai-laws/domains/{key}.json Headers of the GET, without the body #
GET /ai-laws/export/manifest.json Bulk-export descriptor (API key required) #
HEAD /ai-laws/export/manifest.json Headers of the GET, without the body #
GET /ai-laws/export/jurisdictions.jsonl Verdict-level research, one jurisdiction per line (API key required) #
HEAD /ai-laws/export/jurisdictions.jsonl Headers of the GET, without the body #
GET /ai-laws/export/instruments.jsonl Legal instruments, one per line (API key required) #
HEAD /ai-laws/export/instruments.jsonl Headers of the GET, without the body #

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-ai-laws-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-ai-laws-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: UnGovr Open Data Ai Laws 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: Ai Laws
paths:
  /ai-laws/index.json:
    x-ungovr-license: https://www.ungovr.org/open-data/license
    get:
      summary: AI and scraping law coverage index (API key required)
      description: All covered jurisdictions with freshness metadata. Research summary, not legal advice.
      tags:
      - Ai Laws
      operationId: getAiLawsIndexJson
      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:
      - Ai Laws
      operationId: headAiLawsIndexJson
      x-operation-id-source: derived
  /ai-laws/{jurisdiction}.json:
    x-ungovr-license: https://www.ungovr.org/open-data/license
    get:
      summary: Crawl and access legality for one jurisdiction (API key required)
      description: Verdict-level crawl policy, access matrix, and legality fields. Slugs are lowercase ("us", "us/ca", "eu"). Research summary, not legal advice and not authorization.
      tags:
      - Ai Laws
      operationId: getAiLaws{jurisdiction}Json
      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:
      - Ai Laws
      operationId: headAiLaws{jurisdiction}Json
      x-operation-id-source: derived
  /ai-laws/vocab.json:
    x-ungovr-license: https://www.ungovr.org/open-data/license
    get:
      summary: Vocabulary for AI-law verdict values (API key required)
      tags:
      - Ai Laws
      operationId: getAiLawsVocabJson
      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:
      - Ai Laws
      operationId: headAiLawsVocabJson
      x-operation-id-source: derived
  /ai-laws/domains/{key}.json:
    x-ungovr-license: https://www.ungovr.org/open-data/license
    get:
      summary: Domain shard, mapping bare domains to the jurisdiction governing the operator…
      description: One file per shard key, which is the first character of the domain (an underscore for anything outside a-z and 0-9). Each key is a bare domain with one leading www. stripped; its value is an object with jurisdiction_slug and entity_slug, never a slug string. The file also carries one license key naming the terms for the whole shard.
      parameters:
      - name: key
        in: path
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 1
      responses:
        '200':
          description: Domain shard
      tags:
      - Ai Laws
      operationId: getAiLawsDomains{key}Json
      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: key
        in: path
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 1
      responses:
        '200':
          description: Headers of the GET 200 response, with no body
      tags:
      - Ai Laws
      operationId: headAiLawsDomains{key}Json
      x-operation-id-source: derived
  /ai-laws/export/manifest.json:
    x-ungovr-license: https://www.ungovr.org/open-data/license
    get:
      summary: Bulk-export descriptor (API key required)
      description: 'Row counts, byte sizes, and SHA-256 of each JSONL file, plus the license envelope and the closed vocabularies this build emitted. Fetch this first: a hash mismatch against the file it names is how a consumer tells a complete corpus from one caught mid-publish.'
      tags:
      - Ai Laws
      operationId: getAiLawsExportManifestJson
      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:
      - Ai Laws
      operationId: headAiLawsExportManifestJson
      x-operation-id-source: derived
  /ai-laws/export/jurisdictions.jsonl:
    x-ungovr-license: https://www.ungovr.org/open-data/license
    get:
      summary: Verdict-level research, one jurisdiction per line (API key required)
      description: Newline-delimited JSON. Each line is self-contained (jurisdiction, crawl policy, access matrix, the ten legality fields, provenance, notice, license) and validates against https://data.ungovr.org/v1/schema/ungovr.ai-laws-2.schema.json#/$defs/jurisdictionRow Research summary, not legal advice and not authorization.
      tags:
      - Ai Laws
      operationId: getAiLawsExportJurisdictionsJsonl
      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:
      - Ai Laws
      operationId: headAiLawsExportJurisdictionsJsonl
      x-operation-id-source: derived
  /ai-laws/export/instruments.jsonl:
    x-ungovr-license: https://www.ungovr.org/open-data/license
    get:
      summary: Legal instruments, one per line (API key required)
      description: Newline-delimited JSON shaped for embedding pipelines. Each line validates against https://data.ungovr.org/v1/schema/ungovr.ai-laws-2.schema.json#/$defs/instrumentRow and joins to a jurisdictions.jsonl line on jurisdiction.slug. Research summary, not legal advice and not authorization.
      tags:
      - Ai Laws
      operationId: getAiLawsExportInstrumentsJsonl
      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:
      - Ai Laws
      operationId: headAiLawsExportInstrumentsJsonl
      x-operation-id-source: derived
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key