Skip to main content
GET
List OSHA inspections

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Query Parameters

employerId
string

Effective employer ID: emp_ followed by 20 hex characters.

Pattern: ^emp_[0-9a-f]{20}$
siteId
string

Effective site ID: site_ followed by 20 hex characters.

Pattern: ^site_[0-9a-f]{20}$
state
string

Two-letter state code, such as FL.

Pattern: ^[A-Za-z]{2}$
zip
string

Five-digit ZIP code.

Pattern: ^\d{5}$
naics
string

NAICS code or prefix, 2 to 6 digits. 2381 matches every 2381xx code.

Pattern: ^\d{2,6}$
inspType
string

OSHA inspection type letter, such as A accident, B complaint, H planned, M fatality or catastrophe.

Pattern: ^[A-Za-z]$
openDateFrom
string<date>

Earliest open date, inclusive.

openDateTo
string<date>

Latest open date, inclusive.

limit
integer
default:25

Maximum number of items to return (1-100).

Required range: 1 <= x <= 100
cursor
string

Opaque nextCursor from this operation. Repeat every other query parameter unchanged; a cursor from a different query returns invalid_cursor.

Required string length: 1 - 8192

Response

One page of inspections.

inspections
object[]
required
nextCursor
string | null
required

Cursor for the next page, or null on the last page.