Regulation Keyword Search API
Search for regulation Keyword with the Yuandian API. The sample response includes titles. Use it to surface relevant records in a search or discovery tool. The POST request schema also lists search_mode, fgmc. 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...
Regulation Keyword 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
codeintegerdataobject[]_scorenumbercontentstringfbbmstringfbrqstringfgmcstringfwzhstringidstringssrqstringsxxstringtitlestringurlstringxljb_1stringxljb_2string
messagestringstatusstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
code?: number;
data?: Array<{
_score?: number;
content?: string;
fbbm?: string;
fbrq?: string;
fgmc?: string;
fwzh?: string;
id?: string;
ssrq?: string;
sxx?: string;
title?: string;
url?: string;
xljb_1?: string;
xljb_2?: string;
}>;
message?: string;
status?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
yuandianCurrent Regulation Keyword 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/rh_fg_search- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/yuandian/open/rh_fg_search' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"fgmc": "中华人民共和国行政处罚法",
"keyword": "行政处罚",
"search_mode": "AND",
"sxx": "现行有效",
"top_k": 2
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
keyword | JSON request bodybody | string | No | Keywords in regulation text; split on spaces and join with AND/OR according to `search_mode` to form a queryString |
search_mode | JSON request bodybody | string | No | Keyword combination mode; defaults to `AND` and is converted to uppercase (for example, `AND`/`OR`) |
fgmc | JSON request bodybody | string | No | Regulation name filter; split on spaces and require every term to match the regulation title |
sxx | JSON request bodybody | string | No | Validity status filter; split on spaces and match any term. Allowed literal values: 现行有效、失效、已被修改、部分失效、尚未生效 |
dy | JSON request bodybody | string | No | Region filter; split on spaces and match any term. Allowed literal values: 中央、北京、天津、河北、山西、内蒙古、辽宁、吉林、黑龙江、上海、江苏、浙江、安徽、福建、江西、山东、河南、湖北、湖南、广东、广西、海南、重庆、四川、贵州、云南、西藏、陕西、甘肃、青海、宁夏、新疆 |
xljb_1 | JSON request bodybody | string | No | Legal authority filter; split on spaces and match any term. Allowed literal values: 宪法、法律、司法解释、行政法规、监察法规、部门规章、党内法规、军事法规规章、立法机关工作文件、行政机关工作文件、行业/团体规范、地方性法规、自治条例和单行条例、地方司法文件、地方政府规章、地方规范性文件、地方律协规定; |
fbbm | JSON request bodybody | string | No | Issuing department filter; split on spaces and match any substring |
fbrq_start | JSON request bodybody | string | No | Publication date range start (inclusive), in yyyy-MM-dd format |
fbrq_end | JSON request bodybody | string | No | Publication date range end (inclusive), in yyyy-MM-dd format |
ssrq_start | JSON request bodybody | string | No | Effective date range start (inclusive), in yyyy-MM-dd format |
ssrq_end | JSON request bodybody | string | No | Effective date range end (inclusive), in yyyy-MM-dd format |
top_k | JSON request bodybody | number | No | Maximum number of results; default 10, maximum 50 |
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.
{
"code": 200,
"data": [
{
"_score": 63.246273,
"content": "……(keyword 命中时的高亮片段)……",
"fbbm": "全国人大常委会",
"fbrq": "2021-01-22",
"fgmc": "中华人民共和国行政处罚法(2021修订)",
"fwzh": "中华人民共和国主席令第70号",
"id": "0c15f68cf89e1339125e9f41d5d31c67",
"ssrq": "2021-07-15",
"sxx": "现行有效",
"title": "中华人民共和国行政处罚法(2021修订)",
"url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67",
"xljb_1": "法律",
"xljb_2": "法律"
},
{
"_score": 60.66238,
"content": "……(keyword 命中时的高亮片段)……",
"fbbm": "国家税务总局",
"fbrq": "1996-06-06",
"fgmc": "国家税务总局关于贯彻实施《中华人民共和国行政处罚法》的通知",
"id": "174d6dcbe3762bb197b6481a7515d237",
"ssrq": "1996-06-06",
"sxx": "现行有效",
"title": "国家税务总局关于贯彻实施《中华人民共和国行政处罚法》的通知",
"url": "/zxt/statuteDetail/detailPage/174d6dcbe3762bb197b6481a7515d237",
"xljb_1": "部门规章",
"xljb_2": "部门规范性文件"
}
],
"message": "请求成功",
"status": "success"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Regulation Keyword Search API
Search for regulation Keyword with the Yuandian API. The sample response includes titles. Use it to surface relevant records in a search or discovery tool. The POST request schema also lists search_mode, fgmc. Use the results to organize a research workflow and cross-check the relevant source records.
## Available implementations
yuandian · Regulation Keyword Search API: https://openany.si/markets/apis/capabilities/yuandian-regulation-keyword-search-api?offering=a0115c0d-2cda-41b9-a95b-7f990076630c · $0 / call
## Selected API contract
Documentation: https://openany.si/apis/a0115c0d-2cda-41b9-a95b-7f990076630c
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/yuandian/open/rh_fg_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/rh_fg_search' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"fgmc": "中华人民共和国行政处罚法",
"keyword": "行政处罚",
"search_mode": "AND",
"sxx": "现行有效",
"top_k": 2
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Regulation Keyword Search API",
"endpoint": "https://api.openany.si/v1/agent-apis/yuandian/open/rh_fg_search",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Keywords in regulation text; split on spaces and join with AND/OR according to `search_mode` to form a queryString",
"location": "body",
"name": "keyword",
"nullable": false,
"pointer": "/keyword",
"required": false,
"type": "string"
},
{
"description": "Keyword combination mode; defaults to `AND` and is converted to uppercase (for example, `AND`/`OR`)",
"location": "body",
"name": "search_mode",
"nullable": false,
"pointer": "/search_mode",
"required": false,
"type": "string"
},
{
"description": "Regulation name filter; split on spaces and require every term to match the regulation title",
"location": "body",
"name": "fgmc",
"nullable": false,
"pointer": "/fgmc",
"required": false,
"type": "string"
},
{
"description": "Validity status filter; split on spaces and match any term. Allowed literal values: 现行有效、失效、已被修改、部分失效、尚未生效",
"location": "body",
"name": "sxx",
"nullable": false,
"pointer": "/sxx",
"required": false,
"type": "string"
},
{
"description": "Region filter; split on spaces and match any term. Allowed literal values: 中央、北京、天津、河北、山西、内蒙古、辽宁、吉林、黑龙江、上海、江苏、浙江、安徽、福建、江西、山东、河南、湖北、湖南、广东、广西、海南、重庆、四川、贵州、云南、西藏、陕西、甘肃、青海、宁夏、新疆",
"location": "body",
"name": "dy",
"nullable": false,
"pointer": "/dy",
"required": false,
"type": "string"
},
{
"description": "Legal authority filter; split on spaces and match any term. Allowed literal values: 宪法、法律、司法解释、行政法规、监察法规、部门规章、党内法规、军事法规规章、立法机关工作文件、行政机关工作文件、行业/团体规范、地方性法规、自治条例和单行条例、地方司法文件、地方政府规章、地方规范性文件、地方律协规定;",
"location": "body",
"name": "xljb_1",
"nullable": false,
"pointer": "/xljb_1",
"required": false,
"type": "string"
},
{
"description": "Issuing department filter; split on spaces and match any substring",
"location": "body",
"name": "fbbm",
"nullable": false,
"pointer": "/fbbm",
"required": false,
"type": "string"
},
{
"description": "Publication date range start (inclusive), in yyyy-MM-dd format",
"location": "body",
"name": "fbrq_start",
"nullable": false,
"pointer": "/fbrq_start",
"required": false,
"type": "string"
},
{
"description": "Publication date range end (inclusive), in yyyy-MM-dd format",
"location": "body",
"name": "fbrq_end",
"nullable": false,
"pointer": "/fbrq_end",
"required": false,
"type": "string"
},
{
"description": "Effective date range start (inclusive), in yyyy-MM-dd format",
"location": "body",
"name": "ssrq_start",
"nullable": false,
"pointer": "/ssrq_start",
"required": false,
"type": "string"
},
{
"description": "Effective date range end (inclusive), in yyyy-MM-dd format",
"location": "body",
"name": "ssrq_end",
"nullable": false,
"pointer": "/ssrq_end",
"required": false,
"type": "string"
},
{
"description": "Maximum number of results; default 10, maximum 50",
"location": "body",
"name": "top_k",
"nullable": false,
"pointer": "/top_k",
"required": false,
"type": "number"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Doc example (source abbreviated; HTTP status set during import)",
"request": {
"body": {
"fgmc": "中华人民共和国行政处罚法",
"keyword": "行政处罚",
"search_mode": "AND",
"sxx": "现行有效",
"top_k": 2
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"code": 200,
"data": [
{
"_score": 63.246273,
"content": "……(keyword 命中时的高亮片段)……",
"fbbm": "全国人大常委会",
"fbrq": "2021-01-22",
"fgmc": "中华人民共和国行政处罚法(2021修订)",
"fwzh": "中华人民共和国主席令第70号",
"id": "0c15f68cf89e1339125e9f41d5d31c67",
"ssrq": "2021-07-15",
"sxx": "现行有效",
"title": "中华人民共和国行政处罚法(2021修订)",
"url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67",
"xljb_1": "法律",
"xljb_2": "法律"
},
{
"_score": 60.66238,
"content": "……(keyword 命中时的高亮片段)……",
"fbbm": "国家税务总局",
"fbrq": "1996-06-06",
"fgmc": "国家税务总局关于贯彻实施《中华人民共和国行政处罚法》的通知",
"id": "174d6dcbe3762bb197b6481a7515d237",
"ssrq": "1996-06-06",
"sxx": "现行有效",
"title": "国家税务总局关于贯彻实施《中华人民共和国行政处罚法》的通知",
"url": "/zxt/statuteDetail/detailPage/174d6dcbe3762bb197b6481a7515d237",
"xljb_1": "部门规章",
"xljb_2": "部门规范性文件"
}
],
"message": "请求成功",
"status": "success"
}
}
]
}
```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
Doc example (source abbreviated; 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 12
Review these request fields before running. Keep the published provider and request method unchanged.
keyword- Keywords in regulation text; split on spaces and join with AND/OR according to `search_mode` to form a queryString
search_mode- Keyword combination mode; defaults to `AND` and is converted to uppercase (for example, `AND`/`OR`)
fgmc- Regulation name filter; split on spaces and require every term to match the regulation title
sxx- Validity status filter; split on spaces and match any term. Allowed literal values: 现行有效、失效、已被修改、部分失效、尚未生效
dy- Region filter; split on spaces and match any term. Allowed literal values: 中央、北京、天津、河北、山西、内蒙古、辽宁、吉林、黑龙江、上海、江苏、浙江、安徽、福建、江西、山东、河南、湖北、湖南、广东、广西、海南、重庆、四川、贵州、云南、西藏、陕西、甘肃、青海、宁夏、新疆
xljb_1- Legal authority filter; split on spaces and match any term. Allowed literal values: 宪法、法律、司法解释、行政法规、监察法规、部门规章、党内法规、军事法规规章、立法机关工作文件、行政机关工作文件、行业/团体规范、地方性法规、自治条例和单行条例、地方司法文件、地方政府规章、地方规范性文件、地方律协规定;
fbbm- Issuing department filter; split on spaces and match any substring
fbrq_start- Publication date range start (inclusive), in yyyy-MM-dd format
fbrq_end- Publication date range end (inclusive), in yyyy-MM-dd format
ssrq_start- Effective date range start (inclusive), in yyyy-MM-dd format
ssrq_end- Effective date range end (inclusive), in yyyy-MM-dd format
top_k- Maximum number of results; default 10, maximum 50
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/yuandian/open/rh_fg_search' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "fgmc": "中华人民共和国行政处罚法", "keyword": "行政处罚", "search_mode": "AND", "sxx": "现行有效", "top_k": 2 }'Check the response
Sample response · Configured HTTP 200; actual status is unverified.
Sample response{ "code": 200, "data": [ { "_score": 63.246273, "content": "……(keyword 命中时的高亮片段)……", "fbbm": "全国人大常委会", "fbrq": "2021-01-22", "fgmc": "中华人民共和国行政处罚法(2021修订)", "fwzh": "中华人民共和国主席令第70号", "id": "0c15f68cf89e1339125e9f41d5d31c67", "ssrq": "2021-07-15", "sxx": "现行有效", "title": "中华人民共和国行政处罚法(2021修订)", "url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67", "xljb_1": "法律", "xljb_2": "法律" }, { "_score": 60.66238, "content": "……(keyword 命中时的高亮片段)……", "fbbm": "国家税务总局", "fbrq": "1996-06-06", "fgmc": "国家税务总局关于贯彻实施《中华人民共和国行政处罚法》的通知", "id": "174d6dcbe3762bb197b6481a7515d237", "ssrq": "1996-06-06", "sxx": "现行有效", "title": "国家税务总局关于贯彻实施《中华人民共和国行政处罚法》的通知", "url": "/zxt/statuteDetail/detailPage/174d6dcbe3762bb197b6481a7515d237", "xljb_1": "部门规章", "xljb_2": "部门规范性文件" } ], "message": "请求成功", "status": "success" }