---
title: "Glassdoor Scraper or API: What You Get | Perceptlayer"
description: "A Glassdoor scraper vs 1-credit company, review and salary calls: recorded Stripe data, 157 pages for a full review backfill, and the weekly cost per company."
url: https://perceptlayer.com/blog/glassdoor-scraper-vs-api
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# Glassdoor Scraper or API: What You Get

7 Nov 2026 Perceptlayer 8 min read

A Glassdoor scraper is code that finds a company's pages, then pulls its rating, reviews and salary figures out of them and pages through the rest. You maintain the company lookup, the parsers for each page type and the paging yourself. The other route is the Glassdoor endpoints, which return the same company, review and salary data as JSON at 1 credit a call. This post compares the two on recorded Stripe and salary responses, works out the cost per company tracked, and gives a verdict per use case.

## Key takeaways

-   A Glassdoor scraper needs three parsers (company, reviews, salaries), an ID lookup to connect them, and paging logic that can resume after a failed run.
-   `GET /v1/glassdoor/companies-search?query=Stripe` returned Stripe with `id: 671932`, `rating: 3.8`, `review_count: 1619` and `salary_count: 4702`; the recorded reviews call used that `id` as `employer_id`.
-   The recorded reviews call returned page 1 of `total_pages: 157` for `total_reviews: 1564`, so a full backfill at that paging is 157 calls × 1 credit = 157 credits.
-   `GET /v1/glassdoor/salaries` returns pay percentiles from `p10` to `p90` per employer, plus an `estimate` block with a `confidence` value and a `salaries_count`.
-   Watching 200 companies' ratings and newest reviews weekly is 200 × 2 = 400 credits a week; all 13 Glassdoor endpoints are standard tier and cost 1 credit.

## What does a Glassdoor scraper have to handle?

A Glassdoor scraper handles three page types, each with its own parser: a company profile with its rating and counts, a review list that runs to many pages, and salary pages organised by job title. On top of that it needs a lookup that turns a company name into the identifier the other pages use, because "Stripe" alone matches more than one employer.

Each piece needs upkeep. Pages change as the site ships features, and a parser that misses a field writes empty columns instead of failing, so you also need a monitor that compares each run with the last. Review lists are long, so the pager has to remember where it stopped and resume rather than restart after a timeout. Any large site also has to separate people from automated traffic, so a scraper running at volume should expect slow responses, challenge pages and blocked requests. When that happens, stop: getting around a site's protections with rotating proxies or CAPTCHA solvers isn't a fix we'd recommend.

Then there's what you're allowed to collect. Read Glassdoor's terms before you build anything, and plan from the start to keep reviewers' personal details out of what you store. [Web Scraping with Python](https://perceptlayer.com/blog/web-scraping-python-guide) covers fetchers and parsers in general, if you're weighing the build.

## How do you find the right company?

You find a company with `GET /v1/glassdoor/companies-search`, which takes a `query` and returns matching employers with an `id`, a rating and counts. That `id` is the `employer_id` every company endpoint takes. It's the step a scraper does by parsing search pages, and it matters because one name can match several employers.

```bash
curl "https://api.perceptlayer.com/v1/glassdoor/companies-search?query=Stripe" \
  -H "X-API-Key: $API_KEY"
```

The recorded response, trimmed:

```json
{
  "success": true,
  "data": {
    "query": "Stripe",
    "companies": [
      {
        "id": 671932,
        "name": "Stripe",
        …
        "rating": 3.8,
        "review_count": 1619,
        "salary_count": 4702,
        "job_count": 3
      },
      {
        "id": 5554043,
        "name": "Stripe OLT",
        …
        "rating": 4,
        "review_count": 24,
        "salary_count": 38,
        "job_count": 0
      }
    ],
    "page": 1,
    "total_pages": 5,
    "has_more": true
  },
  …
}
```

Two employers match "Stripe", and the second has 24 reviews against the first's 1,619. Pick by `review_count` or by checking `name` exactly, then store the `id` so later runs skip the lookup. For a tracker that only needs the headline numbers, this one call already returns `rating`, `review_count`, `salary_count` and `job_count` per company.

## What does the reviews endpoint return?

`GET /v1/glassdoor/companies-reviews` takes an `employer_id` and returns a page of reviews with paging fields, for 1 credit. The recorded call used `employer_id=671932`, the `id` from the search above, and came back with the company name, page 1 of 157 and `has_more: true`.

```bash
curl "https://api.perceptlayer.com/v1/glassdoor/companies-reviews?employer_id=671932" \
  -H "X-API-Key: $API_KEY"
```

The recorded response, trimmed to review content, with reviewer details left out:

```json
{
  "success": true,
  "data": {
    "company": {
      "id": 671932,
      "name": "Stripe",
      …
    },
    "reviews": [
      {
        "id": 106035163,
        "date": "2026-10-20T11:12:55Z",
        "summary": "Progressive environment with intense performance expectations",
        "pros": "Progressive workplace environment\nGood benefits\nGood compensation",
        "cons": "Intense performance ecosystem\nOffice is moving to less convenient location",
        "rating": 4,
        …
      },
      {
        "id": 106018689,
        "date": "2026-10-19T08:08:16Z",
        "summary": "Strong product suite but limited career growth",
        …
        "rating": 3,
        "ratings": {
          "career_opportunities": 3,
          "compensation_and_benefits": 3,
          "culture_and_values": 3,
          "diversity_and_inclusion": 4,
          "senior_leadership": 3,
          "work_life_balance": 3
        },
        …
      }
    ],
    "page": 1,
    "total_pages": 157,
    "total_reviews": 1564,
    "has_more": true
  },
  …
}
```

Three details matter for a tracker. The sub-scores in `ratings` appear on the second review and not the first, so treat that object as optional. Each review has an `id` and an ISO `date`, which give you a key to de-duplicate on and a time to sort by. And the counts differ between endpoints: search reported `review_count: 1619` while reviews reported `total_reviews: 1564` for the same `id`. Pick one source for your headline number and keep it consistent. Each review also carries fields about the reviewer's role, location and employment status; leave them out of what you keep unless you have a lawful basis to store them.

## What does the salaries endpoint return?

`GET /v1/glassdoor/salaries` takes a `job_title` and returns pay figures per employer, plus an overall `estimate` for the title. It also takes an optional `employer_id`, the same name the company endpoints use. A scraper would parse each figure from salary pages; here each one is a named number with its currency and pay period.

```bash
curl "https://api.perceptlayer.com/v1/glassdoor/salaries?job_title=software+engineer" \
  -H "X-API-Key: $API_KEY"
```

The recorded response, trimmed to one employer and the estimate:

```json
{
  "success": true,
  "data": {
    "job_title": "software engineer",
    "salaries": [
      {
        "job_title": "Software Engineer",
        "job_title_id": 4279,
        "employer": {
          "id": 9079,
          "name": "Google",
          …
          "rating": 4.4
        },
        "currency": "USD",
        "pay_period": "ANNUAL",
        "base_pay_mean": 184722.83,
        "additional_pay_mean": 126972.82,
        "total_pay": {
          "p10": 207909.08,
          …
          "p50": 311695.65,
          …
          "p90": 486503.67
        }
      },
      …
    ],
    "page": 1,
    "total_pages": 10438,
    "total_results": 104377,
    "has_more": true,
    "estimate": {
      "job_title": "Software Engineer",
      "currency": "USD",
      "pay_period": "ANNUAL",
      "location": "United States",
      "confidence": "CONFIDENT",
      "salaries_count": 727155,
      …
      "total_pay": {
        "p10": 99464.84,
        …
        "p50": 152101.59,
        …
        "p90": 237195.82
      }
    }
  },
  …
}
```

The unfiltered title query reports 10,438 pages, which is not something to page through. For the companies you follow, try the `employer_id` parameter with the `id` from search in the playground and check what comes back before you build on it. For an overall figure, the `estimate` block already gives percentiles for the title with a `location`, a `confidence` value and a `salaries_count`.

## How does a scraper compare with the endpoints?

A scraper costs engineering time and carries blocking and terms risk; the endpoints cost credits per call and take the parsing, ID lookup and paging state off your hands. The table compares them for a recurring job, such as watching a list of employers every week.

|  | DIY Glassdoor scraper | Glassdoor endpoints |
| --- | --- | --- |
| Setup | Company lookup, three parsers, pager, storage, monitoring | API key in the `X-API-Key` header |
| Finding a company | Parse search pages, choose a match | `companies-search` returns `id`, `rating`, `review_count` per match |
| Reviews | Parse each page, track where you stopped | `reviews[]` with `id`, `date`, `summary`, `pros`, `cons`, `rating`; `page`, `total_pages`, `has_more` |
| Salaries | Parse figures and units from pages | `total_pay` `p10` to `p90`, `currency`, `pay_period`, plus an `estimate` |
| When pages change | Your parsers write empty fields until you notice | Named JSON fields; no parser of yours to fix |
| Blocks and challenges | Yours to handle; expect them at volume | Not yours; a failed call returns an error code and costs 0 |
| Speed | As fast as you can fetch without being blocked | 1 request a second free, at least 5 a second paid |
| Cost | Hosting and your time | 1 credit per successful call |

### What does a company cost to track?

On the endpoints, cost follows calls. A full review backfill for Stripe at the recorded paging is 157 calls × 1 credit = 157 credits, once. After that, a weekly watch needs two calls per company: `companies-search` for the rating and counts, and page 1 of `companies-reviews` for the newest reviews, which in the recording are listed with the latest `date` first.

So watching 200 companies weekly is 200 × 2 = 400 credits a week, or 1,600 credits over four weeks, inside the Starter pack's 10,000. Adding one `salaries` call per company for a single job title adds 200 credits each time you run it. The 100 free credits on signup cover a first pass over 50 companies, enough to check the fields. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how calls are debited.

## How do you pull new reviews in code?

Look up the company once, store its `id`, then fetch page 1 of reviews each run and keep the reviews whose `id` you haven't stored. The script below reads only fields from the recorded responses and uses standard Python: `requests` for the calls and `csv` for output. It writes review content and leaves reviewer fields out.

```python
import csv
import os
import requests

BASE = "https://api.perceptlayer.com/v1/glassdoor"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}

def get(path, **params):
    resp = requests.get(f"{BASE}/{path}", headers=HEADERS, params=params, timeout=30)
    if resp.status_code != 200:
        raise RuntimeError(resp.json().get("error", {}).get("code"))
    return resp.json()["data"]

companies = get("companies-search", query="Stripe")["companies"]
company = max(companies, key=lambda c: c.get("review_count") or 0)
print(company["name"], company["id"], "rating", company.get("rating"))

page = get("companies-reviews", employer_id=company["id"])
seen = set()
if os.path.exists("reviews.csv"):
    with open("reviews.csv", newline="") as f:
        seen = {row["id"] for row in csv.DictReader(f)}

new_file = not seen
with open("reviews.csv", "a", newline="") as f:
    writer = csv.DictWriter(f, fieldnames=["id", "date", "rating", "summary", "pros", "cons"])
    if new_file:
        writer.writeheader()
    for r in page.get("reviews", []):
        if str(r.get("id")) in seen:
            continue
        writer.writerow({k: r.get(k) for k in writer.fieldnames})

print("page", page.get("page"), "of", page.get("total_pages"), "has_more", page.get("has_more"))
```

Each run costs 2 credits per company. A failed call raises with the error `code` and costs nothing; a 429 or 503 response carries a `Retry-After` header with the seconds to wait. The [errors docs](https://docs.perceptlayer.com/errors) list every code, and the [rate limits docs](https://docs.perceptlayer.com/rate-limits) explain per-minute limits.

## Which route fits your job?

Choose by how many companies you follow and which data you need, because that decides whether upkeep or per-call cost dominates. The verdicts below assume a recurring job; to read one company's reviews once, open Glassdoor in a browser.

-   **Employer reputation tracking** for a list of companies: run `companies-search` weekly for `rating` and `review_count`, and page 1 of `companies-reviews` for new reviews. That's 2 credits per company per week.
-   **Review text analysis** for one company: backfill with `companies-reviews` and `page` up to `total_pages`, 157 credits for Stripe at the recorded paging. Store `summary`, `pros`, `cons`, `rating` and `date`.
-   **Compensation benchmarking**: call `salaries` with a `job_title`, try `employer_id` for the companies you follow, and use the `estimate` block for the market figure. Don't page through unfiltered titles.
-   **Hiring signals**: [`companies-jobs`](https://perceptlayer.com/apis/glassdoor/companies-jobs) takes an `employer_id` and optional parameters such as `keyword`, `remote_only` and `location_id`. [Jobs API](https://perceptlayer.com/blog/jobs-api-comparison) compares it with other job sources, and [Glassdoor salary data](https://perceptlayer.com/blog/glassdoor-salary-data-api) covers the salary endpoints.
-   **Candidate research before an interview**: [`companies-interviews`](https://perceptlayer.com/apis/glassdoor/companies-interviews) and [`companies-benefits`](https://perceptlayer.com/apis/glassdoor/companies-benefits) each take an `employer_id`, 1 credit a call.
-   **An agent answering questions about employers**: give it the Glassdoor endpoints through the MCP server, as the [AI agents docs](https://docs.perceptlayer.com/ai-agents) describe.

To check the fields for the companies you care about, run `companies-search` in the playground on the [Glassdoor API page](https://perceptlayer.com/apis/glassdoor), then `companies-reviews` with the `id` it returns. When they fit, [get a free API key](https://perceptlayer.com/signup).

## APIs in this post

-   [Glassdoor **1 credit per call** · 13 endpoints](https://perceptlayer.com/apis/glassdoor)

## Frequently asked questions

### Is scraping Glassdoor allowed?

That depends on Glassdoor's terms and the law where you operate, so read the terms and get legal advice for commercial use. Don't get around blocks, challenges or other protections. Company-level figures such as ratings and review counts are a different matter from data about individual reviewers, which you should leave out unless you have a lawful basis.

### How many calls does a full review history take?

One call per page. The recorded reviews call for Stripe returned `total_pages: 157` and `total_reviews: 1564`, so reading every page at that paging takes 157 calls, or 157 credits. Use `has_more` to stop, and store each review's `id` so a resumed run skips what it already has.

### Why do review\_count and total\_reviews differ?

They come from different endpoints. In the recordings, `companies-search` reported `review_count: 1619` for Stripe while `companies-reviews` reported `total_reviews: 1564` for the same `employer_id`. Data is returned as found at the time of each call, so pick one field for your headline number and use it consistently.

### Can I get salaries for one company?

`GET /v1/glassdoor/salaries` takes a required `job_title` and an optional `employer_id`, the same parameter name the company endpoints use for the `id` from `companies-search`. Run it in the playground with that value to see the results before you build on them. Each successful call costs 1 credit, and the recorded response includes `total_pay` percentiles per employer and an `estimate` block.

### Does a failed Glassdoor call cost credits?

No. Only a successful response debits credits. A failed call returns an HTTP status and a JSON error with a `code`, a `message` and a `request_id`, plus `X-Credits-Used: 0`. A rate-limited call returns 429 with a `Retry-After` header giving the seconds to wait.

glassdoor scraping company reviews salary data employer data

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
    
    ## [Glassdoor API: Company Reviews and Salaries as JSON](https://perceptlayer.com/blog/glassdoor-salary-data-api)
    
    Find a Glassdoor employer ID, then pull reviews and salary percentiles as JSON. Real responses, parameters and 1 credit per call.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 18 Nov 2026 Perceptlayer 9 min read
    
    ## [Reddit Scraper or API: What You Get](https://perceptlayer.com/blog/reddit-scraper-vs-api)
    
    A Reddit scraper vs 14 Reddit endpoints at 1 credit a call: a recorded search with score, num\_comments and next\_after, and the cost per subreddit tracked.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 8 min read
    
    ## [Etsy Scraper or API: What You Get](https://perceptlayer.com/blog/etsy-scraper-vs-api)
    
    An Etsy scraper vs one 10-credit product endpoint: a recorded listing with price, discount, quantity, variations and favorites, and the cost per item tracked.
