{"uid":"cap_G_W6-Lya9FMHA4XGpkRsy","slug":"osha-inspection-search-api-65f03e77","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.46-224-157-88.sslip.io/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_W1kFWP3AW-b80Z4hgQjD5","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 state, date range, and violation filters, returning up to 20 matching inspections with violation counts and official record links.","exampleAgentPrompt":"Can you look up OSHA inspection records for Amazon Fulfillment in Texas from January 2020 to December 2023, and only show inspections that had violations?","exampleUseCases":[{"title":"Contractor safety due diligence","prompt":"Before we hire this construction company called Apex Building Solutions, can you pull their OSHA inspection history in California and let me know if they've had any violations in the last three years?"},{"title":"Investigative journalism research","prompt":"I'm writing about warehouse worker safety — can you search OSHA inspections for Walmart distribution centers across all states from 2021 to 2024, up to 20 results, focusing only on inspections with violations?"},{"title":"Supply chain compliance audit","prompt":"We need to vet a supplier — can you check OSHA records for Precision Metal Works in Ohio and show me their full inspection history including dates, inspection types, and how many violations each inspection found?"}],"resultDescription":"A JSON object containing the queried state, source ('OSHA'), and an array of up to 20 inspection records. Each record includes report ID, activity ID, date opened, inspection type, scope, violation count, SIC/NAICS codes, state, and a direct URL to the official OSHA record for that inspection.","failureModes":["No matching inspections found for the given establishment name — returns empty results array","Establishment name too short (< 2 chars) or too long (> 60 chars) — validation error","Invalid state code format — must be 2-letter abbreviation or 'all'","Invalid date format — dates must be ISO 8601 (YYYY-MM-DD)","Limit out of range — must be between 1 and 20","Payment failure — x402 payment of $0.02 USDC not processed","Upstream OSHA data source unavailable — service error"],"whenToPreferThis":"Use this endpoint when you need to search OSHA inspection and violation records for a specific named establishment, especially with flexible filtering by state, date range, and violations-only. Prefer this over manual OSHA website searches when automating compliance checks, due diligence workflows, or regulatory research at scale. Not suitable for retrieving OSHA regulations or standards text, or for aggregating statistics across entire industries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:37:03.513Z","isFirstParty":false}