BLS Labor Statistics Scraper avatar

BLS Labor Statistics Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
BLS Labor Statistics Scraper

BLS Labor Statistics Scraper

Scrape US Bureau of Labor Statistics (BLS) employment, unemployment, and wage data by industry sector and state. Free government API, no authentication required.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

OSHA Inspection & Violation Scraper

Scrape OSHA (Occupational Safety and Health Administration) inspection and violation records from the U.S. Department of Labor Enforcement Data API. Search inspections by company name, state, or SIC industry code; search violations by company or state. No authentication required.

What this actor does

This actor accesses the DOL Enforcement Data API (enforcedata.dol.gov) to retrieve:

  • Inspections: Search OSHA inspection records by establishment name, US state, or Standard Industrial Classification (SIC) code
  • Violations: Search OSHA violation/citation records by establishment name or state

Input

FieldTypeDescription
modeselectsearchInspections or searchViolations
establishmentNamestringCompany/establishment name (partial match)
stateselectTwo-letter US state code (e.g. CA, TX, NY)
sicCodeselectSIC industry code (e.g. 3310 for Steel Works)
inspectionTypeselectFilter by inspection type (e.g. B = Complaint, E = Accident)
dateFromstringFilter records from date (YYYY-MM-DD)
dateTostringFilter records to date (YYYY-MM-DD)
maxItemsintegerMaximum records to return (1–2000, default: 50)

Example Input

{
"mode": "searchInspections",
"state": "CA",
"maxItems": 10
}

Output

Each record contains:

FieldDescription
inspectionIdOSHA inspection ID (activity number)
establishmentNameName of the inspected business
stateUS state abbreviation
cityCity
zipCodeZIP code
naicsCodeNAICS industry code
industryIndustry description
inspectionDateDate inspection was opened (YYYY-MM-DD)
closeCaseDateDate case was closed (YYYY-MM-DD)
inspectionTypeType of inspection (e.g. Complaint, Planned, Accident)
scopeInspection scope (Complete, Partial, Records Only)
unionStatusUnion/non-union status
employerSizeNumber of employees at establishment
fatalitiesNumber of fatalities
injuriesNumber of injuries
penaltyAmountTotal current penalty amount (USD)
totalViolationsCountTotal violations cited
seriousViolationsNumber of serious violations
willfulViolationsNumber of willful violations
repeatViolationsNumber of repeat violations
citationIdCitation ID (violations mode)
violationTypeViolation type (Serious, Willful, Repeat, Other)
standardOSHA standard cited
descriptionViolation description
reportUrlDirect OSHA inspection report URL
scrapedAtISO timestamp of when record was scraped

Example Output

{
"inspectionId": "1234567",
"establishmentName": "ACME Manufacturing Inc",
"state": "CA",
"city": "Los Angeles",
"naicsCode": "3310",
"industry": "Steel Works",
"inspectionDate": "2023-06-15",
"inspectionType": "Complaint",
"penaltyAmount": 12500.0,
"totalViolationsCount": 3,
"seriousViolations": 2,
"reportUrl": "https://www.osha.gov/pls/imis/establishment.inspection_detail?id=1234567",
"recordType": "inspection",
"scrapedAt": "2024-01-15T10:30:00+00:00"
}

Data Source

Data is sourced from the DOL Enforcement Data API (enforcedata.dol.gov), which provides public access to OSHA inspection and violation records. This API is operated by the U.S. Department of Labor and provides comprehensive enforcement data without authentication.

SIC Industry Codes (select examples)

CodeIndustry
2011Meat Packing Plants
1731Electrical Work
3310Steel Works & Blast Furnaces
5411Grocery Stores
8051Skilled Nursing Care Facilities
1600Heavy Construction

See OSHA SIC codes for the full list.

Inspection Types

CodeDescription
APlanned
BComplaint
CReferral
DFollow-up
EAccident
FFatality / Catastrophe
VNational Emphasis Program

Frequently Asked Questions

Is authentication required? No. The DOL Enforcement Data API is public and does not require any API key or credentials.

How many records can I retrieve? You can retrieve up to 2,000 records per run using the maxItems parameter. For larger datasets, run multiple times with different filters.

How current is the data? OSHA updates its enforcement database regularly. Records reflect the most recent data available in the DOL Enforcement system.

Can I filter by both company and state? Yes, you can combine establishmentName and state filters to narrow results.

What is the difference between searchInspections and searchViolations? searchInspections returns high-level inspection summary records. searchViolations returns individual citation/violation records with specific OSHA standard citations and penalty amounts.