# Regulation Keyword Search API

Search Yuandian Regulation 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 to search interfaces and source review, and integration reference, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/yuandian/yuandian-regulation-keyword-search-api/a0115c0d-2cda-41b9-a95b-7f990076630c/
API ID: a0115c0d-2cda-41b9-a95b-7f990076630c
Provider: yuandian
Contract revision: 5
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/yuandian/open/rh_fg_search
Page update time: 2026-12-04T01:47:27.513Z
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.513Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "500",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Yuandian Regulation Keyword Search API

Search for regulation Keyword with the Yuandian API. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Search interfaces and source review**: Keep returned sources and query context together.
- **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[].fgmc` | Returned fgmc field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Regulation 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 regulation 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"
        },
        "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: 中央、北京、天津、河北、山西、内蒙古、辽宁、吉林、黑龙江、上海、江苏、浙江、安徽、福建、江西、山东、河南、湖北、湖南、广东、广西、海南、重庆、四川、贵州、云南、西藏、陕西、甘肃、青海、宁夏、新疆"
        },
        "xljb_1": {
          "type": "string",
          "description": "Legal authority 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": [
    "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"
          },
          "fgmc": {
            "type": "string"
          },
          "fwzh": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ssrq": {
            "type": "string"
          },
          "sxx": {
            "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: Doc example (source abbreviated; HTTP status set during import)
```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
}'
```

## 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": 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
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
### Does this implementation require business input parameters?
No business input is marked as required by the selected schema. Review any optional filters and the documented request format before calling.

### 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-regulation-keyword-search-api/a0115c0d-2cda-41b9-a95b-7f990076630c/

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