# Dice 关键词搜索 API (dice.search)

- Canonical page: [https://everyinfra.com/dice-api/search](https://everyinfra.com/dice-api/search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "dice", "action": "search", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 100 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=dice&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Dice 技术岗位搜索词，例如 software developer；用于匹配职位，不是公司 ID 或求职者名称。 |
| location | not declared | no | not declared | 职位地区文本，例如 New York, NY；默认 Remote。Remote 是查询地点条件，不保证雇主接受所有国家的远程申请，仍需核对职位说明。 |
| posted_date | not declared | no | not declared | 职位发布时间窗：all 不限（默认）、24h 最近 24 小时、3d 最近 3 天、7d 最近 7 天、30d 最近 30 天。不是申请截止日期或 YYYY-MM-DD 日期值。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| company_name | 公司名称。 |
| location | 地理位置描述，原文透传，格式随平台而异。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| employment_type | 雇佣类型（全职/合同/外包转正）。 |
| is_remote | 是否支持远程。Dice 是技术岗招聘站，远程比例高。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| salary | platform-native meaning |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| employer_type | 招聘方类型（如直招企业、招聘代理），取值为 Dice 原文。 |
| easy_apply | 是否支持在 Dice 站内一键投递。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "dice",
  "action": "search",
  "params": {
    "keyword": "data engineer"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "dice",
        "action": "search",
        "params": {
            "keyword": "data engineer",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "dice",
  "action": "search",
  "results": [
    {
      "id": "b0c4da07f2f7806da94b81fbe43fb46e",
      "url": "https://www.dice.com/job-detail/e87f1a55-a384-4f54-8fd8-50b7ed8dc365",
      "title": "GenRocket Synthetic Test Data Engineer Milwaukee, WI (100% Onsite)",
      "company_name": "BURGEON IT SERVICES LLC",
      "location": "Milwaukee, Wisconsin, USA",
      "posted_at": "2026-10-23T14:09:22+00:00",
      "employment_type": "Contract",
      "is_remote": false,
      "platform": "dice",
      "salary": "$50 - $60",
      "text": "Job Title: GenRocket Synthetic Test Data Engineer Location: Milwaukee, WI (100% Onsite) Contract: 12 months plus Experience: 8 10 years Visa: Visa-independent candidates only Interview: Face-to-face required Please share the resumes with me at Job Description: We are seeking an e…",
      "employer_type": "Direct Hire",
      "easy_apply": true
    },
    {
      "id": "f8bce218238919ba80ee0a75356b47ae",
      "url": "https://www.dice.com/job-detail/317c329b-abe0-4c78-8c1a-25955247f493",
      "title": "Data Engineer",
      "company_name": "Elite Workforce Inc",
      "location": "Indianapolis, Indiana, USA",
      "posted_at": "2026-10-23T14:01:26+00:00",
      "employment_type": "Contract",
      "is_remote": false,
      "platform": "dice",
      "text": "Position: Data Engineer Azure Databricks & Synapse Lakehouse Location: Indianapolis, IN 46204 Client: State of Indiana Duration: 12+ Months Job Description: Seeking a data engineer to design, build, and maintain secure, scalable data solutions using Azure Databricks and Azure Syn…",
      "employer_type": "Recruiter",
      "easy_apply": false
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=dice
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
