Loading...
Loading...
Compare original and translation side by side
Requires API Key: Get one at https://api.search.brave.comPlan: Included in the Spellcheck plan. See https://api-dashboard.search.brave.com/app/subscriptions/subscribe
需要API Key: 可在 https://api.search.brave.com 获取套餐: 包含在拼写检查套餐中,详见 https://api-dashboard.search.brave.com/app/subscriptions/subscribe
curl -s "https://api.search.brave.com/res/v1/spellcheck/search" \
-H "Accept: application/json" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \
-G \
--data-urlencode "q=artifical inteligence" \
--data-urlencode "lang=en" \
--data-urlencode "country=US"curl -s "https://api.search.brave.com/res/v1/spellcheck/search" \
-H "Accept: application/json" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \
-G \
--data-urlencode "q=artifical inteligence" \
--data-urlencode "lang=en" \
--data-urlencode "country=US"GET https://api.search.brave.com/res/v1/spellcheck/searchX-Subscription-Token: <API_KEY>GET https://api.search.brave.com/res/v1/spellcheck/searchX-Subscription-Token: <API_KEY>| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| string | Yes | — | Query to spell check (1-400 chars, max 50 words) |
| string | No | | Language preference (2+ char language code, e.g. |
| string | No | | Search country (2-letter country code or |
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
| string | 是 | — | 待拼写检查的查询词(1-400字符,最多50个单词) |
| string | 否 | | 语言偏好(2位及以上语言代码,例如 |
| string | 否 | | 搜索所属国家(2位国家代码或 |
| Field | Type | Description |
|---|---|---|
| string | Always |
| string | The input query as submitted |
| array | Spell-corrected suggestions. May be empty when no correction is found |
| string | A corrected version of the query |
| 字段 | 类型 | 描述 |
|---|---|---|
| string | 固定为 |
| string | 用户提交的原始查询词 |
| array | 拼写纠正建议列表,未找到可纠正内容时可能为空 |
| string | 纠正后的查询词版本 |
{
"type": "spellcheck",
"query": {
"original": "artifical inteligence"
},
"results": [
{
"query": "artificial intelligence"
}
]
}{
"type": "spellcheck",
"query": {
"original": "artifical inteligence"
},
"results": [
{
"query": "artificial intelligence"
}
]
}spellcheck=truespellcheck=true