Function: getOshaInspections() ​
ts
function getOshaInspections(opts?: {
estab_name?: string;
insp_type?: string;
limit?: number;
naics_code?: string;
offset?: number;
sic_code?: string;
sort_by?: string;
sort_order?: string;
state?: string;
}): Promise<OshaInspection[]>;Defined in: dol/sdk.ts:326
Search OSHA workplace inspections.
Example: const inspections = await getOshaInspections({ state: "TX", limit: 25 }); const recent = await getOshaInspections({ estab_name: "Amazon", limit: 10 });
Parameters ​
| Parameter | Type |
|---|---|
opts | { estab_name?: string; insp_type?: string; limit?: number; naics_code?: string; offset?: number; sic_code?: string; sort_by?: string; sort_order?: string; state?: string; } |
opts.estab_name? | string |
opts.insp_type? | string |
opts.limit? | number |
opts.naics_code? | string |
opts.offset? | number |
opts.sic_code? | string |
opts.sort_by? | string |
opts.sort_order? | string |
opts.state? | string |
Returns ​
Promise<OshaInspection[]>