# Glassdoor 薪资 API (glassdoor.salaries)

- Canonical page: [https://everyinfra.com/glassdoor-api/salaries](https://everyinfra.com/glassdoor-api/salaries?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "glassdoor", "action": "salaries", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 200 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=glassdoor&action=salaries

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Glassdoor 公司 Overview 或 Reviews 页的完整 URL，保留公司 slug 与 E/IE 数字标识。profile/reviews/salaries/interviews/jobs 均围绕该公司查询，不接受一条职位 URL 当作公司定位。 |
| limit | integer (1–200) | no | 20 | 这次调用最多返回的条数，整数，1–200；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| job_title | 职位名称。 |
| pay_period | 薪酬周期，与 salary_period 同义。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| salary_count | 参与该薪酬统计的样本数。样本少时数值不可靠。 |
| base_pay_mean | 基本工资平均值。**币种见 salary_currency，周期见 pay_period**。 |
| base_pay_median | 基本工资中位数。有极值时比平均值更能代表典型水平。 |
| base_pay_p10 | 基本工资第 10 百分位，即 10% 的人低于这个数。 |
| base_pay_p90 | 基本工资第 90 百分位，即 10% 的人高于这个数。 |
| total_pay_mean | 总薪酬平均值，含奖金、股票、提成。 |
| total_pay_median | 总薪酬中位数。 |
| cash_bonus_mean | 现金奖金平均值。 |
| company_rating | 公司总体评分，5 分制。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "glassdoor",
  "action": "salaries",
  "params": {
    "url": "https://www.glassdoor.com/Overview/Working-at-Google-EI_IE9079.11,17.htm"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "glassdoor",
        "action": "salaries",
        "params": {
            "url": "https://www.glassdoor.com/Overview/Working-at-Google-EI_IE9079.11,17.htm",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "glassdoor",
  "action": "salaries",
  "results": [
    {
      "job_title": "Software Engineer",
      "pay_period": "ANNUAL",
      "currency": "CAD",
      "salary_count": 779,
      "base_pay_mean": 139302.42,
      "base_pay_median": 135000,
      "base_pay_p10": 92936.8,
      "base_pay_p90": 200000,
      "total_pay_mean": 172000.36,
      "total_pay_median": 152500,
      "cash_bonus_mean": 21764.05,
      "company_rating": 4.4,
      "platform": "glassdoor"
    },
    {
      "job_title": "Software Developer",
      "pay_period": "ANNUAL",
      "currency": "CAD",
      "salary_count": 215,
      "base_pay_mean": 123084.45,
      "base_pay_median": 115000,
      "base_pay_p10": 71050,
      "base_pay_p90": 150000,
      "total_pay_mean": 143481.03,
      "total_pay_median": 120690.5,
      "cash_bonus_mean": 17603.52,
      "company_rating": 4.4,
      "platform": "glassdoor"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=glassdoor
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
