api.data.gov Validate API

The Validate API from api.data.gov — 1 operation(s) for validate.

Operations 1

POST /api/v1/validate Validate a DCAT catalog against a v1.1 or v3.0 schema #

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/api-data-gov:api-data-gov-validate-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

api-data-gov-validate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Datagov Harvester Validate API
  version: 0.1.0
servers:
- url: https://harvest.data.gov
tags:
- name: Validate
paths:
  /api/v1/validate:
    post:
      description: Downloads or parses a DCATUS catalog and validates each dataset.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidatorInfo'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationResultSchema'
          description: Successful response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseSchema'
          description: 'Submission refused: the URL could not be retrieved (bad scheme, internal address, timeout, too many redirects), or the catalog was oversized, not JSON, or unparseable. The `error` field says which.'
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseSchema'
          description: Catalog cannot be walked, e.g. nested too deeply
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseSchema'
          description: Failed to download or process the catalog
      summary: Validate a DCAT catalog against a v1.1 or v3.0 schema
      tags:
      - Validate
      operationId: postApiV1Validate
      x-operation-id-source: derived
components:
  schemas:
    ValidatorInfo:
      additionalProperties: false
      properties:
        fetch_method:
          enum:
          - url
          - paste
          type: string
        json_text:
          type: string
        schema:
          enum:
          - 'dcatus1.1: federal dataset'
          - 'dcatus1.1: non-federal dataset'
          type: string
        url:
          format: url
          type: string
      required:
      - fetch_method
      - schema
      type: object
    ValidationResultSchema:
      additionalProperties: false
      properties:
        validation_errors:
          items:
            items:
              type: string
            maxItems: 2
            minItems: 2
            type: array
          type: array
      required:
      - validation_errors
      type: object
    ValidationErrorResponseSchema:
      additionalProperties: false
      properties:
        error:
          type: string
      required:
      - error
      type: object