{"uid":"cap_monrj6PgWcujB90k-ICRA","slug":"osha-inspection-search-api-640fb396","name":"OSHA Inspection Search API","description":"Look up U.S. OSHA workplace inspections by establishment or company name. Use establishment, state, start_date, end_date, violations_only, and limit. Receive up to 20 JSON records with activity_id, date_opened, report_id, state, inspection_type, scope, SIC, NAICS, violation_count, establishment_name, and official_url.","url":"https://osha-search.krimskrams.xyz/v1/search","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","title":"SearchParams","properties":{"limit":{"type":"integer","title":"Limit","default":20,"maximum":20,"minimum":1},"state":{"type":"string","title":"State","default":"all","pattern":"^(all|[A-Za-z]{2})$"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date","default":null},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date","default":null},"establishment":{"anyOf":[{"type":"string","maxLength":60,"minLength":2},{"type":"null"}],"title":"Establishment","default":null},"violations_only":{"type":"boolean","title":"Violations Only","default":false}},"description":"Validated parameters for both payment routes."}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"InspectionSearchResponse","properties":{"state":{"type":"string","title":"State"},"source":{"type":"string","title":"Source","default":"OSHA"},"results":{"type":"array","items":{"type":"object","title":"Inspection","properties":{"sic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sic","default":null},"naics":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Naics","default":null},"scope":{"type":"string","title":"Scope"},"state":{"type":"string","title":"State"},"report_id":{"type":"string","title":"Report Id"},"activity_id":{"type":"string","title":"Activity Id"},"date_opened":{"type":"string","title":"Date Opened","format":"date"},"official_url":{"type":"string","title":"Official Url"},"inspection_type":{"type":"string","title":"Inspection Type"},"violation_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Violation Count","default":null},"establishment_name":{"type":"string","title":"Establishment Name"}}},"title":"Results"},"end_date":{"type":"string","title":"End Date","format":"date"},"source_url":{"type":"string","title":"Source Url","default":"https://www.osha.gov/ords/imis/establishment.search"},"start_date":{"type":"string","title":"Start Date","format":"date"},"result_count":{"type":"integer","title":"Result Count"},"retrieved_at":{"type":"string","title":"Retrieved At","format":"date-time"},"establishment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Establishment"},"violations_only":{"type":"boolean","title":"Violations Only"},"source_hit_count":{"type":"integer","title":"Source Hit Count"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wVYsowTmsDaeTc6J4EA2w","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search OSHA inspection records by establishment name with optional filters for state, date range, and violation status, returning up to 20 matching inspection records with violation counts and official links.","exampleAgentPrompt":"Can you look up OSHA inspection records for Amazon Fulfillment Center in Texas? I only want inspections that had violations, from January 2020 through December 2023, and return up to 10 results.","exampleUseCases":[{"title":"Pre-hire employer safety vetting","prompt":"Before I accept this job offer, can you pull up OSHA inspection records for Tyson Foods in Arkansas so I can see if they've had any safety violations in the last 5 years?"},{"title":"Contractor compliance due diligence","prompt":"We're considering hiring a general contractor called BuildRight Construction in Ohio — can you check their OSHA inspection history and see if there are any violations on record?"},{"title":"Investigative workplace safety research","prompt":"I'm writing a report on meatpacking plant safety — can you search OSHA inspections for JBS USA in Colorado between 2018-01-01 and 2022-12-31, showing only inspections with violations?"}],"resultDescription":"A JSON object containing a list of up to 20 OSHA inspection records matching the query. Each record includes the inspection activity ID, report ID, date opened, inspection type, scope, state, violation count, SIC and NAICS industry codes, and a direct URL to the official OSHA record. The response also includes metadata such as the data source and the queried state.","failureModes":["No matching inspections found for the establishment name — returns empty results array","Establishment name too short (under 2 characters) or too long (over 60 characters) — validation error","Invalid state code format (not a 2-letter abbreviation) — schema validation failure","Invalid date format for start_date or end_date — schema validation error","Limit out of range (below 1 or above 20) — validation error","Payment failure — x402 payment required error if USDC payment is not completed","OSHA upstream data unavailable — possible 503 or timeout error"],"whenToPreferThis":"Choose this endpoint when you need to quickly search OSHA enforcement and inspection records by establishment name, with the ability to narrow results by state, date range, or violation presence. It is ideal for compliance research, due diligence workflows, and safety journalism. Prefer this over manually querying the OSHA public website when you need structured, programmatic JSON output with direct official record links. Best suited for targeted single-establishment lookups rather than bulk data exports.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:38:19.180Z","isFirstParty":false}