APIDataSearch & Research

Legal Provision Keyword Search API

Search for legal provision text using the required keyword parameter with the Yuandian API. Supports filters for parent regulation name, legal authority, validity status, region, publication date, and effective date. Use it in a legal research or due diligence workflow. 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...
USE THIS API

Legal Provision Keyword Search API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Keywords in provision text; split on spaces and join with AND/OR according to `search_mode` to form a queryString
Optional parameters (11)
Keyword combination mode; defaults to `AND` and is converted to uppercase (for example, `AND`/`OR`)
Regulation name filter; split on spaces and require every term to match the regulation title
Legal authority filter; split on spaces and match any term. Allowed literal values: 宪法、法律、司法解释、行政法规、监察法规、部门规章、党内法规、军事法规规章、立法机关工作文件、行政机关工作文件、行业/团体规范、地方性法规、自治条例和单行条例、地方司法文件、地方政府规章、地方规范性文件、地方律协规定;
Validity status filter; split on spaces and match any term. Allowed literal values: 现行有效、失效、已被修改、部分失效、尚未生效
Region filter; split on spaces and match any term. Allowed literal values: 中央、北京、天津、河北、山西、内蒙古、辽宁、吉林、黑龙江、上海、江苏、浙江、安徽、福建、江西、山东、河南、湖北、湖南、广东、广西、海南、重庆、四川、贵州、云南、西藏、陕西、甘肃、青海、宁夏、新疆
Issuing department filter; split on spaces and match any substring
Publication date range start (inclusive), in yyyy-MM-dd format
Publication date range end (inclusive), in yyyy-MM-dd format
Effective date range start (inclusive), in yyyy-MM-dd format
Effective date range end (inclusive), in yyyy-MM-dd format
Maximum number of results; default 10, maximum 50

Sample response

"code": 200
data [2]
[0] {}
"_score": 52.875587
contentString · text preview
data[0].content
 行政机关依照本法第五十七条的规定给予行政处罚,应当制作行政处罚决定书。行政处罚决定书应当载明下列事项: 
(一)当事人的姓名或者名称、地址; 
(二)违反法律、法规、规章的事实和证据; 
(三)行政处罚的种类和依据; 
(四)行政处罚的履行方式和期限; 
(五)申请行政复议、提起行政诉讼的途径和期限; 
(六)作出行政处罚决定的行政机关名称和作出决定的日期。 
行政处罚决定书必须盖有作出行政处罚决定的行政机关的印章。
"fbbm": "全国人大常委会"
"fbrq": "2021-01-22"
"fgid": "0c15f68cf89e1339125e9f41d5d31c67"
"fgmc": "中华人民共和国行政处罚法(2021修订)"
"ft_num": "第五十九条"
"ftmc": "中华人民共和国行政处罚法(2021修订)第五十九条"
"fwzh": "中华人民共和国主席令第70号"
"id": "0c15f68cf89e1339125e9f41d5d31c67_59"
llm_contentString · text preview
data[0].llm_content
 - 《中华人民共和国行政处罚法(2021修订)》第五十九条## 行政机关依照本法第五十七条的规定给予行政处罚,应当制作行政处罚决定书。行政处罚决定书应当载明下列事项: 
(一)当事人的姓名或者名称、地址; 
(二)违反法律、法规、规章的事实和证据; 
(三)行政处罚的种类和依据; 
(四)行政处罚的履行方式和期限; 
(五)申请行政复议、提起行政诉讼的途径和期限; 
(六)作出行政处罚决定的行政机关名称和作出决定的日期。 
行政处罚决定书必须盖有作出行政处罚决定的行政机关的印章。
"ssrq": "2021-07-15"
"sxx": "现行有效"
"tid": "59"
"title": "中华人民共和国行政处罚法(2021修订)第五十九条"
"url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67?text=59"
"xljb_1": "法律"
"xljb_2": "法律"
[1] {}
"_score": 52.751797
contentString · text preview
data[1].content
 行政法规可以设定除限制人身自由以外的行政处罚。 
法律对违法行为已经作出行政处罚规定,行政法规需要作出具体规定的,必须在法律规定的给予行政处罚的行为、种类和幅度的范围内规定。 
法律对违法行为未作出行政处罚规定,行政法规为实施法律,可以补充设定行政处罚。拟补充设定行政处罚的,应当通过听证会、论证会等形式广泛听取意见,并向制定机关作出书面说明。行政法规报送备案时,应当说明补充设定行政处罚的情况。
"fbbm": "全国人大常委会"
"fbrq": "2021-01-22"
"fgid": "0c15f68cf89e1339125e9f41d5d31c67"
"fgmc": "中华人民共和国行政处罚法(2021修订)"
"ft_num": "第十一条"
"ftmc": "中华人民共和国行政处罚法(2021修订)第十一条"
"fwzh": "中华人民共和国主席令第70号"
"id": "0c15f68cf89e1339125e9f41d5d31c67_11"
llm_contentString · text preview
data[1].llm_content
 - 《中华人民共和国行政处罚法(2021修订)》第十一条## 行政法规可以设定除限制人身自由以外的行政处罚。 
法律对违法行为已经作出行政处罚规定,行政法规需要作出具体规定的,必须在法律规定的给予行政处罚的行为、种类和幅度的范围内规定。 
法律对违法行为未作出行政处罚规定,行政法规为实施法律,可以补充设定行政处罚。拟补充设定行政处罚的,应当通过听证会、论证会等形式广泛听取意见,并向制定机关作出书面说明。行政法规报送备案时,应当说明补充设定行政处罚的情况。
"ssrq": "2021-07-15"
"sxx": "现行有效"
"tid": "11"
"title": "中华人民共和国行政处罚法(2021修订)第十一条"
"url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67?text=11"
"xljb_1": "法律"
"xljb_2": "法律"
"message": "请求成功"
"status": "success"

Response result

Response structure

Inferred from examples
  • codeinteger
  • dataobject[]
    • _scorenumber
    • contentstring
    • fbbmstring
    • fbrqstring
    • fgidstring
    • fgmcstring
    • ft_numstring
    • ftmcstring
    • fwzhstring
    • idstring
    • llm_contentstring
    • ssrqstring
    • sxxstring
    • tidstring
    • titlestring
    • urlstring
    • xljb_1string
    • xljb_2string
  • messagestring
  • statusstring

Sellers

SellerPricingRequests · 30dPerformanceAccess
yuandianCurrent
Legal Provision Keyword Search API · POST · View API reference
$0 / call—
—successP50—
Loading...
Selected pricing · yuandianUSD / call
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.

calls

Total $0

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/yuandian/open/rh_ft_search
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/yuandian/open/rh_ft_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.

ParameterLocationTypeRequiredDescription
keywordJSON request bodybodystringYesKeywords in provision text; split on spaces and join with AND/OR according to `search_mode` to form a queryString
search_modeJSON request bodybodystringNoKeyword combination mode; defaults to `AND` and is converted to uppercase (for example, `AND`/`OR`)
fgmcJSON request bodybodystringNoRegulation name filter; split on spaces and require every term to match the regulation title
xljb_1JSON request bodybodystringNoLegal authority filter; split on spaces and match any term. Allowed literal values: 宪法、法律、司法解释、行政法规、监察法规、部门规章、党内法规、军事法规规章、立法机关工作文件、行政机关工作文件、行业/团体规范、地方性法规、自治条例和单行条例、地方司法文件、地方政府规章、地方规范性文件、地方律协规定;
sxxJSON request bodybodystringNoValidity status filter; split on spaces and match any term. Allowed literal values: 现行有效、失效、已被修改、部分失效、尚未生效
dyJSON request bodybodystringNoRegion filter; split on spaces and match any term. Allowed literal values: 中央、北京、天津、河北、山西、内蒙古、辽宁、吉林、黑龙江、上海、江苏、浙江、安徽、福建、江西、山东、河南、湖北、湖南、广东、广西、海南、重庆、四川、贵州、云南、西藏、陕西、甘肃、青海、宁夏、新疆
fbbmJSON request bodybodystringNoIssuing department filter; split on spaces and match any substring
fbrq_startJSON request bodybodystringNoPublication date range start (inclusive), in yyyy-MM-dd format
fbrq_endJSON request bodybodystringNoPublication date range end (inclusive), in yyyy-MM-dd format
ssrq_startJSON request bodybodystringNoEffective date range start (inclusive), in yyyy-MM-dd format
ssrq_endJSON request bodybodystringNoEffective date range end (inclusive), in yyyy-MM-dd format
top_kJSON request bodybodynumberNoMaximum 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.

Documentation example (HTTP status set during import)
{
  "code": 200,
  "data": [
    {
      "_score": 52.875587,
      "content": " 行政机关依照本法第五十七条的规定给予行政处罚,应当制作行政处罚决定书。行政处罚决定书应当载明下列事项: \n(一)当事人的姓名或者名称、地址; \n(二)违反法律、法规、规章的事实和证据; \n(三)行政处罚的种类和依据; \n(四)行政处罚的履行方式和期限; \n(五)申请行政复议、提起行政诉讼的途径和期限; \n(六)作出行政处罚决定的行政机关名称和作出决定的日期。 \n行政处罚决定书必须盖有作出行政处罚决定的行政机关的印章。",
      "fbbm": "全国人大常委会",
      "fbrq": "2021-01-22",
      "fgid": "0c15f68cf89e1339125e9f41d5d31c67",
      "fgmc": "中华人民共和国行政处罚法(2021修订)",
      "ft_num": "第五十九条",
      "ftmc": "中华人民共和国行政处罚法(2021修订)第五十九条",
      "fwzh": "中华人民共和国主席令第70号",
      "id": "0c15f68cf89e1339125e9f41d5d31c67_59",
      "llm_content": " - 《中华人民共和国行政处罚法(2021修订)》第五十九条## 行政机关依照本法第五十七条的规定给予行政处罚,应当制作行政处罚决定书。行政处罚决定书应当载明下列事项: \n(一)当事人的姓名或者名称、地址; \n(二)违反法律、法规、规章的事实和证据; \n(三)行政处罚的种类和依据; \n(四)行政处罚的履行方式和期限; \n(五)申请行政复议、提起行政诉讼的途径和期限; \n(六)作出行政处罚决定的行政机关名称和作出决定的日期。 \n行政处罚决定书必须盖有作出行政处罚决定的行政机关的印章。",
      "ssrq": "2021-07-15",
      "sxx": "现行有效",
      "tid": "59",
      "title": "中华人民共和国行政处罚法(2021修订)第五十九条",
      "url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67?text=59",
      "xljb_1": "法律",
      "xljb_2": "法律"
    },
    {
      "_score": 52.751797,
      "content": " 行政法规可以设定除限制人身自由以外的行政处罚。 \n法律对违法行为已经作出行政处罚规定,行政法规需要作出具体规定的,必须在法律规定的给予行政处罚的行为、种类和幅度的范围内规定。 \n法律对违法行为未作出行政处罚规定,行政法规为实施法律,可以补充设定行政处罚。拟补充设定行政处罚的,应当通过听证会、论证会等形式广泛听取意见,并向制定机关作出书面说明。行政法规报送备案时,应当说明补充设定行政处罚的情况。",
      "fbbm": "全国人大常委会",
      "fbrq": "2021-01-22",
      "fgid": "0c15f68cf89e1339125e9f41d5d31c67",
      "fgmc": "中华人民共和国行政处罚法(2021修订)",
      "ft_num": "第十一条",
      "ftmc": "中华人民共和国行政处罚法(2021修订)第十一条",
      "fwzh": "中华人民共和国主席令第70号",
      "id": "0c15f68cf89e1339125e9f41d5d31c67_11",
      "llm_content": " - 《中华人民共和国行政处罚法(2021修订)》第十一条## 行政法规可以设定除限制人身自由以外的行政处罚。 \n法律对违法行为已经作出行政处罚规定,行政法规需要作出具体规定的,必须在法律规定的给予行政处罚的行为、种类和幅度的范围内规定。 \n法律对违法行为未作出行政处罚规定,行政法规为实施法律,可以补充设定行政处罚。拟补充设定行政处罚的,应当通过听证会、论证会等形式广泛听取意见,并向制定机关作出书面说明。行政法规报送备案时,应当说明补充设定行政处罚的情况。",
      "ssrq": "2021-07-15",
      "sxx": "现行有效",
      "tid": "11",
      "title": "中华人民共和国行政处罚法(2021修订)第十一条",
      "url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67?text=11",
      "xljb_1": "法律",
      "xljb_2": "法律"
    }
  ],
  "message": "请求成功",
  "status": "success"
}

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Legal Provision Keyword Search API

Search for legal provision text using the required keyword parameter with the Yuandian API. Supports filters for parent regulation name, legal authority, validity status, region, publication date, and effective date. Use it in a legal research or due diligence workflow. 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 · Legal Provision Keyword Search API: https://openany.si/markets/apis/capabilities/yuandian-legal-provision-keyword-search-api?offering=4da850d4-8f27-467c-a3c6-9a8d063cb064 · $0 / call

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/yuandian-legal-provision-keyword-search-api
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/yuandian/open/rh_ft_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_ft_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": "Legal Provision Keyword Search API",
  "endpoint": "https://api.openany.si/v1/agent-apis/yuandian/open/rh_ft_search",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Keywords in provision 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": true,
      "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": "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": "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": "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": "Documentation example (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": 52.875587,
            "content": " 行政机关依照本法第五十七条的规定给予行政处罚,应当制作行政处罚决定书。行政处罚决定书应当载明下列事项: \n(一)当事人的姓名或者名称、地址; \n(二)违反法律、法规、规章的事实和证据; \n(三)行政处罚的种类和依据; \n(四)行政处罚的履行方式和期限; \n(五)申请行政复议、提起行政诉讼的途径和期限; \n(六)作出行政处罚决定的行政机关名称和作出决定的日期。 \n行政处罚决定书必须盖有作出行政处罚决定的行政机关的印章。",
            "fbbm": "全国人大常委会",
            "fbrq": "2021-01-22",
            "fgid": "0c15f68cf89e1339125e9f41d5d31c67",
            "fgmc": "中华人民共和国行政处罚法(2021修订)",
            "ft_num": "第五十九条",
            "ftmc": "中华人民共和国行政处罚法(2021修订)第五十九条",
            "fwzh": "中华人民共和国主席令第70号",
            "id": "0c15f68cf89e1339125e9f41d5d31c67_59",
            "llm_content": " - 《中华人民共和国行政处罚法(2021修订)》第五十九条## 行政机关依照本法第五十七条的规定给予行政处罚,应当制作行政处罚决定书。行政处罚决定书应当载明下列事项: \n(一)当事人的姓名或者名称、地址; \n(二)违反法律、法规、规章的事实和证据; \n(三)行政处罚的种类和依据; \n(四)行政处罚的履行方式和期限; \n(五)申请行政复议、提起行政诉讼的途径和期限; \n(六)作出行政处罚决定的行政机关名称和作出决定的日期。 \n行政处罚决定书必须盖有作出行政处罚决定的行政机关的印章。",
            "ssrq": "2021-07-15",
            "sxx": "现行有效",
            "tid": "59",
            "title": "中华人民共和国行政处罚法(2021修订)第五十九条",
            "url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67?text=59",
            "xljb_1": "法律",
            "xljb_2": "法律"
          },
          {
            "_score": 52.751797,
            "content": " 行政法规可以设定除限制人身自由以外的行政处罚。 \n法律对违法行为已经作出行政处罚规定,行政法规需要作出具体规定的,必须在法律规定的给予行政处罚的行为、种类和幅度的范围内规定。 \n法律对违法行为未作出行政处罚规定,行政法规为实施法律,可以补充设定行政处罚。拟补充设定行政处罚的,应当通过听证会、论证会等形式广泛听取意见,并向制定机关作出书面说明。行政法规报送备案时,应当说明补充设定行政处罚的情况。",
            "fbbm": "全国人大常委会",
            "fbrq": "2021-01-22",
            "fgid": "0c15f68cf89e1339125e9f41d5d31c67",
            "fgmc": "中华人民共和国行政处罚法(2021修订)",
            "ft_num": "第十一条",
            "ftmc": "中华人民共和国行政处罚法(2021修订)第十一条",
            "fwzh": "中华人民共和国主席令第70号",
            "id": "0c15f68cf89e1339125e9f41d5d31c67_11",
            "llm_content": " - 《中华人民共和国行政处罚法(2021修订)》第十一条## 行政法规可以设定除限制人身自由以外的行政处罚。 \n法律对违法行为已经作出行政处罚规定,行政法规需要作出具体规定的,必须在法律规定的给予行政处罚的行为、种类和幅度的范围内规定。 \n法律对违法行为未作出行政处罚规定,行政法规为实施法律,可以补充设定行政处罚。拟补充设定行政处罚的,应当通过听证会、论证会等形式广泛听取意见,并向制定机关作出书面说明。行政法规报送备案时,应当说明补充设定行政处罚的情况。",
            "ssrq": "2021-07-15",
            "sxx": "现行有效",
            "tid": "11",
            "title": "中华人民共和国行政处罚法(2021修订)第十一条",
            "url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67?text=11",
            "xljb_1": "法律",
            "xljb_2": "法律"
          }
        ],
        "message": "请求成功",
        "status": "success"
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 provision 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
    xljb_1
    Legal authority filter; split on spaces and match any term. Allowed literal values: 宪法、法律、司法解释、行政法规、监察法规、部门规章、党内法规、军事法规规章、立法机关工作文件、行政机关工作文件、行业/团体规范、地方性法规、自治条例和单行条例、地方司法文件、地方政府规章、地方规范性文件、地方律协规定;
    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: 中央、北京、天津、河北、山西、内蒙古、辽宁、吉林、黑龙江、上海、江苏、浙江、安徽、福建、江西、山东、河南、湖北、湖南、广东、广西、海南、重庆、四川、贵州、云南、西藏、陕西、甘肃、青海、宁夏、新疆
    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 · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/yuandian/open/rh_ft_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
    }'
  3. Check the response

    Sample response · Configured HTTP 200; actual status is unverified.

    Sample response
    {
      "code": 200,
      "data": [
        {
          "_score": 52.875587,
          "content": " 行政机关依照本法第五十七条的规定给予行政处罚,应当制作行政处罚决定书。行政处罚决定书应当载明下列事项: \n(一)当事人的姓名或者名称、地址; \n(二)违反法律、法规、规章的事实和证据; \n(三)行政处罚的种类和依据; \n(四)行政处罚的履行方式和期限; \n(五)申请行政复议、提起行政诉讼的途径和期限; \n(六)作出行政处罚决定的行政机关名称和作出决定的日期。 \n行政处罚决定书必须盖有作出行政处罚决定的行政机关的印章。",
          "fbbm": "全国人大常委会",
          "fbrq": "2021-01-22",
          "fgid": "0c15f68cf89e1339125e9f41d5d31c67",
          "fgmc": "中华人民共和国行政处罚法(2021修订)",
          "ft_num": "第五十九条",
          "ftmc": "中华人民共和国行政处罚法(2021修订)第五十九条",
          "fwzh": "中华人民共和国主席令第70号",
          "id": "0c15f68cf89e1339125e9f41d5d31c67_59",
          "llm_content": " - 《中华人民共和国行政处罚法(2021修订)》第五十九条## 行政机关依照本法第五十七条的规定给予行政处罚,应当制作行政处罚决定书。行政处罚决定书应当载明下列事项: \n(一)当事人的姓名或者名称、地址; \n(二)违反法律、法规、规章的事实和证据; \n(三)行政处罚的种类和依据; \n(四)行政处罚的履行方式和期限; \n(五)申请行政复议、提起行政诉讼的途径和期限; \n(六)作出行政处罚决定的行政机关名称和作出决定的日期。 \n行政处罚决定书必须盖有作出行政处罚决定的行政机关的印章。",
          "ssrq": "2021-07-15",
          "sxx": "现行有效",
          "tid": "59",
          "title": "中华人民共和国行政处罚法(2021修订)第五十九条",
          "url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67?text=59",
          "xljb_1": "法律",
          "xljb_2": "法律"
        },
        {
          "_score": 52.751797,
          "content": " 行政法规可以设定除限制人身自由以外的行政处罚。 \n法律对违法行为已经作出行政处罚规定,行政法规需要作出具体规定的,必须在法律规定的给予行政处罚的行为、种类和幅度的范围内规定。 \n法律对违法行为未作出行政处罚规定,行政法规为实施法律,可以补充设定行政处罚。拟补充设定行政处罚的,应当通过听证会、论证会等形式广泛听取意见,并向制定机关作出书面说明。行政法规报送备案时,应当说明补充设定行政处罚的情况。",
          "fbbm": "全国人大常委会",
          "fbrq": "2021-01-22",
          "fgid": "0c15f68cf89e1339125e9f41d5d31c67",
          "fgmc": "中华人民共和国行政处罚法(2021修订)",
          "ft_num": "第十一条",
          "ftmc": "中华人民共和国行政处罚法(2021修订)第十一条",
          "fwzh": "中华人民共和国主席令第70号",
          "id": "0c15f68cf89e1339125e9f41d5d31c67_11",
          "llm_content": " - 《中华人民共和国行政处罚法(2021修订)》第十一条## 行政法规可以设定除限制人身自由以外的行政处罚。 \n法律对违法行为已经作出行政处罚规定,行政法规需要作出具体规定的,必须在法律规定的给予行政处罚的行为、种类和幅度的范围内规定。 \n法律对违法行为未作出行政处罚规定,行政法规为实施法律,可以补充设定行政处罚。拟补充设定行政处罚的,应当通过听证会、论证会等形式广泛听取意见,并向制定机关作出书面说明。行政法规报送备案时,应当说明补充设定行政处罚的情况。",
          "ssrq": "2021-07-15",
          "sxx": "现行有效",
          "tid": "11",
          "title": "中华人民共和国行政处罚法(2021修订)第十一条",
          "url": "/zxt/statuteDetail/detailPage/0c15f68cf89e1339125e9f41d5d31c67?text=11",
          "xljb_1": "法律",
          "xljb_2": "法律"
        }
      ],
      "message": "请求成功",
      "status": "success"
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Legal Provision Keyword Search API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.