// freehire API

API 參考文件

以讀取為主的開放式 HTTP API,涵蓋 freehire 職缺目錄;可透過多種條件查詢職缺、讀取公司資料,並使用金鑰追蹤應徵進度。

基礎網址 https://freehire.me/api/v1

基礎網址

所有端點均在 https://freehire.me/api/v1 下提供服務。 API 是先讀且開放的:職缺、搜尋、facet 和公司端點不需要驗證,可以稱為跨來源。

經過驗證的端點接受瀏覽器工作階段 cookie(透過登入設置,同源)或作為承載權杖發送的個人 API 金鑰 - 請參閱下面的驗證和 API 金鑰。

回應格式

單一項目包裝為 { "data": ... }。集合新增分頁中繼資料:{ "data": [...], "meta": { "total", "limit", "offset" } }。錯誤是具有匹配 HTTP 狀態的 { "error": "message" }

json
{ "data": { "...": "single item" } }

{ "data": [ ... ], "meta": { "total": 4213, "limit": 20, "offset": 0 } }

{ "error": "job not found" }

分頁

使用 limit(預設 20,最多 100)和 offset(預設 0)列出和搜尋端點頁面。 meta.total 會報告目前篩選器符合的總數,因此您可以計算頁數。

搜尋分頁有界:offset + limit 不得超過 10000 (pagination too deep → 400)。這是深度分頁保護,而不是報告總數的上限——使用篩選條件來縮小範圍,而不是分頁那麼遠。

錯誤

錯誤使用標準 HTTP 狀態代碼:400(錯誤請求/無效值)、401(缺少或無效憑證)、403(已驗證但不允許,例如非審核者)、404(沒有此類職缺、公司或擁有的資源)和 503(搜尋暫時不可用)。主體始終為 { "error": ... }

驗證方式

瀏覽器用戶端使用登入時設定的 HttpOnly 工作階段 cookie 進行驗證(同源;SPA 無法讀取它)。非瀏覽器用戶端使用個人 API 金鑰作為 Authorization: Bearer <token>

標記為「工作階段或 API 金鑰」的端點接受其中之一;標記為「僅限工作階段」的端點(API 金鑰管理、儲存的搜尋、訂閱)僅接受 cookie,因此洩漏的金鑰無法管理憑證。 「審核人員」端點還需要審核人員角色。

本文件不包含的內容

This reference covers every endpoint you can call. A handful are deliberately left out because calling them directly is meaningless: the Gmail and calendar consent redirects (/me/gmail/connect, /me/calendar/connect, and their callbacks), which only a browser can complete; the Telegram bot webhook and the Discord interaction webhook; the browser-tool websocket relay; the sitemap-cursor helpers behind /sitemap.xml; and the /og/*.png social-preview cards, which render an image rather than answer with JSON.

/jobs/{slug}/fit 端點是 /jobs/{slug}/match-analysis 的預重命名別名,並且命中相同的處理程序。它們仍然有效,因此現有客戶端不會中斷 - 在新程式碼中使用匹配分析路徑。

該 API 的大部分也是 CLI。如果您正在編寫代理程式而不是集成,freehire 可以透過一個 API 金鑰以更少的儀式覆蓋相同的表面 - 搜尋、追蹤、收件匣和履歷自訂。

篩選職缺

下列參數適用於 GET /jobs/search 以及 GET /jobs/facets. 所有參數皆可搭配全文搜尋參數 q

修飾參數 — 適用於所有分類條件

  • 將多個值作為逗號分隔清單傳遞給 OR:skills=go,rust 符合其中一個。重複參數 (skills=go&skills=rust) 也可以。
  • 新增 <param>_mode=and 以要求所有選定的值:skills=go,rust&skills_mode=and 與兩者相符。
  • 新增 <param>_exclude=<value> 以排除符合項目:company_type_exclude=outstaff 刪除員工職缺。
  • Different facets are ANDed together; numeric and boolean filters are ANDed too. The geography facets are the one exception — see below.
  • Geography is a single OR group: regions, countries and cities widen each other instead of narrowing. regions=eu&countries=IT means "in Europe **or** in Italy", so it returns everything regions=eu alone would. To search one country, drop the region: countries=IT. The three name a single concept — *where* — so picking two places reads as "either", which is what makes regions=eu&countries=BR ("Europe or Brazil") useful. There is no AND to switch on: _mode=and does not apply to geography.
  • 使用 regions=none 來匹配沒有解析地理位置(空區域集)的職缺;它與真實區域值進行「或」運算,並像任何區域一樣支援 _exclude
  • A param no filter reads is ignored rather than refused — so old links and saved searches keep working — and comes back in meta.ignored_params, with did_you_mean when it is only the singular of a real facet. Check it: a dropped filter otherwise looks like a genuinely broad result. At most 10 are listed per response. The same report rides on /jobs/facets, /market/coverage and /companies, which answer {"data": ...} and grow a meta block only when there is something to warn about. /companies filters on its own vocabulary, so a jobs facet sent there is reported as ignored.

分類條件

下列每個分類條件都支援重複 OR、_mode=and_exclude,規則如上所述。

參數篩選條件可用值
collections收藏yc, techstars, a16z-portfolio, a16z-speedrun, european, ai, mag7, bigtech, unicorn, fortune500, eastern-roots, ai-native, uk-skilled-worker-sponsor, nl-recognised-sponsor, us-h1b-sponsor
regions地區global, north_america, latam, eu, uk, mena, africa, apac, cis, none
work_mode工作形式remote, hybrid, onsite
role角色開放詞彙 — 呼叫 /jobs/facets 了解即時值
category專業化software_engineering, backend, frontend, fullstack, mobile, devops, sre, network_engineering, data_engineering, data_science, data_analytics, ml_ai, ai_engineering, qa, security, hardware, embedded, blockchain, architecture, design, engineering_design, product, project_management, management, marketing, sales, support, business_analysis, solutions_engineering, developer_relations, technical_writing, recruiting, hr, finance, legal, operations, customer_success, other
ai_archetype人工智慧專業化rag_app_builder, agent_builder, cloud_ml_platform_engineer, ml_trainer_researcher, fullstack_ai_engineer, devops_infra_engineer
seniority資歷intern, junior, middle, senior, lead, staff, principal, c_level
skills技能開放詞彙 — 呼叫 /jobs/facets 了解即時值
domains工業fintech, crypto, ecommerce, gambling, gamedev, media, travel, healthcare, edtech, govtech, devtools, cybersecurity, ai, hrtech, adtech, proptech, logistics, mobility, climatetech, other
company_type公司類型product, startup, outsource, outstaff, agency, inhouse, government
countries國家開放詞彙 — 呼叫 /jobs/facets 了解即時值
cities城市開放詞彙 — 呼叫 /jobs/facets 了解即時值
relocation搬遷not_supported, supported, required
employment_type就業full_time, part_time, contract, internship, fellowship
english_level英語none, a1, a2, b1, b2, c1, c2, native
posting_language工作語言開放詞彙 — 呼叫 /jobs/facets 了解即時值
reality發布現實fresh, stale, likely-evergreen
salary_currency貨幣USD, EUR, GBP, RUB
company_slug公司簡介開放詞彙 — 呼叫 /jobs/facets 了解即時值
source來源開放詞彙 — 呼叫 /jobs/facets 了解即時值
company_size公司規模1-10, 11-50, 51-200, 201-500, 501-1000, 1000+
education_level教育程度none, bachelor, master, phd
salary_period薪資期間year, month, day, hour

數值與布林篩選條件

參數篩選條件可用值
visa_sponsorship簽證贊助true, false
salary_min最低工資integer — jobs whose minimum salary is at least this (pair with salary_currency)
salary_max最高工資integer — jobs whose maximum salary is at most this (pair with salary_currency)
experience_years_min最低經驗integer — jobs requiring at least this many years
posted_within_days發表於integer — jobs whose effective posting date falls in the last N days

查詢範例

Senior Go,遠程,獨聯體地區

?q=go&seniority=senior&work_mode=remote&regions=cis

德國的後端角色,最新鮮的優先

?category=backend&countries=DE&sort=posted_at&order=desc

One country only — no region param, or it widens back out

?countries=IT&employment_type=contract

必須同時使用 Go 和 Rust

?skills=go,rust&skills_mode=and

排除外派公司

?company_type_exclude=outstaff

至少10萬美元,有簽證贊助

?salary_currency=USD&salary_min=100000&visa_sponsorship=true

端點

每個端點都有獨立頁面;請從下方或側邊欄選擇。

身分驗證

職缺互動

In-app assistant

個人檔案與履歷

已儲存的搜尋與訂閱

履歷建立與客製化

應徵郵件

要針對這個職缺調整履歷嗎?

目前無法檢查您與這個職缺的符合程度;請先將履歷加入個人檔案,下次即可查看。

A new version of freehire is available