Skip to content

About

Glassdoor API examples in Python and curl: search companies by name and read a company's profile, employee reviews, salaries and interview reports. No Glassdoor account or cookie needed. Works as an MCP tool.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Glassdoor API

English · 中文

English

This repo reads public Glassdoor data with Python or curl. You can search companies by name and read a company's profile, employee reviews, salaries and interview reports. You need one EveryInfra API key. You do not need a Glassdoor account or cookie. The same API also works as an MCP tool in Claude and Cursor. Billing is per call: these 5 capabilities cost $1.39 per 1,000 calls (about $0.0014 per call). Failed calls and empty results are not charged. The EveryInfra Glassdoor API has 6 capabilities, all listed on the platform page: https://everyinfra.com/en/glassdoor-api?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

Quick start

git clone https://github.com/everyinfra/glassdoor-api.git
cd glassdoor-api
pip install -r requirements.txt
export EVERYINFRA_API_KEY=<your API key>
python main.py search Microsoft --out companies.csv
python main.py company "<company url>"
python main.py reviews "<company url>" --out reviews.csv
python main.py salaries "<company url>" --out salaries.csv
python main.py interviews "<company url>" --out interviews.csv
  • For company, reviews, salaries and interviews, pass the company page link: the url from a search result, keeping the company slug and the E-prefixed number in it.
  • search matches company names only; it is not a job search.
  • Without --out, the command prints the first 3 rows as JSON. With --out, it saves a .csv or .json file. The CSV has a BOM, so Excel opens it without garbled text.
  • Register at everyinfra.com, then create the API key in the console. Steps: https://everyinfra.com/en/docs?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api#quickstart

curl

curl -X POST https://api.everyinfra.com/api/v1/social \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"glassdoor","action":"search","params":{"keyword":"Microsoft"}}'

All capabilities use the same URL. Change action and params to call another one. Examples for profile, reviews, salaries, and interviews are in examples/curl.sh.

Claude and Cursor (MCP)

The remote MCP URL is https://api.everyinfra.com/mcp. Add the Authorization: Bearer header with your API key. EveryInfra runs the server, so you install no local program.

Claude Code:

claude mcp add --transport http everyinfra https://api.everyinfra.com/mcp --header "Authorization: Bearer <API Key>"

Cursor and other clients that read mcp.json (examples/mcp.json):

{
  "mcpServers": {
    "everyinfra": {
      "url": "https://api.everyinfra.com/mcp",
      "headers": {
        "Authorization": "Bearer <API Key>"
      }
    }
  }
}

Custom connectors in Claude on the web and desktop, and ChatGPT, accept only a URL. Enter https://api.everyinfra.com/mcp/all, sign in to EveryInfra when asked, and allow access. You do not need to enter a key. Full steps: https://everyinfra.com/en/mcp-server?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

Price

action Per 1,000 calls
search $1.39
profile $1.39
reviews $1.39
salaries $1.39
interviews $1.39

Fields

These are the fields that the 5 capabilities returned in our test. Each meaning is the first sentence of the field's entry in the API documentation. The link under each table has the full text.

search (keyword search)

Field Meaning
name Name of the object itself, for account, product and business capabilities.
company_id Company ID.
url Link to the record on the platform.
rating Rating. The scale varies by platform: rating_scale on the same row gives the maximum (usually 5; Booking, Douban, iQIYI and NAVER use 10).
review_count Number of reviews, for product and business capabilities. null means not disclosed, not 0.
salary_count Number of samples in this salary statistic.
job_count Number of open jobs at the company.
headquarters Headquarters location.
size Company size (employee count range).
size_category Size category.
description Summary or description, usually shorter than text.
logo_url Company logo.
platform Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).
rating_scale Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales.

All parameters and fields: https://everyinfra.com/en/glassdoor-api/search?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

profile (profile or object details)

Field Meaning
name Name of the object itself, for account, product and business capabilities.
short_name Short name of the company.
company_id Company ID.
website External website entered by the account or business.
description Summary or description, usually shorter than text.
headquarters Headquarters location.
size Company size (employee count range).
revenue Revenue range.
type Record type; values depend on the capability (for example video / image / text).
founded_year Year the company was founded.
stock_symbol Stock ticker symbol; present only for listed companies.
industry Industry.
logo_url Company logo.
reviews_url The company's review list page.
jobs_url The company's job listings page.
salaries_url The company's salary page.
interviews_url The company's interview experiences page.
platform Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).
competitors Competitor company names that Glassdoor lists on the company page, in page order; absent when there are none.
awards Employer awards the company has received; each entry has a name, year and source (the awarding body).

All parameters and fields: https://everyinfra.com/en/glassdoor-api/profile?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

reviews (reviews)

Field Meaning
id The record's unique ID on the platform.
title Title. null when the platform has no titles (for example text-only posts).
pros The pros section of the review, in the employee's own words.
cons The cons section of the review, in the employee's own words.
rating Rating. The scale varies by platform: rating_scale on the same row gives the maximum (usually 5; Booking, Douban, iQIYI and NAVER use 10).
job_title Job title.
location Location description passed through as is; the format varies by platform.
employment_length_years Number of years the reviewer has worked at the company.
is_current_employee Whether the reviewer is a current employee (false means a former employee).
language Content language code (for example zh, en) as judged by the platform; it can be wrong.
helpful_count Number of times this review was marked as helpful.
recommend Whether the reviewer would recommend the company to a friend (such as POSITIVE, NEGATIVE).
ceo_approval Whether this reviewer approves, disapproves or has no opinion of the CEO (such as NO_OPINION).
business_outlook This reviewer's view of the company's outlook for the next six months (positive, neutral or negative, such as NEGATIVE).
rating_work_life_balance Work-life balance rating, on a 5-point scale.
rating_culture_values Company culture and values rating, on a 5-point scale.
rating_diversity_inclusion Diversity and inclusion rating, on a 5-point scale.
rating_senior_leadership Senior leadership rating, on a 5-point scale.
rating_career_opportunities Career opportunities rating, on a 5-point scale.
rating_comp_benefits Compensation and benefits rating, on a 5-point scale.
has_employer_response Whether the company replied to this review.
posted_at Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00).
company_name Company name.
platform Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).
rating_scale Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales.
advice Advice in the writer's own words: for reviews it is advice from the employee to management, for interviews it is advice left by the interviewee.

All parameters and fields: https://everyinfra.com/en/glassdoor-api/reviews?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

salaries (salaries)

Field Meaning
job_title Job title.
pay_period Pay period; same meaning as salary_period.
currency Currency code of the price (for example CNY, USD).
salary_count Number of samples in this salary statistic.
base_pay_mean Mean base pay. See salary_currency for the currency and pay_period for the period.
base_pay_median Median base pay.
base_pay_p10 10th percentile of base pay: 10% of people earn less than this number.
base_pay_p90 90th percentile of base pay: 10% of people earn more than this number.
total_pay_mean Mean total pay, including bonus, stock and commission.
total_pay_median Median total pay.
cash_bonus_mean Mean cash bonus.
company_rating Overall company rating, on a 5-point scale.
platform Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

All parameters and fields: https://everyinfra.com/en/glassdoor-api/salaries?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

interviews (interviews)

Field Meaning
id The record's unique ID on the platform.
job_title Job title.
difficulty Interview difficulty rating.
experience Interview experience (positive, neutral or negative).
outcome Interview outcome (received an offer, rejected or no follow-up).
location Location description passed through as is; the format varies by platform.
process_description Description of the interview process, in the candidate's own words.
is_current_employee Whether the reviewer is a current employee (false means a former employee).
helpful_count Number of times this review was marked as helpful.
company_name Company name.
posted_at Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00).
platform Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).
source Source identifier.
questions Array of interview questions the candidate shared, as text (interviews); absent when none were shared.

All parameters and fields: https://everyinfra.com/en/glassdoor-api/interviews?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

FAQ

Do I need a Glassdoor account or cookie to call the API?

No. Send the Authorization: Bearer header with your API key. The request body holds platform, action, and the capability parameters. You do not scan a QR code, keep a login session, or open a browser.

How much does it cost? Are failed calls charged? Is there a free allowance?

Billing is per call, from $1.39 per 1,000 calls. Failed calls, empty results, parameter errors, and authentication failures are not charged. A new account gets a $1 trial allowance, valid for 24 hours. No credit card is needed. How to claim it: https://everyinfra.com/en/pricing?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

Can I connect the Glassdoor API to Claude or Cursor?

Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add the Authorization: Bearer header with your API key. You install no local program. Setup for Claude, Cursor, ChatGPT, and Claude Code: https://everyinfra.com/en/mcp-server?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api.

What legal points apply when I use Glassdoor data?

The EveryInfra Terms of Service require you to make sure your use of the data follows applicable law and the terms of the relevant platform. Do not use the data for anything illegal or anything that violates privacy or intellectual property rights. Do not use bulk scraping for harassment, fraud, or other abuse. When you use personal information such as nicknames and avatars, keep only the fields your business needs.

Which Glassdoor data can I get?

The EveryInfra Glassdoor API has 6 capabilities:

  • keyword search
  • profile or object details
  • reviews
  • salaries
  • interviews
  • jobs

Parameters and return fields for each capability are on the platform page: https://everyinfra.com/en/glassdoor-api?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

Tested

Before release, we ran the 5 commands in Quick start against the live API with this repo's code.

Command Time (Singapore, UTC+8) Rows Charged
python main.py search Microsoft --out companies.csv 2026-11-25 13:24 10 $0.001389
python main.py company "<company url>" 2026-11-25 13:24 1 $0.001389
python main.py reviews "<company url>" --out reviews.csv 2026-11-25 13:24 20 $0.001389
python main.py salaries "<company url>" --out salaries.csv 2026-11-25 13:25 20 $0.001389
python main.py interviews "<company url>" --out interviews.csv 2026-11-25 13:25 20 $0.001389

中文

本仓库用 Python 或 curl 读 Glassdoor 公开数据:按公司名搜公司,读公司资料、员工点评、薪资和面试评价。只需一把 EveryInfra API Key,不用 Glassdoor 账号和 Cookie,也能作为 MCP 工具接进 Claude、Cursor。按调用次数计费,这 5 个能力每千次 $1.39(每次约 $0.0014),失败和空结果不收费。Glassdoor 共 6 个能力:https://everyinfra.com/glassdoor-api?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

快速开始

git clone https://github.com/everyinfra/glassdoor-api.git
cd glassdoor-api
pip install -r requirements.txt
export EVERYINFRA_API_KEY=<你的 API Key>
python main.py search Microsoft --out companies.csv
python main.py company "<公司链接>"
python main.py reviews "<公司链接>" --out reviews.csv
python main.py salaries "<公司链接>" --out salaries.csv
python main.py interviews "<公司链接>" --out interviews.csv

用 curl 调

curl -X POST https://api.everyinfra.com/api/v1/social \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"glassdoor","action":"search","params":{"keyword":"Microsoft"}}'

所有能力都发到同一个地址,换 action 和 params 就行;profile、reviews、salaries、interviews 的写法见 examples/curl.sh。

接进 Claude、Cursor(MCP)

远程 MCP 地址是 https://api.everyinfra.com/mcp,请求头加 Authorization: Bearer 和 API Key;服务器由 EveryInfra 运行,不用装本地程序。

Claude Code:

claude mcp add --transport http everyinfra https://api.everyinfra.com/mcp --header "Authorization: Bearer <API Key>"

Cursor 等读 mcp.json 的客户端(examples/mcp.json):

{
  "mcpServers": {
    "everyinfra": {
      "url": "https://api.everyinfra.com/mcp",
      "headers": {
        "Authorization": "Bearer <API Key>"
      }
    }
  }
}

Claude 网页版和桌面版的自定义连接器、ChatGPT 只能填网址:填 https://api.everyinfra.com/mcp/all,连接时登录 EveryInfra 并允许,不用填 Key。完整步骤见 https://everyinfra.com/mcp-server?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

价格

能力 action 每千次
关键词搜索 search $1.39
主页或对象详情 profile $1.39
评价 reviews $1.39
薪资 salaries $1.39
面试评价 interviews $1.39

返回字段

下面是这 5 个能力实测返回的字段,含义取自接口文档每条说明的第一句,完整说明在每张表下面的链接里。

search(关键词搜索)

字段 含义
name 名称。
company_id 公司 ID。
url 该记录在原平台上的可访问链接。
rating 评分。
review_count 评价条数,用于商品/商家类能力。
salary_count 参与该薪酬统计的样本数。
job_count 该公司在招岗位数。
headquarters 总部所在地。
size 公司规模(员工数区间)。
size_category 规模分类。
description 简介或描述,通常比 text 短。
logo_url 公司 logo。
platform 数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。
rating_scale 上一列 rating 的满分。

完整参数和字段:https://everyinfra.com/glassdoor-api/search?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

profile(主页或对象详情)

字段 含义
name 名称。
short_name 公司简称。
company_id 公司 ID。
website 账号或商家填写的外链网址。
description 简介或描述,通常比 text 短。
headquarters 总部所在地。
size 公司规模(员工数区间)。
revenue 营收规模区间。
type 记录类型,取值随能力而定(如 video / image / text)。
founded_year 公司成立年份。
stock_symbol 股票代码,上市公司才有。
industry 所属行业。
logo_url 公司 logo。
reviews_url 该公司的评价列表页。
jobs_url 该公司的岗位列表页。
salaries_url 该公司的薪酬页。
interviews_url 该公司的面试经验页。
platform 数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。
competitors Glassdoor 在公司页上列出的竞争对手公司名,按页面顺序;没有时不出现这个字段。
awards 公司获得的雇主奖项,每项含名称(name)、年份(year)和评选方(source);没有时不出现这个字段。

完整参数和字段:https://everyinfra.com/glassdoor-api/profile?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

reviews(评价)

字段 含义
id 该记录在原平台上的唯一标识。
title 标题。
pros 评价里的优点部分,员工原文。
cons 评价里的缺点部分,员工原文。
rating 评分。
job_title 职位名称。
location 地理位置描述,原文透传,格式随平台而异。
employment_length_years 评价人在该公司的工作年限。
is_current_employee 评价人是否为在职员工(false = 前员工)。
language 内容语言代码(如 zh、en),由平台判定,可能不准。
helpful_count 这条评价被标为「有帮助」的次数。
recommend 这位评价人是否会向朋友推荐这家公司(如 POSITIVE、NEGATIVE),是这一条评价自己的回答,不是公司整体的推荐率;没答时不出现这个字段。
ceo_approval 这位评价人对 CEO 赞成、反对还是没有意见(如 NO_OPINION),是这一条评价自己的回答,不是公司整体的支持率;没答时不出现这个字段。
business_outlook 这位评价人对公司未来六个月前景的看法(看好、中立或不看好,如 NEGATIVE),是这一条评价自己的回答,不是公司整体的比例;没答时不出现这个字段。
rating_work_life_balance 工作生活平衡评分,5 分制。
rating_culture_values 企业文化与价值观评分,5 分制。
rating_diversity_inclusion 多元与包容性评分,5 分制。
rating_senior_leadership 高层管理评分,5 分制。
rating_career_opportunities 职业发展机会评分,5 分制。
rating_comp_benefits 薪酬福利评分,5 分制。
has_employer_response 公司是否回复了这条评价。
posted_at 发布时间,ISO 8601 格式、UTC 时区(如 2026-08-07T12:34:56+00:00)。
company_name 公司名称。
platform 数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。
rating_scale 上一列 rating 的满分。
advice 建议原文:reviews 是员工写给管理层的建议,interviews 是面试者留下的建议。

完整参数和字段:https://everyinfra.com/glassdoor-api/reviews?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

salaries(薪资)

字段 含义
job_title 职位名称。
pay_period 薪酬周期,与 salary_period 同义。
currency 价格币种代码(如 CNY、USD)。
salary_count 参与该薪酬统计的样本数。
base_pay_mean 基本工资平均值。
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)。

完整参数和字段:https://everyinfra.com/glassdoor-api/salaries?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

interviews(面试评价)

字段 含义
id 该记录在原平台上的唯一标识。
job_title 职位名称。
difficulty 面试难度评分。
experience 面试体验(正面 / 中性 / 负面)。
outcome 面试结果(收到 offer / 被拒 / 无后续)。
location 地理位置描述,原文透传,格式随平台而异。
process_description 面试流程描述,候选人原文。
is_current_employee 评价人是否为在职员工(false = 前员工)。
helpful_count 这条评价被标为「有帮助」的次数。
company_name 公司名称。
posted_at 发布时间,ISO 8601 格式、UTC 时区(如 2026-08-07T12:34:56+00:00)。
platform 数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。
source 数据来源标识。
questions 面试者分享的面试问题文本数组(interviews);没有时不出现这个字段。

完整参数和字段:https://everyinfra.com/glassdoor-api/interviews?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

常见问题

调用时要不要提供 Glassdoor 账号或 Cookie?

不用,请求头带 Authorization: Bearer 和 API Key 就能调,请求体写 platform、action 和能力参数。不用扫码、维护登录状态,也不用开浏览器。

怎么收费?失败了收不收钱?有免费额度吗?

按调用次数计费,每千次 $1.39 起。失败、空结果、参数错误和鉴权失败都不收费。新账号有 $1 试用额度,24 小时内有效,不用信用卡,领取方式见定价页 https://everyinfra.com/pricing?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

能把 Glassdoor 接口接进 Claude、Cursor 吗?

能,远程 MCP 地址是 https://api.everyinfra.com/mcp,请求头加 Authorization: Bearer 和 API Key,不用装本地程序。Claude、Cursor、ChatGPT、Claude Code 配置见 https://everyinfra.com/mcp-server?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api。

用 Glassdoor 数据要注意哪些合规问题?

EveryInfra 服务条款要求你自行确保数据用法符合适用法律和相关平台条款,禁止用于违法、侵犯隐私或知识产权,或批量抓取用于骚扰、欺诈等恶意用途。用到昵称、头像等个人信息时,只留业务用得上的字段。

可以拿到 Glassdoor 的哪些数据?

Glassdoor 有 6 个能力:关键词搜索、主页或对象详情、评价、薪资、面试评价、职位搜索。每个能力的参数和返回字段见平台页 https://everyinfra.com/glassdoor-api?utm_source=github&utm_medium=example_repo&utm_campaign=glassdoor-api

实测记录

发布前用本仓的代码对线上接口跑过一遍,命令就是「快速开始」里的 5 条。

命令 时间(新加坡时间) 返回条数 扣费
python main.py search Microsoft --out companies.csv 2026-11-25 13:24 10 $0.001389
python main.py company "<公司链接>" 2026-11-25 13:24 1 $0.001389
python main.py reviews "<公司链接>" --out reviews.csv 2026-11-25 13:24 20 $0.001389
python main.py salaries "<公司链接>" --out salaries.csv 2026-11-25 13:25 20 $0.001389
python main.py interviews "<公司链接>" --out interviews.csv 2026-11-25 13:25 20 $0.001389

profile 返回的一条(正文截到 60 字,作者字段没放进来):

{
  "description": "At Microsoft, our mission is to empower every person and eve…",
  "size": "10000+ Employees",
  "type": "Company - Public"
}

License

MIT

About

Glassdoor API examples in Python and curl: search companies by name and read a company's profile, employee reviews, salaries and interview reports. No Glassdoor account or cookie needed. Works as an MCP tool.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages