Case Semantic Search API
Search for case Semantic with the Yuandian API. Supply a search query. Sample fields include answers and titles. Use it to surface relevant records in a search or discovery tool. The POST request schema also lists rewrite_flag, wenshu_filter. Use the results to organize a research workflow and cross-check the relevant source records.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Case Semantic Search API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
answerstringcodeintegerextraobjectwenshuobject[]ahstringajlbstringanyoustring[]authoritystringaystring[]cjstringcontentstringdbstringjaDateintegerjandintegerjbdwstringpara_namestringscidstringscorenumberspcxstringtitlestringtypeintegerwszlstringxzqh_cstringxzqh_pstring
messageIdstringmsgstringrequest_idstringstylestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
answer?: string;
code?: number;
extra?: {
wenshu?: Array<{
ah?: string;
ajlb?: string;
anyou?: Array<string>;
authority?: string;
ay?: Array<string>;
cj?: string;
content?: string;
db?: string;
jaDate?: number;
jand?: number;
jbdw?: string;
para_name?: string;
scid?: string;
score?: number;
spcx?: string;
title?: string;
type?: number;
wszl?: string;
xzqh_c?: string;
xzqh_p?: string;
}>;
};
messageId?: string;
msg?: string;
request_id?: string;
style?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
yuandianCurrent Case Semantic Search API · POST · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/yuandian/open/case_vector_search- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/yuandian/open/case_vector_search' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"query": "入户盗窃",
"return_num": 2,
"rewrite_flag": false,
"wenshu_filter": {
"cj": "中级",
"dianxing": false,
"fayuan": [
"北京市第一中级人民法院"
],
"ja_end": "2025-01-01",
"ja_start": "2015-01-01",
"wenshu_type": "刑事案件",
"wszl": [
"1"
],
"xzqh_p": "北京"
}
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
query | JSON request bodybody | string | Yes | Question or query text to search for |
rewrite_flag | JSON request bodybody | boolean | No | Whether to rewrite the query; defaults to `false` |
wenshu_filter | JSON request bodybody | object | No | Case search filters; see the field descriptions for details |
return_num | JSON request bodybody | integer | No | Number of cases to return (default 45; cannot exceed the total number retrieved) |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Configured HTTP 200; actual status is unverified. Published documentation example. Verify the actual response after an approved call.
{
"answer": "",
"code": 201,
"extra": {
"wenshu": [
{
"ah": "(2019)京01刑终629号",
"ajlb": "刑事案件",
"anyou": [
"盗窃罪"
],
"authority": "",
"ay": [
"201"
],
"cj": "中级",
"content": "本案的案件基本事实为:被告人吕江波在湖北省黄石市三江共和城铜锣湾广场售楼部更衣室内,通过脚踩方式使被害人杨某掉落的信用卡等物品未被发现,随后非法占有并使用这些信用卡进行了取款,共计取款人民币8000元。吕江波的家属后来代其赔偿了被害人14000元,得到了被害人的谅解。吕江波的行为最终被认定为盗窃信用卡并使用,构成盗窃罪。本案争议焦点在于原审被告人吕江波的行为是否构成信用卡诈骗罪以及是否应当对其盗窃行为进行重新定罪量刑。法院认为,吕江波实施了窃取他人财物的行为,数额较大,其行为符合盗窃罪的构成要件,而非信用卡诈骗罪。一审判决将吕江波的行为错误地定性为信用卡诈骗罪,并据此作出数罪并罚的判决,属于法律适用错误,应予以纠正。同时,考虑到吕江波到案后能如实供述自己的罪行,自愿签署认罪认罚具结书,并在案发后通过家属帮助退赔全部涉案赃款,获得被害人谅解,依法可以从轻处罚。然而,鉴于吕江波多次实施盗窃,包括入户盗窃,这一情节在量刑时必须予以充分考虑。综合考量吕江波犯罪的事实、性质、情节及其行为对社会的危害程度,法院依法改判其构成盗窃罪,并根据相关法律规定调整了刑罚,确保判决公正合理。被告人以非法占有为目的,实施盗窃行为,数额较大,构成盗窃罪,应予惩处。若被告人到案后如实供述罪行,签署认罪认罚具结书,并在亲属协助下退赔全部赃款且获得被害人谅解,可依法从宽处罚;但多次盗窃或入户盗窃的情节应在量刑时予以考量。争议焦点1:原审被告人吕江波的行为是否构成盗窃罪而非信用卡诈骗罪。",
"db": "精选案例库",
"jaDate": 20191223,
"jand": 2019,
"jbdw": "北京市第一中级人民法院",
"para_name": "总结",
"scid": "b5c63a4ec01df9495b6b9024bf0a2bee",
"score": 1.0098828125000001,
"spcx": "二审案件",
"title": "吕江波盗窃二审刑事判决书",
"type": 2,
"wszl": "判决书",
"xzqh_c": "一中院",
"xzqh_p": "北京"
},
{
"ah": "(2019)京01刑终124号",
"ajlb": "刑事案件",
"anyou": [
"盗窃罪"
],
"authority": "",
"ay": [
"201"
],
"cj": "中级",
"content": "本案的案件基本事实为:2018年6月29日凌晨,汪传国在北京石景山区模式口村28号院内先后窃取了张某1的苹果牌Iphone6SPLUS手机一部及少量现金,以及郭某的两部手机(白色华为牌NOVA青春型手机一部,价值780元;苹果牌黑色Iphone8PLUS手机一部,价值4400元)和现金22100元。同年7月12日,汪传国被抓获,但赃款赃物未能追回。汪传国家属事后分别向张某1和郭某进行了部分经济补偿并获得了谅解。二审期间,汪传国未能提供新证据支持其未盗窃郭某现金的主张,相关证据足以证实其盗窃金额。本案争议焦点在于上诉人汪传国是否构成盗窃罪以及其刑事责任的确定。法院认为,汪传国以非法占有为目的,实施了入户盗窃他人财物的行为,且涉案金额较大,其行为符合盗窃罪的构成要件,依法应予惩处。此外,汪传国曾因盗窃罪被判刑,刑满释放后五年内再次实施盗窃行为,属于累犯,依法应从重处罚。然而,考虑到汪传国到案后如实供述了部分犯罪事实,积极退赔被害人部分损失并获得谅解,依法可以从轻处罚。综上所述,一审法院认定汪传国犯盗窃罪的事实清楚,证据确凿,定罪准确,量刑适当,审判程序合法,但未依法责令汪传国退赔全部违法所得,存在不当之处,需予以纠正。以非法占有为目的实施入户盗窃,数额较大的,构成盗窃罪,依法应予惩处。若行为人系累犯,即曾因盗窃罪被判处有期徒刑,刑罚执行完毕后五年内再犯应判处有期徒刑以上刑罚之罪的,依法应从重处罚。同时,行为人如实供述犯罪事实,积极退赔被害人损失并获得谅解的,依法可以从轻处罚。法院在判决时需考虑犯罪事实、性质、情节及对社会的危害程度,确保量刑适当。",
"db": "精选案例库",
"jaDate": 20190322,
"jand": 2019,
"jbdw": "北京市第一中级人民法院",
"para_name": "总结",
"scid": "3f186a2590ab411f2fedcd003caf9c1e",
"score": 0.9608060420000001,
"spcx": "二审案件",
"title": "汪传国盗窃二审刑事判决书",
"type": 2,
"wszl": "判决书",
"xzqh_c": "一中院",
"xzqh_p": "北京"
}
]
},
"messageId": "",
"msg": "成功(返回结构化数据)",
"request_id": "",
"style": ""
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Case Semantic Search API
Search for case Semantic with the Yuandian API. Supply a search query. Sample fields include answers and titles. Use it to surface relevant records in a search or discovery tool. The POST request schema also lists rewrite_flag, wenshu_filter. Use the results to organize a research workflow and cross-check the relevant source records.
## Available implementations
yuandian · Case Semantic Search API: https://openany.si/markets/apis/capabilities/yuandian-case-semantic-search-api?offering=1e1db018-5eba-4126-bc30-78093c2e8690 · $0 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/yuandian-case-semantic-search-api
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/yuandian/open/case_vector_search
Price: $0 / call
Provider: yuandian
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/yuandian/open/case_vector_search' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"query": "入户盗窃",
"return_num": 2,
"rewrite_flag": false,
"wenshu_filter": {
"cj": "中级",
"dianxing": false,
"fayuan": [
"北京市第一中级人民法院"
],
"ja_end": "2025-01-01",
"ja_start": "2015-01-01",
"wenshu_type": "刑事案件",
"wszl": [
"1"
],
"xzqh_p": "北京"
}
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Case Semantic Search API",
"endpoint": "https://api.openany.si/v1/agent-apis/yuandian/open/case_vector_search",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Question or query text to search for",
"location": "body",
"name": "query",
"nullable": false,
"pointer": "/query",
"required": true,
"type": "string"
},
{
"description": "Whether to rewrite the query; defaults to `false`",
"location": "body",
"name": "rewrite_flag",
"nullable": false,
"pointer": "/rewrite_flag",
"required": false,
"type": "boolean"
},
{
"description": "Case search filters; see the field descriptions for details",
"location": "body",
"name": "wenshu_filter",
"nullable": false,
"pointer": "/wenshu_filter",
"required": false,
"type": "object"
},
{
"description": "Number of cases to return (default 45; cannot exceed the total number retrieved)",
"location": "body",
"name": "return_num",
"nullable": false,
"pointer": "/return_num",
"required": false,
"type": "integer"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example (HTTP status set during import)",
"request": {
"body": {
"query": "入户盗窃",
"return_num": 2,
"rewrite_flag": false,
"wenshu_filter": {
"cj": "中级",
"dianxing": false,
"fayuan": [
"北京市第一中级人民法院"
],
"ja_end": "2025-01-01",
"ja_start": "2015-01-01",
"wenshu_type": "刑事案件",
"wszl": [
"1"
],
"xzqh_p": "北京"
}
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"answer": "",
"code": 201,
"extra": {
"wenshu": [
{
"ah": "(2019)京01刑终629号",
"ajlb": "刑事案件",
"anyou": [
"盗窃罪"
],
"authority": "",
"ay": [
"201"
],
"cj": "中级",
"content": "本案的案件基本事实为:被告人吕江波在湖北省黄石市三江共和城铜锣湾广场售楼部更衣室内,通过脚踩方式使被害人杨某掉落的信用卡等物品未被发现,随后非法占有并使用这些信用卡进行了取款,共计取款人民币8000元。吕江波的家属后来代其赔偿了被害人14000元,得到了被害人的谅解。吕江波的行为最终被认定为盗窃信用卡并使用,构成盗窃罪。本案争议焦点在于原审被告人吕江波的行为是否构成信用卡诈骗罪以及是否应当对其盗窃行为进行重新定罪量刑。法院认为,吕江波实施了窃取他人财物的行为,数额较大,其行为符合盗窃罪的构成要件,而非信用卡诈骗罪。一审判决将吕江波的行为错误地定性为信用卡诈骗罪,并据此作出数罪并罚的判决,属于法律适用错误,应予以纠正。同时,考虑到吕江波到案后能如实供述自己的罪行,自愿签署认罪认罚具结书,并在案发后通过家属帮助退赔全部涉案赃款,获得被害人谅解,依法可以从轻处罚。然而,鉴于吕江波多次实施盗窃,包括入户盗窃,这一情节在量刑时必须予以充分考虑。综合考量吕江波犯罪的事实、性质、情节及其行为对社会的危害程度,法院依法改判其构成盗窃罪,并根据相关法律规定调整了刑罚,确保判决公正合理。被告人以非法占有为目的,实施盗窃行为,数额较大,构成盗窃罪,应予惩处。若被告人到案后如实供述罪行,签署认罪认罚具结书,并在亲属协助下退赔全部赃款且获得被害人谅解,可依法从宽处罚;但多次盗窃或入户盗窃的情节应在量刑时予以考量。争议焦点1:原审被告人吕江波的行为是否构成盗窃罪而非信用卡诈骗罪。",
"db": "精选案例库",
"jaDate": 20191223,
"jand": 2019,
"jbdw": "北京市第一中级人民法院",
"para_name": "总结",
"scid": "b5c63a4ec01df9495b6b9024bf0a2bee",
"score": 1.0098828125000001,
"spcx": "二审案件",
"title": "吕江波盗窃二审刑事判决书",
"type": 2,
"wszl": "判决书",
"xzqh_c": "一中院",
"xzqh_p": "北京"
},
{
"ah": "(2019)京01刑终124号",
"ajlb": "刑事案件",
"anyou": [
"盗窃罪"
],
"authority": "",
"ay": [
"201"
],
"cj": "中级",
"content": "本案的案件基本事实为:2018年6月29日凌晨,汪传国在北京石景山区模式口村28号院内先后窃取了张某1的苹果牌Iphone6SPLUS手机一部及少量现金,以及郭某的两部手机(白色华为牌NOVA青春型手机一部,价值780元;苹果牌黑色Iphone8PLUS手机一部,价值4400元)和现金22100元。同年7月12日,汪传国被抓获,但赃款赃物未能追回。汪传国家属事后分别向张某1和郭某进行了部分经济补偿并获得了谅解。二审期间,汪传国未能提供新证据支持其未盗窃郭某现金的主张,相关证据足以证实其盗窃金额。本案争议焦点在于上诉人汪传国是否构成盗窃罪以及其刑事责任的确定。法院认为,汪传国以非法占有为目的,实施了入户盗窃他人财物的行为,且涉案金额较大,其行为符合盗窃罪的构成要件,依法应予惩处。此外,汪传国曾因盗窃罪被判刑,刑满释放后五年内再次实施盗窃行为,属于累犯,依法应从重处罚。然而,考虑到汪传国到案后如实供述了部分犯罪事实,积极退赔被害人部分损失并获得谅解,依法可以从轻处罚。综上所述,一审法院认定汪传国犯盗窃罪的事实清楚,证据确凿,定罪准确,量刑适当,审判程序合法,但未依法责令汪传国退赔全部违法所得,存在不当之处,需予以纠正。以非法占有为目的实施入户盗窃,数额较大的,构成盗窃罪,依法应予惩处。若行为人系累犯,即曾因盗窃罪被判处有期徒刑,刑罚执行完毕后五年内再犯应判处有期徒刑以上刑罚之罪的,依法应从重处罚。同时,行为人如实供述犯罪事实,积极退赔被害人损失并获得谅解的,依法可以从轻处罚。法院在判决时需考虑犯罪事实、性质、情节及对社会的危害程度,确保量刑适当。",
"db": "精选案例库",
"jaDate": 20190322,
"jand": 2019,
"jbdw": "北京市第一中级人民法院",
"para_name": "总结",
"scid": "3f186a2590ab411f2fedcd003caf9c1e",
"score": 0.9608060420000001,
"spcx": "二审案件",
"title": "汪传国盗窃二审刑事判决书",
"type": 2,
"wszl": "判决书",
"xzqh_c": "一中院",
"xzqh_p": "北京"
}
]
},
"messageId": "",
"msg": "成功(返回结构化数据)",
"request_id": "",
"style": ""
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example (HTTP status set during import)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 4
Review these request fields before running. Keep the published provider and request method unchanged.
query- Question or query text to search for
rewrite_flag- Whether to rewrite the query; defaults to `false`
wenshu_filter- Case search filters; see the field descriptions for details
return_num- Number of cases to return (default 45; cannot exceed the total number retrieved)
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/yuandian/open/case_vector_search' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "query": "入户盗窃", "return_num": 2, "rewrite_flag": false, "wenshu_filter": { "cj": "中级", "dianxing": false, "fayuan": [ "北京市第一中级人民法院" ], "ja_end": "2025-01-01", "ja_start": "2015-01-01", "wenshu_type": "刑事案件", "wszl": [ "1" ], "xzqh_p": "北京" } }'Check the response
Sample response · Configured HTTP 200; actual status is unverified.
Sample response{ "answer": "", "code": 201, "extra": { "wenshu": [ { "ah": "(2019)京01刑终629号", "ajlb": "刑事案件", "anyou": [ "盗窃罪" ], "authority": "", "ay": [ "201" ], "cj": "中级", "content": "本案的案件基本事实为:被告人吕江波在湖北省黄石市三江共和城铜锣湾广场售楼部更衣室内,通过脚踩方式使被害人杨某掉落的信用卡等物品未被发现,随后非法占有并使用这些信用卡进行了取款,共计取款人民币8000元。吕江波的家属后来代其赔偿了被害人14000元,得到了被害人的谅解。吕江波的行为最终被认定为盗窃信用卡并使用,构成盗窃罪。本案争议焦点在于原审被告人吕江波的行为是否构成信用卡诈骗罪以及是否应当对其盗窃行为进行重新定罪量刑。法院认为,吕江波实施了窃取他人财物的行为,数额较大,其行为符合盗窃罪的构成要件,而非信用卡诈骗罪。一审判决将吕江波的行为错误地定性为信用卡诈骗罪,并据此作出数罪并罚的判决,属于法律适用错误,应予以纠正。同时,考虑到吕江波到案后能如实供述自己的罪行,自愿签署认罪认罚具结书,并在案发后通过家属帮助退赔全部涉案赃款,获得被害人谅解,依法可以从轻处罚。然而,鉴于吕江波多次实施盗窃,包括入户盗窃,这一情节在量刑时必须予以充分考虑。综合考量吕江波犯罪的事实、性质、情节及其行为对社会的危害程度,法院依法改判其构成盗窃罪,并根据相关法律规定调整了刑罚,确保判决公正合理。被告人以非法占有为目的,实施盗窃行为,数额较大,构成盗窃罪,应予惩处。若被告人到案后如实供述罪行,签署认罪认罚具结书,并在亲属协助下退赔全部赃款且获得被害人谅解,可依法从宽处罚;但多次盗窃或入户盗窃的情节应在量刑时予以考量。争议焦点1:原审被告人吕江波的行为是否构成盗窃罪而非信用卡诈骗罪。", "db": "精选案例库", "jaDate": 20191223, "jand": 2019, "jbdw": "北京市第一中级人民法院", "para_name": "总结", "scid": "b5c63a4ec01df9495b6b9024bf0a2bee", "score": 1.0098828125000001, "spcx": "二审案件", "title": "吕江波盗窃二审刑事判决书", "type": 2, "wszl": "判决书", "xzqh_c": "一中院", "xzqh_p": "北京" }, { "ah": "(2019)京01刑终124号", "ajlb": "刑事案件", "anyou": [ "盗窃罪" ], "authority": "", "ay": [ "201" ], "cj": "中级", "content": "本案的案件基本事实为:2018年6月29日凌晨,汪传国在北京石景山区模式口村28号院内先后窃取了张某1的苹果牌Iphone6SPLUS手机一部及少量现金,以及郭某的两部手机(白色华为牌NOVA青春型手机一部,价值780元;苹果牌黑色Iphone8PLUS手机一部,价值4400元)和现金22100元。同年7月12日,汪传国被抓获,但赃款赃物未能追回。汪传国家属事后分别向张某1和郭某进行了部分经济补偿并获得了谅解。二审期间,汪传国未能提供新证据支持其未盗窃郭某现金的主张,相关证据足以证实其盗窃金额。本案争议焦点在于上诉人汪传国是否构成盗窃罪以及其刑事责任的确定。法院认为,汪传国以非法占有为目的,实施了入户盗窃他人财物的行为,且涉案金额较大,其行为符合盗窃罪的构成要件,依法应予惩处。此外,汪传国曾因盗窃罪被判刑,刑满释放后五年内再次实施盗窃行为,属于累犯,依法应从重处罚。然而,考虑到汪传国到案后如实供述了部分犯罪事实,积极退赔被害人部分损失并获得谅解,依法可以从轻处罚。综上所述,一审法院认定汪传国犯盗窃罪的事实清楚,证据确凿,定罪准确,量刑适当,审判程序合法,但未依法责令汪传国退赔全部违法所得,存在不当之处,需予以纠正。以非法占有为目的实施入户盗窃,数额较大的,构成盗窃罪,依法应予惩处。若行为人系累犯,即曾因盗窃罪被判处有期徒刑,刑罚执行完毕后五年内再犯应判处有期徒刑以上刑罚之罪的,依法应从重处罚。同时,行为人如实供述犯罪事实,积极退赔被害人损失并获得谅解的,依法可以从轻处罚。法院在判决时需考虑犯罪事实、性质、情节及对社会的危害程度,确保量刑适当。", "db": "精选案例库", "jaDate": 20190322, "jand": 2019, "jbdw": "北京市第一中级人民法院", "para_name": "总结", "scid": "3f186a2590ab411f2fedcd003caf9c1e", "score": 0.9608060420000001, "spcx": "二审案件", "title": "汪传国盗窃二审刑事判决书", "type": 2, "wszl": "判决书", "xzqh_c": "一中院", "xzqh_p": "北京" } ] }, "messageId": "", "msg": "成功(返回结构化数据)", "request_id": "", "style": "" }