# Legal Provision Keyword Search API

Search Yuandian Legal Provision Keyword via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Yuandian, pass parameters such as fgmc, keyword, search_mode, and retrieve structured data including business status code, content, identifier, title, and returned score field for document research and entity reference, and integration reference, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/yuandian/yuandian-legal-provision-keyword-search-api/4da850d4-8f27-467c-a3c6-9a8d063cb064/
API ID: 4da850d4-8f27-467c-a3c6-9a8d063cb064
Provider: yuandian
Contract revision: 5
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/yuandian/open/rh_ft_search
Page update time: 2026-12-04T01:47:27.497Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.0005 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-04T01:47:27.497Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "500",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Yuandian Legal Provision Keyword Search API

Search for legal provision text using the required keyword parameter with the Yuandian API. Provide keyword in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Document research and entity reference**: Keep document and entity identifiers with each returned reference.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `code` | Business status code |
| `data[].content` | Content |
| `data[].id` | Identifier |
| `data[].title` | Title |
| `data[]._score` | Returned score field |
| `data[].fbbm` | Returned fbbm field |
| `data[].fbrq` | Returned fbrq field |
| `data[].fgid` | Returned fgid field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Legal Provision Keyword Search API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "type": "object",
      "properties": {
        "keyword": {
          "type": "string",
          "description": "Keywords in provision text; split on spaces and join with AND/OR according to `search_mode` to form a queryString"
        },
        "search_mode": {
          "type": "string",
          "description": "Keyword combination mode; defaults to `AND` and is converted to uppercase (for example, `AND`/`OR`)"
        },
        "fgmc": {
          "type": "string",
          "description": "Regulation name filter; split on spaces and require every term to match the regulation title"
        },
        "xljb_1": {
          "type": "string",
          "description": "Legal authority filter; split on spaces and match any term. Allowed literal values: 宪法、法律、司法解释、行政法规、监察法规、部门规章、党内法规、军事法规规章、立法机关工作文件、行政机关工作文件、行业/团体规范、地方性法规、自治条例和单行条例、地方司法文件、地方政府规章、地方规范性文件、地方律协规定;"
        },
        "sxx": {
          "type": "string",
          "description": "Validity status filter; split on spaces and match any term. Allowed literal values: 现行有效、失效、已被修改、部分失效、尚未生效"
        },
        "dy": {
          "type": "string",
          "description": "Region filter; split on spaces and match any term. Allowed literal values: 中央、北京、天津、河北、山西、内蒙古、辽宁、吉林、黑龙江、上海、江苏、浙江、安徽、福建、江西、山东、河南、湖北、湖南、广东、广西、海南、重庆、四川、贵州、云南、西藏、陕西、甘肃、青海、宁夏、新疆"
        },
        "fbbm": {
          "type": "string",
          "description": "Issuing department filter; split on spaces and match any substring"
        },
        "fbrq_start": {
          "type": "string",
          "description": "Publication date range start (inclusive), in yyyy-MM-dd format"
        },
        "fbrq_end": {
          "type": "string",
          "description": "Publication date range end (inclusive), in yyyy-MM-dd format"
        },
        "ssrq_start": {
          "type": "string",
          "description": "Effective date range start (inclusive), in yyyy-MM-dd format"
        },
        "ssrq_end": {
          "type": "string",
          "description": "Effective date range end (inclusive), in yyyy-MM-dd format"
        },
        "top_k": {
          "type": "number",
          "description": "Maximum number of results; default 10, maximum 50"
        }
      },
      "required": [
        "keyword"
      ]
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "_score": {
            "type": "number"
          },
          "content": {
            "type": "string"
          },
          "fbbm": {
            "type": "string"
          },
          "fbrq": {
            "type": "string"
          },
          "fgid": {
            "type": "string"
          },
          "fgmc": {
            "type": "string"
          },
          "ft_num": {
            "type": "string"
          },
          "ftmc": {
            "type": "string"
          },
          "fwzh": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "llm_content": {
            "type": "string"
          },
          "ssrq": {
            "type": "string"
          },
          "sxx": {
            "type": "string"
          },
          "tid": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "xljb_1": {
            "type": "string"
          },
          "xljb_2": {
            "type": "string"
          }
        }
      }
    },
    "message": {
      "type": "string"
    },
    "status": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (HTTP status set during import)
```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
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Configured HTTP 200; actual status is unverified.
```json
{
  "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
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide keyword in body (string). Keep identifiers and URLs in the formats documented for this implementation.

### Which pagination or result-size inputs are exposed?
fbrq_start is string; ssrq_start is string. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### What type does top_k use?
top_k uses the JSON type number in body. Preserve that type; strings, numbers, booleans and arrays are not interchangeable.

### Which request format should I follow?
Use POST on the documented OpenAny route with the selected implementation request content type. Do not change the method or move inputs to a different location.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- yuandian: https://openany.si/yuandian/yuandian-legal-provision-keyword-search-api/4da850d4-8f27-467c-a3c6-9a8d063cb064/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
