知
Wiktionary API
4 endpointsSearch & KnowledgeGlobalsocial:read4 real examples
Returns Wiktionary word definitions by language and part of speech, entry search, categories and random entries.
View as Markdown| GET | /wiktionary/definition | The definitions of a word per language and part of speech, as Wiktionary lists them. |
| GET | /wiktionary/search | Entries whose headword or text matches a search, 20 per page. |
| GET | /wiktionary/categories | Categories of one entry, such as its language and part of speech. |
| GET | /wiktionary/random | Random Wiktionary entries, 1 to 10 at a time. Each call returns new ones, so it is not cached. |
definition
GET
/v1/wiktionary/definitionThe definitions of a word per language and part of speech, as Wiktionary lists them.
scope social:read1 unitcached 24 hpaginated
Parameters
wordstring required | The word to look up, such as hello. e.g. hello |
langstring | Only this language, by its name in Wiktionary, such as English or French. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
definitions | Definition[] |
text | string |
language | string |
partOfSpeech | string |
curl "https://api.hoshime.com/v1/wiktionary/definition?word=hello" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wiktionary/definition?word=hello", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wiktionary/definition?word=hello", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "definitions": [ { "text": "A greeting (salutation) said when meeting someone or acknowledging someone’s arrival or presence." }, { "text": "A greeting used when answering the telephone." } ], "language": "English", "partOfSpeech": "Interjection" }, { "definitions": [ { "text": "\"Hello!\" or an equivalent greeting." } ], "language": "English", "partOfSpeech": "Noun" } ], "meta": { "cached": false, "endpoint": "definition", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wiktionary", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
GET
/v1/wiktionary/searchEntries whose headword or text matches a search, 20 per page.
scope social:read1 unitcached 30 minpaginated
Parameters
querystring required | Words to search for, such as serendipity. e.g. serendipity |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
pageId | string |
snippet | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/wiktionary/search?query=serendipity" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wiktionary/search?query=serendipity", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wiktionary/search?query=serendipity", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "pageId": "56466", "snippet": "Latin -itās Old French -itebor. Middle English -ite English -ity English serendipity From Serendip (“variant of Serendib: Ceylon, Sri Lanka”…", "title": "serendipity", "url": "https://en.wiktionary.org/wiki/serendipity" }, { "pageId": "4903586", "snippet": "serendipity berry (plural serendipity berries) The fruit of a West African vine of species Dioscoreophyllum cumminsii, which is the source o…", "title": "serendipity berry", "url": "https://en.wiktionary.org/wiki/serendipity%20berry" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wiktionary", "requestId": "req_2Xb9kQ…", "units": 1 } }
categories
GET
/v1/wiktionary/categoriesCategories of one entry, such as its language and part of speech.
scope social:read1 unitcached 24 hpaginated
Parameters
wordstring required | The word to look up, such as serendipity. e.g. serendipity |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
1 fields
title | string |
curl "https://api.hoshime.com/v1/wiktionary/categories?word=serendipity" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wiktionary/categories?word=serendipity", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wiktionary/categories?word=serendipity", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "title": "Category:English 5-syllable words" }, { "title": "Category:English coinages" } ], "meta": { "cached": false, "endpoint": "categories", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wiktionary", "requestId": "req_2Xb9kQ…", "units": 1 } }
random
GET
/v1/wiktionary/randomRandom Wiktionary entries, 1 to 10 at a time. Each call returns new ones, so it is not cached.
scope social:read1 unitpaginated
Parameters
limitinteger | Items per page, 1 to 10. default 1 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
pageId | string |
snippet | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/wiktionary/random" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wiktionary/random", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wiktionary/random", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "pageId": "4969164", "snippet": "", "title": "autorčin", "url": "https://en.wiktionary.org/wiki/autor%C4%8Din" } ], "meta": { "cached": false, "endpoint": "random", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wiktionary", "requestId": "req_2Xb9kQ…", "units": 1 } }