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

# Glassdoor salaries

> Read a Glassdoor company page (overview as JSON with the glassdoor-salaries parser. $1 per 1,000 calls. Send the page to scrape.

Reads a Glassdoor company page (overview, reviews or salaries), and returns its data as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.glassdoor.com/Overview/Working-at-Google-EI_IE9079.11,17.htm","formats":[{"type":"json","parser":"glassdoor-salaries"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://www.glassdoor.com/Overview/Working-at-Google-EI_IE9079.11,17.htm",
    formats: [{ type: "json", parser: "glassdoor-salaries" }],
  }),
});
console.log(await response.json());
```

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

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://www.glassdoor.com/Overview/Working-at-Google-EI_IE9079.11,17.htm",
        "formats": [{"type": "json", "parser": "glassdoor-salaries"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `jobTitle`, `reports`, `totalPayMin`, `totalPayMedian`, `totalPayMax` and `basePayMin`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "companyId": "9079",
      "country": "United States",
      "total": 9423,
      "results": [
        {
          "jobTitle": "Software Engineer",
          "reports": 51622,
          "totalPayMin": 242067,
          "totalPayMedian": 287724,
          "totalPayMax": 351875,
          "basePayMin": 158856,
          "basePayMedian": 176776,
          "basePayMax": 196719,
          "payCurrency": "USD",
          "payPeriod": "year"
        }
      ],
      "page": 1
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `country` | Country the pay is reported for, as its English name like India or Germany. Defaults to the United States. |
| `page` | Page number, starting at 1. |

## Price

\$1 per 1,000 calls. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a Glassdoor company page (overview, reviews or salaries). Any other URL fails with `invalidRequest`.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Glassdoor company](https://docs.stophy.dev/scrape/prebuilt-parsers/jobs/glassdoor-company.md)
* [Glassdoor reviews](https://docs.stophy.dev/scrape/prebuilt-parsers/jobs/glassdoor-reviews.md)
* [LinkedIn jobs](https://docs.stophy.dev/scrape/prebuilt-parsers/jobs/linkedin-jobs.md)


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