---
title: "Search job postings by keyword and location. Returns a normalized Job page."
method: POST
path: "/v2/ops/jobs.search"
tags: ["jobs"]
---

# Search job postings by keyword and location. Returns a normalized Job page.

`POST /v2/ops/jobs.search`

## Request

- Base URL: `https://api.agentkey.app`
- URL: `https://api.agentkey.app/v2/ops/jobs.search`
- Auth: HTTP bearer

Keyword job search. country=CN routes to Liepin (Chinese job board, Chinese keywords); every other country to JSearch (Google for Jobs aggregate). Filters a provider cannot express skip that provider instead of being dropped.

Fixed price: 0.4 credits per successful call, whichever provider serves it.

## Request body

- object
  - `country` string: ISO 3166-1 alpha-2 country of the job market. CN routes to Liepin; every other country to JSearch.
  - `cursor` string: Opaque pagination cursor from the previous response's next_cursor. Send the same query parameters with it.
  - `employment_type` 'full_time' | 'part_time' | 'contract' | 'internship': Restrict to one employment type.
  - `fields` string[]: Projection: keep only these dotted paths of data, e.g. ["items.id", "items.text"].
  - `include_raw` boolean: Attach the raw upstream payload as `raw` (not a stable contract; truncated above 256 KB).
  - `limit` integer: Maximum number of results to return.
  - `location` string: City or region to search in, e.g. San Francisco, CA / 上海.
  - `provider` string: Shorthand for routing.only = [provider].
  - `query` string, required: Job title / keywords, e.g. software engineer, 软件工程师.
  - `remote` boolean: Only remote / work-from-home jobs.
  - `routing` Routing: Provider routing override. order: try these providers first; only: restrict to these (equivalent to pinning); allow_fallbacks: false tries only the first eligible provider.
    - `allow_fallbacks` boolean: false = try only the first eligible provider.
    - `only` string[]: Restrict to these providers.
    - `order` string[]: Providers to try first, in order.
    - `strategy` 'auto': How eligible providers are ordered. auto = the method's curated order. fastest / stable / popular are specified but not implemented yet (400 until then). The price is fixed whatever the strategy; mutually exclusive with order.
  - `time_range` 'day' | 'week' | 'month' | 'all': Only postings published within this window.

## Response `200`

Success envelope

- JobPageEnvelope: Success envelope whose data is a JobPage.
  - `attempts` Attempt[], required
    - `error_type` string: validation | not_found | rate_limit | timeout | upstream_unauthorized | upstream_unavailable | provider_error
    - `provider` string, required: Provider slug.
    - `refunded` boolean: true when the reservation for this attempt was refunded.
    - `status` integer, required: HTTP status AgentKey mapped this attempt to (200 on success).
    - `took_ms` integer, required
    - `tool` string, required: Registry tool name (Provider/operation) that was called.
    - `upstream_status` integer: The provider's real HTTP status; absent when nothing was received.
  - `credits_charged` number, required: Credits charged for this call (the method's fixed price).
  - `data` object, required: One page of job postings.
    - `items` Job[], required
      - `company` string, nullable, required: Hiring company name.
      - `description` string, nullable, required: Full job description as plain text.
      - `employment_type` string, nullable, required: Normalized employment type when reported: full_time | part_time | contract | internship.
      - `id` string, required: Provider job id (an opaque JSearch id, a Liepin job id). JSearch ids can be passed to jobs.get.
      - `location` string, nullable, required: Location as a display string (city, region, country).
      - `posted_at` string, date-time, nullable, required: Posting time, RFC 3339 UTC.
      - `remote` boolean, nullable, required: Whether the job is remote / work-from-home.
      - `salary` object, required: Salary range when the posting states one.
        - `currency` string, nullable, required: ISO 4217 currency code.
        - `max` number, nullable, required: Upper bound in major units.
        - `min` number, nullable, required: Lower bound in major units.
        - `period` string, nullable, required: Pay period: year | month | week | day | hour.
      - `source` string, nullable, required: Publisher / job board the posting was found on.
      - `title` string, required: Job title.
      - `url` string, nullable, required: Posting / apply URL.
    - `next_cursor` string, nullable, required: Opaque cursor for the next page; null when exhausted or the provider cannot page.
  - `op` string, required: Method name.
  - `op_version` integer, required: Method version that served the call.
  - `provider` string, required: Provider that actually served the call.
  - `raw` unknown
  - `raw_truncated` boolean
  - `request_id` string, required: Correlation id; quote it in support requests.
  - `took_ms` integer, required
  - `unsupported_fields` string[], required: Output paths this provider structurally does not supply; such fields are null for a different reason than 'missing on this record'.

## Other responses

- `400`: Validation error (unknown field, bad cursor, bad routing)
- `402`: Insufficient credits
- `404`: Not found (method, or upstream object)
- `429`: Rate limited upstream
- `502`: All providers failed
- `504`: Timed out

---

[API](https://skmtc.dev/agentkey/apis/agentkey-scenario-methods.md) - [All operations](https://skmtc.dev/agentkey/apis/agentkey-scenario-methods/llms.txt) - [OpenAPI document](https://skmtc.dev/agentkey/apis/agentkey-scenario-methods/revisions/a7cf5b682fdd?raw)
