krimskrams-xyz · Schema

InspectionSearchResponse

API MarketplaceAI AgentsPaid APIsX402 PaymentsMPP Payments

Properties

Name Type Description
establishment object
state string
start_date string
end_date string
violations_only boolean
source_hit_count integer
result_count integer
retrieved_at string
source string
source_url string
results array
View JSON Schema on GitHub

JSON Schema

krimskrams-xyz-inspection-search-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/krimskrams-xyz/json-schema/krimskrams-xyz-inspection-search-response-schema.json",
  "title": "InspectionSearchResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/osha-search_krimskrams_xyz_openapi.json#/components/schemas/InspectionSearchResponse",
  "properties": {
    "establishment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Establishment"
    },
    "state": {
      "type": "string",
      "title": "State"
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "title": "Start Date"
    },
    "end_date": {
      "type": "string",
      "format": "date",
      "title": "End Date"
    },
    "violations_only": {
      "type": "boolean",
      "title": "Violations Only"
    },
    "source_hit_count": {
      "type": "integer",
      "title": "Source Hit Count"
    },
    "result_count": {
      "type": "integer",
      "title": "Result Count"
    },
    "retrieved_at": {
      "type": "string",
      "format": "date-time",
      "title": "Retrieved At"
    },
    "source": {
      "type": "string",
      "title": "Source",
      "default": "OSHA"
    },
    "source_url": {
      "type": "string",
      "title": "Source Url",
      "default": "https://www.osha.gov/ords/imis/establishment.search"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/Inspection"
      },
      "type": "array",
      "title": "Results"
    }
  },
  "type": "object",
  "required": [
    "establishment",
    "state",
    "start_date",
    "end_date",
    "violations_only",
    "source_hit_count",
    "result_count",
    "retrieved_at",
    "results"
  ],
  "$defs": {
    "Inspection": {
      "properties": {
        "activity_id": {
          "type": "string",
          "title": "Activity Id"
        },
        "date_opened": {
          "type": "string",
          "format": "date",
          "title": "Date Opened"
        },
        "report_id": {
          "type": "string",
          "title": "Report Id"
        },
        "state": {
          "type": "string",
          "title": "State"
        },
        "inspection_type": {
          "type": "string",
          "title": "Inspection Type"
        },
        "scope": {
          "type": "string",
          "title": "Scope"
        },
        "sic": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sic"
        },
        "naics": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Naics"
        },
        "violation_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Violation Count"
        },
        "establishment_name": {
          "type": "string",
          "title": "Establishment Name"
        },
        "official_url": {
          "type": "string",
          "title": "Official Url"
        }
      },
      "type": "object",
      "required": [
        "activity_id",
        "date_opened",
        "report_id",
        "state",
        "inspection_type",
        "scope",
        "establishment_name",
        "official_url"
      ],
      "title": "Inspection"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/krimskrams-xyz-inspection-search-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.