Authentication

API Key

All API requests require an API key passed in the X-API-Key header. Free-tier users receive a key upon registration. Pro and Enterprise keys are provisioned after subscription.

Example Request Header
curl -H "X-API-Key: your_api_key_here" \
  https://h1bwagecheck.com/api/employer/search?q=google

Requests without a valid API key will receive a 401 Unauthorized response.

Rate Limits

API rate limits are based on your subscription tier. Limits reset daily at midnight UTC.

TierDaily Limit
Free100 calls/day
Pro ($49/mo)10,000 calls/day
Enterprise ($149/mo)Unlimited

Rate limit status is returned in response headers:

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 87
X-RateLimit-Reset: 1714003200

Exceeding your limit returns 429 Too Many Requests.

GET /api/employer/{slug}

Get detailed information about a specific employer including wage statistics and filing history.

ParameterTypeDescription
slugstringURL-friendly employer identifier. Required (path param).
Request
curl -H "X-API-Key: your_api_key_here" \
  "https://h1bwagecheck.com/api/employer/google-llc"
Response
{
  "name": "Google LLC",
  "slug": "google-llc",
  "city": "Mountain View",
  "state": "CA",
  "total_filings": 35812,
  "median_salary": 178000,
  "avg_salary": 182450,
  "min_salary": 85000,
  "max_salary": 425000,
  "top_occupations": [
    {"title": "Software Developers", "count": 12840},
    {"title": "Software Quality Assurance Analysts", "count": 3256}
  ],
  "filings_by_year": {
    "2024": 6218,
    "2023": 7102,
    "2022": 8340
  }
}

GET /api/city/{city-state}

Get H-1B filing data for a specific city, including top employers and wage statistics.

ParameterTypeDescription
city-statestringCity and state slug, e.g. san-francisco-ca. Required (path param).
Request
curl -H "X-API-Key: your_api_key_here" \
  "https://h1bwagecheck.com/api/city/san-francisco-ca"
Response
{
  "city": "San Francisco",
  "state": "CA",
  "total_filings": 89432,
  "median_salary": 165000,
  "top_employers": [
    {"name": "Salesforce Inc", "filings": 4521},
    {"name": "Wells Fargo Bank", "filings": 3890}
  ],
  "avg_salary": 168200
}

GET /api/top-employers

Get the top H-1B employers ranked by total LCA filings.

ParameterTypeDescription
limitintegerNumber of employers to return. Default: 20, max: 100.
Request
curl -H "X-API-Key: your_api_key_here" \
  "https://h1bwagecheck.com/api/top-employers?limit=5"
Response
[
  {"rank": 1, "name": "Infosys Limited", "slug": "infosys-limited", "filings": 72341},
  {"rank": 2, "name": "Tata Consultancy Services", "slug": "tata-consultancy-services", "filings": 58920},
  {"rank": 3, "name": "Cognizant Technology Solutions", "slug": "cognizant-technology-solutions", "filings": 45102},
  {"rank": 4, "name": "Amazon.com Services LLC", "slug": "amazon-com-services-llc", "filings": 41230},
  {"rank": 5, "name": "Microsoft Corporation", "slug": "microsoft-corporation", "filings": 38524}
]

GET /api/compare

Compare wage data between two employers side by side.

ParameterTypeDescription
astringFirst employer slug. Required.
bstringSecond employer slug. Required.
Request
curl -H "X-API-Key: your_api_key_here" \
  "https://h1bwagecheck.com/api/compare?a=google-llc&b=meta-platforms-inc"
Response
{
  "employer_a": {
    "name": "Google LLC",
    "median_salary": 178000,
    "total_filings": 35812,
    "avg_salary": 182450
  },
  "employer_b": {
    "name": "Meta Platforms Inc",
    "median_salary": 192000,
    "total_filings": 18456,
    "avg_salary": 196800
  },
  "median_diff": 14000,
  "median_diff_pct": 7.9
}

GET /api/occupation/{soc_code}

Get H-1B data for a specific occupation by SOC code.

ParameterTypeDescription
soc_codestringStandard Occupational Classification code, e.g. 15-1252. Required (path param).
Request
curl -H "X-API-Key: your_api_key_here" \
  "https://h1bwagecheck.com/api/occupation/15-1252"
Response
{
  "soc_code": "15-1252",
  "title": "Software Developers",
  "total_filings": 412380,
  "median_salary": 145000,
  "avg_salary": 148200,
  "top_employers": [
    {"name": "Infosys Limited", "count": 18240},
    {"name": "Tata Consultancy Services", "count": 14320}
  ],
  "salary_range": {
    "p10": 85000,
    "p25": 110000,
    "p75": 185000,
    "p90": 230000
  }
}

GET /api/wage-calculator/calculate

Calculate prevailing wage levels for a specific occupation and area. Compares a given salary against DOL wage levels.

ParameterTypeDescription
socstringSOC occupation code, e.g. 15-1252. Required.
areastringGeographic area code, e.g. 42660. Required.
salarynumberAnnual salary to evaluate. Required.
Request
curl -H "X-API-Key: your_api_key_here" \
  "https://h1bwagecheck.com/api/wage-calculator/calculate?soc=15-1252&area=42660&salary=165000"
Response
{
  "soc_code": "15-1252",
  "soc_title": "Software Developers",
  "area_code": "42660",
  "area_title": "Seattle-Tacoma-Bellevue, WA",
  "input_salary": 165000,
  "wage_levels": {
    "level_1": 112278,
    "level_2": 138518,
    "level_3": 164757,
    "level_4": 190997
  },
  "determined_level": 3,
  "above_level_3_by": 243
}