> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# H1B Salaries API

> H1B salary filings with employer, job title, base salary, city, state and submit date. Search by employer, job title or city.

`POST /v1/data/h1b/salaries/run`

**Pricing:** $0.0075 per salarie ($7.50 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**employers** `string[]` *required*

One or more employers. One request reads them all.

**jobTitle** `string`

Job Title.

**city** `string`

City.

**year** `string` (default: 2026)

Year to use. 2024 by default.

Allowed values: `All Years` (All years (2014 - present)), `2026`, `2025`, `2024`, `2023`, `2022`, `2021`, `2020`, `2019`, `2018`, `2017`, `2016`, `2015`, `2014`.

**maxResults** `integer` (default: 100)

How many salaries to return in total. Defaults to 100; use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/h1b/salaries/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "employers": [
      "Stripe"
    ],
    "jobTitle": "software engineer",
    "year": "2024",
    "maxResults": 10
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/h1b/salaries/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "employers": [
        "Stripe"
    ],
    "jobTitle": "software engineer",
    "year": "2024",
    "maxResults": 10
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/h1b/salaries/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "employers": [
    "Stripe"
  ],
  "jobTitle": "software engineer",
  "year": "2024",
  "maxResults": 10
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one salarie, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `caseNumber` | Case Number | text |
| `companyName` | Company Name | text |
| `jobTitle` | Job Title | text |
| `baseSalary` | Base Salary | currency |
| `city` | City | text |
| `state` | State | text |
| `submitDate` | Submit Date | date |
| `startDate` | Start Date | date |
| `caseStatus` | Case Status | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "h1b/salaries",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "baseSalary": 115918,
      "jobTitle": "SOFTWARE ENGINEER",
      "submitDate": "2024-05-22",
      "caseNumber": "I-200-24143-023423",
      "city": "NEW YORK",
      "caseStatus": "CERTIFIED",
      "companyName": "STRIPE INC",
      "state": "NY",
      "startDate": "2024-10-01"
    }
  ]
}
```

## Related APIs

For live job postings use [`linkedin/jobs`](https://docs.mindcase.co/apis/linkedin/jobs).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.