Download OpenAPI specification:
全ての API のベース URL は https://zpdic.ziphil.com/api
です。
API を呼ぶ際は、このベース URL の後ろに該当 API のパスを繋げたものにリクエストを送ってください。
Web サイト上で API キーを取得して、X-Api-Key
ヘッダーに設定してください。
API キーが正しく設定されていない場合は、401 エラーが返されます。
この API で扱われる辞書や例文のデータの型は、ZpDIC Online 内部で用いられているものと近い形になっています。 そのため、OTM-JSON 形式での型と異なる点がいくつかあります。 あらかじめ該当 API のドキュメントを参照して、正しい型情報を確認しておいてください。
プロパティ名に required
と書かれているプロパティは必須です。
リクエストに必須プロパティが含まれていない場合は、400 エラーが返されます。
ネストしているプロパティが必須になっていることもあるので、注意してください。
なお必須プロパティは、そのプロパティの存在が必須であるだけなので、そこにゼロ値を指定することはできます。 例えば、文字列型の必須プロパティに空文字列を指定することは可能です。
プロパティ名に required
と書かれていないプロパティは省略可能です。
その場合は、付記されているデフォルト値が指定されたものと見なされます。
identifier required | string 辞書の番号もしくは URL 用識別子 |
text required | string 検索する文字列 |
mode | string Default: "both" Enum: "name" "equivalent" "both" "tag" "information" "variation" "relation" "content" 検索範囲
|
type | string Default: "prefix" Enum: "exact" "prefix" "suffix" "part" "regular" 検索方法
|
orderMode | string Default: "unicode" Enum: "unicode" "updatedDate" "createdDate" ソート順
|
orderDirection | string Default: "ascending" Enum: "ascending" "descending" ソート方向
|
ignoreCase | boolean Default: false 大小文字の違いを無視するかどうか |
skip | integer >= 0 Default: 0 ページング用スキップ件数 |
limit | integer [ 1 .. 100 ] Default: 100 ページング用返却件数 |
{- "words": [
- {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "name": "dictionary",
- "pronunciation": "dɪk.ʃə.nə.ɹi",
- "equivalents": [
- {
- "titles": [
- "名詞",
- "一般"
], - "names": [
- "辞書",
- "辞典"
], - "nameString": "(言語の) 辞書, 辞典",
- "ignoredPattern": "[\\((].*?[\\))]"
}
], - "tags": [
- "基本",
- "レベル 1"
], - "informations": [
- {
- "title": "語義",
- "text": "自然言語や人工言語の辞典を指す。単なる単語帳は含まれない。"
}
], - "variations": [
- {
- "title": "複数形",
- "name": "dictionaries"
}
], - "relations": [
- {
- "titles": [
- "類義語"
], - "number": 2,
- "name": "wordbook"
}
], - "examples": [
- {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "sentence": "This is a dictionary.",
- "translation": "これは辞書です。",
- "supplement": "簡単な繋辞文です。「This is ~」で「これは~です」という意味になります。",
- "tags": [
- "基本",
- "レベル 1"
], - "words": [
- {
- "number": 1
}
], - "offer": {
- "catalog": "zpdicDaily",
- "number": 3
}
}
]
}
], - "total": 250
}
identifier required | string 辞書の番号もしくは URL 用識別子 |
required | object (EditableWord) |
{- "word": {
- "name": "dictionary",
- "pronunciation": "dɪk.ʃə.nə.ɹi",
- "equivalents": [ ],
- "tags": [
- "基本",
- "レベル 1"
], - "informations": [ ],
- "variations": [ ],
- "relations": [ ]
}
}
{- "word": {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "name": "dictionary",
- "pronunciation": "dɪk.ʃə.nə.ɹi",
- "equivalents": [
- {
- "titles": [
- "名詞",
- "一般"
], - "names": [
- "辞書",
- "辞典"
], - "nameString": "(言語の) 辞書, 辞典",
- "ignoredPattern": "[\\((].*?[\\))]"
}
], - "tags": [
- "基本",
- "レベル 1"
], - "informations": [
- {
- "title": "語義",
- "text": "自然言語や人工言語の辞典を指す。単なる単語帳は含まれない。"
}
], - "variations": [
- {
- "title": "複数形",
- "name": "dictionaries"
}
], - "relations": [
- {
- "titles": [
- "類義語"
], - "number": 2,
- "name": "wordbook"
}
]
}
}
identifier required | string 辞書の番号もしくは URL 用識別子 |
wordNumber required | integer 単語の番号 |
{- "word": {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "name": "dictionary",
- "pronunciation": "dɪk.ʃə.nə.ɹi",
- "equivalents": [
- {
- "titles": [
- "名詞",
- "一般"
], - "names": [
- "辞書",
- "辞典"
], - "nameString": "(言語の) 辞書, 辞典",
- "ignoredPattern": "[\\((].*?[\\))]"
}
], - "tags": [
- "基本",
- "レベル 1"
], - "informations": [
- {
- "title": "語義",
- "text": "自然言語や人工言語の辞典を指す。単なる単語帳は含まれない。"
}
], - "variations": [
- {
- "title": "複数形",
- "name": "dictionaries"
}
], - "relations": [
- {
- "titles": [
- "類義語"
], - "number": 2,
- "name": "wordbook"
}
], - "examples": [
- {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "sentence": "This is a dictionary.",
- "translation": "これは辞書です。",
- "supplement": "簡単な繋辞文です。「This is ~」で「これは~です」という意味になります。",
- "tags": [
- "基本",
- "レベル 1"
], - "words": [
- {
- "number": 1
}
], - "offer": {
- "catalog": "zpdicDaily",
- "number": 3
}
}
]
}
}
identifier required | string 辞書の番号もしくは URL 用識別子 |
wordNumber required | integer 単語の番号 |
required | object (EditableWord) |
{- "word": {
- "name": "dictionary",
- "pronunciation": "dɪk.ʃə.nə.ɹi",
- "equivalents": [ ],
- "tags": [
- "基本",
- "レベル 1"
], - "informations": [ ],
- "variations": [ ],
- "relations": [ ]
}
}
{- "word": {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "name": "dictionary",
- "pronunciation": "dɪk.ʃə.nə.ɹi",
- "equivalents": [
- {
- "titles": [
- "名詞",
- "一般"
], - "names": [
- "辞書",
- "辞典"
], - "nameString": "(言語の) 辞書, 辞典",
- "ignoredPattern": "[\\((].*?[\\))]"
}
], - "tags": [
- "基本",
- "レベル 1"
], - "informations": [
- {
- "title": "語義",
- "text": "自然言語や人工言語の辞典を指す。単なる単語帳は含まれない。"
}
], - "variations": [
- {
- "title": "複数形",
- "name": "dictionaries"
}
], - "relations": [
- {
- "titles": [
- "類義語"
], - "number": 2,
- "name": "wordbook"
}
]
}
}
identifier required | string 辞書の番号もしくは URL 用識別子 |
wordNumber required | integer 単語の番号 |
{- "word": {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "name": "dictionary",
- "pronunciation": "dɪk.ʃə.nə.ɹi",
- "equivalents": [
- {
- "titles": [
- "名詞",
- "一般"
], - "names": [
- "辞書",
- "辞典"
], - "nameString": "(言語の) 辞書, 辞典",
- "ignoredPattern": "[\\((].*?[\\))]"
}
], - "tags": [
- "基本",
- "レベル 1"
], - "informations": [
- {
- "title": "語義",
- "text": "自然言語や人工言語の辞典を指す。単なる単語帳は含まれない。"
}
], - "variations": [
- {
- "title": "複数形",
- "name": "dictionaries"
}
], - "relations": [
- {
- "titles": [
- "類義語"
], - "number": 2,
- "name": "wordbook"
}
]
}
}
identifier required | string 辞書の番号もしくは URL 用識別子 |
text required | string 検索する文字列 |
mode | string Default: "both" Enum: "sentence" "translation" "both" "tag" "content" 検索範囲
|
type | string Default: "prefix" Enum: "exact" "prefix" "suffix" "part" "regular" 検索方法
|
ignoreCase | boolean Default: false 大小文字の違いを無視するかどうか |
skip | integer >= 0 Default: 0 ページング用スキップ件数 |
limit | integer [ 1 .. 100 ] Default: 100 ページング用返却件数 |
{- "examples": [
- {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "sentence": "This is a dictionary.",
- "translation": "これは辞書です。",
- "supplement": "簡単な繋辞文です。「This is ~」で「これは~です」という意味になります。",
- "tags": [
- "基本",
- "レベル 1"
], - "words": [
- {
- "number": 1
}
], - "offer": {
- "catalog": "zpdicDaily",
- "number": 3
}
}
], - "total": 250
}
identifier required | string 辞書の番号もしくは URL 用識別子 |
required | object (EditableExample) |
{- "example": {
- "sentence": "This is a dictionary.",
- "translation": "これは辞書です。",
- "supplement": "簡単な繋辞文です。「This is ~」で「これは~です」という意味になります。",
- "tags": [
- "基本",
- "レベル 1"
], - "words": [ ],
- "offer": null
}
}
{- "example": {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "sentence": "This is a dictionary.",
- "translation": "これは辞書です。",
- "supplement": "簡単な繋辞文です。「This is ~」で「これは~です」という意味になります。",
- "tags": [
- "基本",
- "レベル 1"
], - "words": [
- {
- "number": 1
}
], - "offer": {
- "catalog": "zpdicDaily",
- "number": 3
}
}
}
identifier required | string 辞書の番号もしくは URL 用識別子 |
exampleNumber required | integer 例文の番号 |
{- "example": {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "sentence": "This is a dictionary.",
- "translation": "これは辞書です。",
- "supplement": "簡単な繋辞文です。「This is ~」で「これは~です」という意味になります。",
- "tags": [
- "基本",
- "レベル 1"
], - "words": [
- {
- "number": 1
}
], - "offer": {
- "catalog": "zpdicDaily",
- "number": 3
}
}
}
identifier required | string 辞書の番号もしくは URL 用識別子 |
exampleNumber required | integer 例文の番号 |
required | object (EditableExample) |
{- "example": {
- "sentence": "This is a dictionary.",
- "translation": "これは辞書です。",
- "supplement": "簡単な繋辞文です。「This is ~」で「これは~です」という意味になります。",
- "tags": [
- "基本",
- "レベル 1"
], - "words": [ ],
- "offer": null
}
}
{- "example": {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "sentence": "This is a dictionary.",
- "translation": "これは辞書です。",
- "supplement": "簡単な繋辞文です。「This is ~」で「これは~です」という意味になります。",
- "tags": [
- "基本",
- "レベル 1"
], - "words": [
- {
- "number": 1
}
], - "offer": {
- "catalog": "zpdicDaily",
- "number": 3
}
}
}
identifier required | string 辞書の番号もしくは URL 用識別子 |
exampleNumber required | integer 例文の番号 |
{- "example": {
- "id": "507f1f77bcf86cd799439011",
- "number": 1,
- "sentence": "This is a dictionary.",
- "translation": "これは辞書です。",
- "supplement": "簡単な繋辞文です。「This is ~」で「これは~です」という意味になります。",
- "tags": [
- "基本",
- "レベル 1"
], - "words": [
- {
- "number": 1
}
], - "offer": {
- "catalog": "zpdicDaily",
- "number": 3
}
}
}
catalog required | string 例文集名
|
skip | integer >= 0 Default: 0 ページング用スキップ件数 |
limit | integer [ 1 .. 100 ] Default: 100 ページング用返却件数 |
{- "exampleOffers": [
- {
- "id": "507f1f77bcf86cd799439011",
- "catalog": "zpdicDaily",
- "number": 1,
- "translation": "母は朝食に卵を使ったおいしい料理を作ってくれます。",
- "supplement": "最初の例文です。",
- "author": "ZpDIC Online"
}
], - "total": 250
}
catalog required | string 例文集名
|
exampleOfferNumber required | integer 例文集の例文の番号 |
{- "exampleOffer": {
- "id": "507f1f77bcf86cd799439011",
- "catalog": "zpdicDaily",
- "number": 1,
- "translation": "母は朝食に卵を使ったおいしい料理を作ってくれます。",
- "supplement": "最初の例文です。",
- "author": "ZpDIC Online"
}
}