Resolve a company name to a Glassdoor employer id, then pull the employer profile with ratings and CEO approval, up to three full reviews, and salary percentiles by job title. 4 endpoints, 2 credits each, structured JSON.
---
name: glassdoor-salary-data
description: Resolve a company name to a Glassdoor employer id, then pull the employer profile with ratings and CEO approval, up to three full reviews, and salary percentiles by job title. 4 endpoints, 2 credits each, structured JSON.
version: 1.0.0
tags: glassdoor, employer-reviews, company-reviews, salaries, compensation, salary-benchmarking, employer-brand, hr-tech, recruiting, talent-intelligence, workplace-ratings, ceo-approval, company-research, agents, structured-data, json, ai-agents, scraping-api
metadata:
openclaw:
requires:
env:
- SCAVIO_API_KEY
primaryEnv: SCAVIO_API_KEY
timeout: 180
throttle: 1
emoji: "\U0001F3E2"
homepage: https://scavio.dev/docs/glassdoor-companies?utm_source=agent-skills&utm_medium=skill&utm_campaign=glassdoor-salary-data
---
# Glassdoor via Scavio
Resolve a company name to its Glassdoor employer id, then read the employer profile, employee reviews and salary percentiles by job title. All endpoints return structured JSON.
## When to trigger
Use this skill when the user asks to:
- Look up a company's Glassdoor rating, star distribution, CEO approval and per-category scores
- Read employee reviews with pros, cons, advice and the employer's response
- Pull salary percentiles (P10-P90, base and total pay) by job title for an employer
- Benchmark compensation or employer brand across companies
- Turn a company NAME into the employer id Glassdoor's URLs use
Note: a Glassdoor call usually answers in a few seconds, but a call that ultimately fails can take up to two minutes before it reports a 502, and reviews or salaries addressed by `employer_id` make an extra lookup first. Keep a client timeout of 180 seconds and expect the occasional retry.
## Setup
Get a free API key at [scavio.dev](https://scavio.dev/?utm_source=agent-skills&utm_medium=skill&utm_campaign=glassdoor-salary-data) (50 free credits to get started, no card required):
```bash
export SCAVIO_API_KEY=sk_live_your_key
```
### If you do not have a key yet
An agent running this skill without `SCAVIO_API_KEY` set will get `401` on every
call below. The whole path from nothing to a working key is self-serve:
1. Sign up at [dashboard.scavio.dev](https://dashboard.scavio.dev/sign-up?utm_source=agent-skills&utm_medium=skill&utm_campaign=glassdoor-salary-data) - email or Google, no card required.
2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
3. A new account starts with 50 credits. Endpoints in this skill cost 2 credits each.
When the balance runs out the API answers `402` with a JSON body carrying
`billing_url`. Topping up needs no code change - the same key keeps working.
The smallest purchase is 2,500 credits for $25, and monthly plans work out
cheaper per credit if the usage is steady rather than one-off.
Every request is a `POST` with a JSON body and:
```
Authorization: Bearer $SCAVIO_API_KEY
```
## Endpoints
Base URL: `https://api.scavio.dev`. Every Glassdoor endpoint costs **2 credits**.
| Endpoint | Credits | What it returns |
|---|---|---|
| `POST /api/v1/glassdoor/companies` | 2 | **START HERE.** Search Glassdoor for a company by name and resolve it to an `employer_id` |
| `POST /api/v1/glassdoor/company` | 2 | Employer profile: description, mission, industry, sector, HQ, size and revenue bands, stock symbol, year founded, overall and per-category ratings, star distribution, CEO approval, awards, FAQ, five server-rendered reviews, **plus `reviews_url` / `salaries_url`** |
| `POST /api/v1/glassdoor/reviews` | 2 | Up to **three** full reviews with per-axis scores, pros, cons, advice, job title, location, employment status and employer response - plus complete rating statistics, star distribution, aggregate pro/con highlight terms and per-job-title review counts |
| `POST /api/v1/glassdoor/salaries` | 2 | Salaries by job title, 10 per page: base-pay and total-pay percentiles P10-P90 with medians, sample counts, currency, pay period, last-reported date |
## Workflow
**Start at `/companies`.** `/company`, `/reviews` and `/salaries` all need an `employer_id` that exists only inside Glassdoor's `/Overview/` URLs.
1. **Resolve the name:** call `/glassdoor/companies` with `query`. Each result row carries `employer_id`, `name` and `url`.
2. **Profile:** call `/glassdoor/company` with that `employer_id`. Keep the `reviews_url` and `salaries_url` it returns.
3. **Reviews and salaries:** call `/glassdoor/reviews` and `/glassdoor/salaries` passing those saved URLs back as **`url`**. That is the single-fetch path - addressing them by `employer_id` instead makes the API resolve the case-sensitive `/Reviews/` and `/Salary/` slugs off the profile first, which is two upstream fetches for the same one credit and roughly twice the latency on the slowest surface here.
`employer_id` must be a **string** - a JSON number is rejected. `1699`, `E1699` and `IE1699` are all accepted.
`company` is **cosmetic**. The profile resolves on `employer_id` alone, `company` is ignored entirely when `url` is set, and it does **not** satisfy the required-identifier rule: a request carrying only `company` is rejected.
### Pagination
- **`/reviews` has no `page` parameter and never will.** Glassdoor's login wall caps the response at **three reviews**. Move the window with `category` and `employment_status`, and read `filtered_review_count` to see how many reviews match the current filter (against `total_review_count` for the employer overall). Do not build a paging loop here and never claim you can retrieve all reviews.
- **`/salaries`** pages with a 1-based `page` at **10 job titles per page**; `page_count` on the response says how many pages exist.
- **`/companies`** and **`/company`** return a single response and take no paging parameter.
## Parameters
### Companies lookup (`/companies`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | string | required | Company name (1-120 chars) |
### Company (`/company`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `employer_id` | string | one of | `1699`, `E1699` or `IE1699`. **String, not a number** |
| `url` | string | one of | Any glassdoor.com employer URL (`/Overview/`, `/Reviews/`, `/Salary/`). Non-glassdoor.com hosts are rejected |
| `company` | string | -- | Cosmetic only; ignored when `url` is set; does not satisfy the identifier requirement |
`employer_id` or `url` is required.
### Reviews (`/reviews`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `employer_id` | string | one of | Employer id |
| `url` | string | one of | Pass back `reviews_url` from `/company` to skip the resolve fetch |
| `company` | string | -- | Cosmetic |
| `category` | string | -- | `career_development`, `compensation`, `culture`, `diversity_and_inclusion`, `management`, `work_life_balance` |
| `employment_status` | string | -- | `full_time`, `part_time`, `contract`, `intern` |
`employer_id` or `url` is required. There is **no `page` parameter.** Both filters are closed sets: Glassdoor ignores an unknown value and serves the unfiltered set under a `200`, so an invented filter is a credit spent on nothing. A freelance status is absent because it was never confirmed to change the result set.
### Salaries (`/salaries`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `employer_id` | string | one of | Employer id |
| `url` | string | one of | Pass back `salaries_url` from `/company` to skip the resolve fetch |
| `company` | string | -- | Cosmetic |
| `page` | integer | -- | 1-based, 10 job titles per page; `page_count` is on the response |
## Examples
```python
import requests
BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
TIMEOUT = 180 # a failing Glassdoor call can take two minutes to report
# 1. ALWAYS START HERE - a name is not an employer id
hits = requests.post(f"{BASE}/api/v1/glassdoor/companies", headers=HEADERS,
json={"query": "Anthropic"}, timeout=TIMEOUT).json()
employer_id = hits["data"]["results"][0]["employer_id"] # a STRING
# 2. Profile - keep the two URLs it hands back
company = requests.post(f"{BASE}/api/v1/glassdoor/company", headers=HEADERS,
json={"employer_id": employer_id}, timeout=TIMEOUT).json()["data"]
reviews_url, salaries_url = company["reviews_url"], company["salaries_url"]
# 3. Reviews via the saved URL - one lookup instead of two.
# Up to THREE reviews. There is no page param; move the window with filters.
reviews = requests.post(f"{BASE}/api/v1/glassdoor/reviews", headers=HEADERS,
json={"url": reviews_url, "category": "work_life_balance",
"employment_status": "full_time"}, timeout=TIMEOUT).json()["data"]
print(reviews["count"], reviews["filtered_review_count"], reviews["total_review_count"])
# 4. Salary percentiles by job title, 10 per page
salaries = requests.post(f"{BASE}/api/v1/glassdoor/salaries", headers=HEADERS,
json={"url": salaries_url, "page": 1}, timeout=TIMEOUT).json()["data"]
print(salaries["page"], "of", salaries["page_count"], salaries["pay_period"])
```
## Response shapes
Every response uses the envelope `{ data, response_time, credits_used, credits_remaining }`. Key `data` fields:
- **companies** — `count`, `results[]` (`pos`, `employer_id`, `name`, `url`).
- **company** — `employer_id`, `name`, `short_name`, `url`, `reviews_url`, `salaries_url`, `website`, `description`, `mission`, `logo`, `cover_photo`, `headquarters`, `size`, `type`, `revenue`, `stock_symbol`, `year_founded`, `industry`, `sector`, `office_count`, `is_active`, `rating`, `rating_max`, `rating_count`, `review_count`, `salary_count`, `ratings`, `industry_ratings`, `rating_distribution`, `ceo`, `awards`, `faq`, `breadcrumbs`, `reviews[]` (the five server-rendered ones).
- **reviews** — `employer_id`, `name`, `url`, `reviews_url`, `salaries_url`, `rating`, `total_review_count`, `rating_count`, `filtered_review_count`, `ratings`, `rating_distribution`, `highlights[]` (`term`, `type`, `text`), `reviews_by_job_title`, `count` (at most 3), `reviews[]` (`pos`, `review_id`, `url`, `title`, `pros`, `cons`, `advice`, `rating`, `rating_career_opportunities`, `rating_compensation_and_benefits`, `rating_culture_and_values`, `rating_diversity_and_inclusion`, `rating_senior_management`, `rating_work_life_balance`, `business_outlook`, `ceo_opinion`, `recommends`, `job_title`, `location`, `employment_status`, `is_current_employee`, `years_employed`, `published_date`, `helpful_count`, `employer_response`, `employer_response_date`).
- **salaries** — `employer_id`, `name`, `url`, `location`, `pay_period`, `currency`, `salary_count`, `job_title_count`, `page`, `page_count`, `count`, `salaries[]` (`pos`, `job_title`, `job_title_id`, `salary_count`, `currency`, `base_pay`, `total_pay`, `median_base_pay`, `median_total_pay`, `most_recent`).
```json
{
"data": {
"employer_id": "1699",
"name": "Example Corp",
"rating": 3.9,
"total_review_count": 17798,
"filtered_review_count": 13251,
"count": 3,
"reviews": [
{
"pos": 1,
"review_id": "98765432",
"title": "Good pay, heavy workload",
"pros": "Compensation is above market and the tooling is excellent.",
"cons": "On-call rotation is punishing during launches.",
"rating": 4,
"rating_work_life_balance": 3,
"job_title": "Software Engineer",
"location": "Austin, TX",
"employment_status": "full_time",
"is_current_employee": true,
"published_date": "2026-06-14"
}
]
},
"credits_used": 2,
"credits_remaining": 999
}
```
## Guardrails
- Every call that returns data is **2 credits**, including an empty result. Most 502s are not charged.
- **Reviews are capped at three per response.** Never promise, imply or attempt a full review dump, and never invent a `page` parameter for `/reviews`. Report the cap, and use `filtered_review_count` / `total_review_count` to give the user the scale of what exists.
- Three reviews are not a sample you can generalise from. Use the aggregate blocks - `rating_distribution`, `ratings`, `highlights`, `reviews_by_job_title` - for anything sentiment-shaped, and quote the individual reviews as anecdotes.
- Chain `reviews_url` / `salaries_url` from `/company` whenever you already have them. Same price, half the work, and faster.
- `employer_id` must be a string. Send `"1699"`, not `1699`.
- Never send `company` on its own expecting it to address an employer - it is cosmetic and the request is rejected without `employer_id` or `url`.
- Salary figures are **Glassdoor's estimates for the job title**, not individual reported salaries. Say so whenever you quote one, along with `pay_period` and `currency`.
- Never fabricate employer ids, ratings, salary figures or review text. Only return what the API returned.
- Reviews are written by identifiable employees. Summarise them; do not try to identify who wrote one.
## Failure handling
- `400` means an invalid or missing parameter - neither `employer_id` nor `url`, a numeric `employer_id`, a non-glassdoor.com `url`, or a `category` / `employment_status` outside its set. Fix and retry.
- `401` means the API key is invalid or missing. Check `SCAVIO_API_KEY`.
- `404` means the employer id or URL does not resolve. Re-run `/companies` rather than guessing another id.
- `429` means rate or usage limit exceeded. Wait before retrying. See [rate limits](https://scavio.dev/docs/rate-limits?utm_source=agent-skills&utm_medium=skill&utm_campaign=glassdoor-salary-data).
- `502` / `503` mean upstream is temporarily unavailable. A failing call can take up to two minutes before it reports. Retry once or twice with a short pause; do not hammer it, and do not shorten the client timeout to "fail faster" - you will abandon calls that were about to succeed.
- If `/companies` returns nothing useful, try the legal entity name or a shorter form of the brand.
- If `SCAVIO_API_KEY` is not set, prompt the user to export it before continuing.
## SDKs
```bash
pip install scavio==0.15.0
```
```python
from scavio import ScavioClient
client = ScavioClient() # reads SCAVIO_API_KEY
hits = client.glassdoor.companies("Anthropic")
employer_id = hits["data"]["results"][0]["employer_id"]
company = client.glassdoor.company(employer_id=employer_id)["data"]
reviews = client.glassdoor.reviews(url=company["reviews_url"], category="compensation")
salaries = client.glassdoor.salaries(url=company["salaries_url"], page=1)
```
```bash
npm install scavio@0.15.0
```
```javascript
import { Scavio } from "scavio";
const client = new Scavio(); // reads SCAVIO_API_KEY
const hits = await client.glassdoor.companies({ query: "Anthropic" });
const company = await client.glassdoor.company({ employer_id: hits.data.results[0].employer_id });
const salaries = await client.glassdoor.salaries({ url: company.data.salaries_url, page: 1 });
```
don't have the plugin yet? install it then click "run inline in claude" again.
turn a company name into glassdoor employer data: ratings, CEO approval, up to three full employee reviews with per-axis scores and employer responses, and salary percentiles by job title. use this when you need to research an employer's brand, compensation benchmarks, or what employees actually say about working there. all results come back as structured JSON. expect 2-10 seconds for a successful call, up to 180 seconds if the upstream fails.
required external connection:
SCAVIO_API_KEY). get one free at scavio.dev with 50 starter credits, no card required. each call costs 2 credits. if balance hits zero, the API returns 402 with a billing_url; top up at dashboard.scavio.dev without code changes.required setup:
export SCAVIO_API_KEY=sk_live_your_key
if SCAVIO_API_KEY is not set, all calls fail with 401. prompt the user to export it before proceeding.
base URL: https://api.scavio.dev
auth header on every request:
Authorization: Bearer $SCAVIO_API_KEY
client timeout: set to 180 seconds. a failed upstream glassdoor call can take up to 2 minutes before the API reports a 502 or 503.
resolve company name to employer id (endpoint: POST /api/v1/glassdoor/companies, 2 credits)
query (string, 1-120 chars, the company name the user provided)data.results[] array, each row has employer_id (string), name, urlfetch employer profile (endpoint: POST /api/v1/glassdoor/company, 2 credits)
employer_id from step 1 (must be a string, e.g. "1699" not 1699)data object containing: employer_id, name, rating (0-5), total_review_count, review_count, salary_count, ratings (per-category object), rating_distribution (star histogram), ceo (name and approval %), awards, reviews_url, salaries_urlreviews_url and salaries_url for steps 3 and 4; reusing them avoids a second upstream lookup and cuts latency roughly in halffetch up to three employee reviews (endpoint: POST /api/v1/glassdoor/reviews, 2 credits)
url (use reviews_url from step 2 to skip the extra lookup), or employer_id if you do not have the url yet. optional filters: category (one of career_development, compensation, culture, diversity_and_inclusion, management, work_life_balance), employment_status (one of full_time, part_time, contract, intern)data object containing: count (1-3 reviews in this response), total_review_count (all reviews for this employer), filtered_review_count (reviews matching your filters), rating_distribution, ratings, highlights[] (aggregate pro/con terms), reviews_by_job_title (review counts per job), reviews[] array with each review's title, pros, cons, advice, rating, per-axis ratings (rating_work_life_balance, etc), job_title, location, employment_status, is_current_employee, years_employed, published_date, helpful_count, employer_response, employer_response_datepage parameter for reviews; glassdoor's login wall caps you at three per call, always. move the window using category and employment_status filtersfetch salary percentiles by job title (endpoint: POST /api/v1/glassdoor/salaries, 2 credits)
url (use salaries_url from step 2 to skip the extra lookup), or employer_id if you do not have the url yet. optional: page (integer, 1-based, defaults to 1; 10 job titles per page)data object containing: page, page_count, count (number of titles on this page), pay_period (e.g. yearly), currency, salaries[] array with each job title's job_title, job_title_id, salary_count (number of reports), base_pay (object with p10, p25, p50, p75, p90, median), total_pay (same structure), most_recent (date string of latest report)page until you reach page_countif employer_id is numeric instead of string: reject the request. must pass "1699" not 1699. JSON number type will fail.
if neither employer_id nor url is provided: reject with 400. company parameter is cosmetic only and does not satisfy the identifier requirement.
if url is provided but not a glassdoor.com domain: reject with 400. non-glassdoor hosts are not accepted.
if category or employment_status filter is unknown: glassdoor ignores it silently and serves the unfiltered result under a 200 response, burning 2 credits for no filtering. do not invent filter values; stick to the documented enum.
if /companies returns empty results: this means glassdoor has no record. do not guess an employer id. ask the user for an alternate name (legal entity, full brand name, etc) and retry /companies.
if /reviews returns count < 3 but filtered_review_count < total_review_count: this means your filters cut the result set. there are more reviews but not matching your filter. tell the user the scale (e.g. "3 reviews in compensation category of 500 total").
if /salaries returns page_count > 1: there are more job titles. prompt the user if they want to see the next page.
if the response status is 400: parameter error. check that employer_id is a string, that url is glassdoor.com, that category and employment_status are known values, that query is 1-120 chars, and that employer_id or url is present (not company alone).
if the response status is 401: SCAVIO_API_KEY is invalid or missing. tell the user to run export SCAVIO_API_KEY=sk_your_key and check the key at dashboard.scavio.dev.
if the response status is 402: credit balance is zero. send the user to the billing_url in the response body or dashboard.scavio.dev to top up.
if the response status is 404: the employer_id or url does not exist on glassdoor. do not guess another id; re-run /companies with the company name.
if the response status is 429: rate or usage limit exceeded. wait 10-30 seconds and retry once. do not hammer the endpoint.
if the response status is 502 or 503: upstream glassdoor is down. the call may take up to 2 minutes to report this. retry once or twice with 5-10 second pauses. do not lower the client timeout to "fail faster"; you will kill calls that were about to succeed. if it persists, escalate to scavio support.
if a call times out at 180 seconds: upstream is not responding. retry once; if it happens again, tell the user the service is degraded.
if reviews count is 3 but filtered_review_count is much lower than total_review_count: the user is seeing only a small slice. do not generalise from three reviews as if they represent all employees. quote them as anecdotes and reference the aggregate stats (rating_distribution, highlights, reviews_by_job_title) for sentiment.
if salary figures are quoted: always note that these are glassdoor's estimates for the job title (not individual reported salaries), include the pay_period (yearly, hourly, etc) and currency, and cite the sample count (salary_count on the job title).
every request returns a JSON envelope:
{
"data": { /* response shape specific to endpoint */ },
"response_time": 1.234,
"credits_used": 2,
"credits_remaining": 999
}
successful /companies response:
data.count (number of results)data.results[] with pos, employer_id (string), name, urlsuccessful /company response:
data.employer_id, data.name, data.short_name, data.url, data.reviews_url, data.salaries_url, data.website, data.description, data.mission, data.logo, data.cover_photo, data.headquarters, data.size, data.type, data.revenue, data.stock_symbol, data.year_founded, data.industry, data.sector, data.office_count, data.is_activedata.rating (float 0-5), data.rating_max, data.rating_count, data.review_count, data.salary_countdata.ratings (object with keys career_development, compensation, culture, diversity_and_inclusion, management, work_life_balance, each a float 0-5)data.industry_ratings (object, same keys)data.rating_distribution (object with keys 1, 2, 3, 4, 5, each a count)data.ceo (object with name and approval_percentage)data.awards (array of award objects)data.faq (array of Q&A)data.breadcrumbs (navigation)data.reviews[] (array of five server-rendered review previews, same structure as /reviews reviews)successful /reviews response:
data.employer_id, data.name, data.url, data.reviews_url, data.salaries_urldata.rating, data.total_review_count, data.rating_count, data.filtered_review_count, data.count (1-3)data.ratings (per-category object), data.rating_distribution (star histogram)data.highlights[] (array of { term, type ("pro" or "con"), text })data.reviews_by_job_title (object mapping job title string to review count)data.reviews[] with pos, review_id, url, title, pros (string), cons (string), advice (string), rating, rating_career_opportunities, rating_compensation_and_benefits, rating_culture_and_values, rating_diversity_and_inclusion, rating_senior_management, rating_work_life_balance, business_outlook, ceo_opinion, recommends (bool), job_title, location, employment_status, is_current_employee, years_employed, published_date, helpful_count, employer_response (string or null), employer_response_date (string or null)successful /salaries response:
data.employer_id, data.name, data.url, data.location, data.pay_period (e.g. yearly), data.currency (e.g. USD)data.salary_count (total reports across all titles), data.job_title_count, data.page, data.page_count, data.count (titles on this page)data.salaries[] with pos, job_title, job_title_id, salary_count, currency, base_pay (object with p10, p25, p50 (median), p75, p90), total_pay (same), median_base_pay, median_total_pay, most_recent (date string)error responses are HTTP status code with JSON body:
400 Bad Request - invalid or missing parameter (fix and retry)401 Unauthorized - invalid or missing SCAVIO_API_KEY (check env var)402 Payment Required - credits exhausted (top up at dashboard.scavio.dev, included billing_url)404 Not Found - employer id or url does not exist (re-run /companies)429 Too Many Requests - rate limit exceeded (wait and retry)502 Bad Gateway or 503 Service Unavailable - upstream unavailable (wait up to 2 min, retry once or twice)the user knows the skill worked when:
a company name was resolved to a valid glassdoor employer id and confirmed with the employer's official name and url.
the employer profile was retrieved: the user sees the overall rating, review count, CEO name and approval percentage, per-category ratings, and the number of salary data points on file.
up to three employee reviews were returned with specific pros, cons, job titles, locations, employment status (current or former), and dates. any employer response is included. the user understands this is a capped set (not all reviews) and sees the total_review_count for context.
salary percentiles (P10, P50/median, P90) for base pay and total pay were returned for at least one job title, with the pay period (yearly, hourly, etc), currency, sample count, and date of most recent report. the user understands these are glassdoor's estimates, not raw individual reports.
if the user asked for a second page of salaries, page and page_count are shown and the next batch of job titles is displayed.
all responses included credits_used (always 2 per call) and credits_remaining so the user knows their balance.
any error was surfaced clearly with the HTTP status, error reason, and actionable remediation (e.g. "set SCAVIO_API_KEY" for 401, "top up credits" for 402).
import requests
import os
BASE = "https://api.scavio.dev"
API_KEY = os.environ.get("SCAVIO_API_KEY")
if not API_KEY:
raise ValueError("SCAVIO_API_KEY not set. Run: export SCAVIO_API_KEY=sk_your_key")
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
TIMEOUT = 180
# 1. resolve company name
hits = requests.post(
f"{BASE}/api/v1/glassdoor/companies",
headers=HEADERS,
json={"query": "Anthropic"},
timeout=TIMEOUT
).json()
if not hits["data"]["results"]:
print("No company found. Try a different name.")
exit()
employer_id = hits["data"]["results"][0]["employer_id"] # string
# 2. get profile and save URLs
company = requests.post(
f"{BASE}/api/v1/glassdoor/company",
headers=HEADERS,
json={"employer_id": employer_id},
timeout=TIMEOUT
).json()["data"]
reviews_url = company["reviews_url"]
salaries_url = company["salaries_url"]
print(f"Rating: {company['rating']}, Reviews: {company['review_count']}, CEO approval: {company['ceo']['approval_percentage']}%")
# 3. fetch reviews (up to 3, filtered by category)
reviews = requests.post(
f"{BASE}/api/v1/glassdoor/reviews",
headers=HEADERS,
json={"url": reviews_url, "category": "compensation", "employment_status": "full_time"},
timeout=TIMEOUT
).json()["data"]
print(f"Showing {reviews['count']} of {reviews['filtered_review_count']} matching reviews (total: {reviews['total_review_count']})")
for review in reviews["reviews"]:
print(f" - {review['title']} ({review['job_title']}, {review['employment_status']})")
print(f" Pro: {review['pros']}")
print(f" Con: {review['cons']}")
# 4. fetch salaries, page 1
salaries = requests.post(
f"{BASE}/api/v1/glassdoor/salaries",
headers=HEADERS,
json={"url": salaries_url, "page": 1},
timeout=TIMEOUT
).json()["data"]
print(f"Salaries (page {salaries['page']} of {salaries['page_count']}, {salaries['currency']} {salaries['pay_period']}):")
for salary in salaries["salaries"]:
median_base = salary["median_base_pay"]
median_total = salary["median_total_pay"]
sample = salary["salary_count"]
print(f" - {salary['job_title']}: base P50 ${median_base} (n={sample}), total P50 ${median_total}")
import { Scavio } from "scavio";