# Regulation Detail API

Get Yuandian Regulation Detail via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Yuandian, pass parameters such as fgmc, refer_date, and retrieve structured data including business status code, content, identifier, title, and returned fbrq 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-detail-api/f7db3081-1506-4608-9975-8e3055e6254a/
API ID: f7db3081-1506-4608-9975-8e3055e6254a
Provider: yuandian
Contract revision: 5
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/yuandian/open/rh_fg_detail
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 Detail API

Retrieve regulation Detail 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.fbrq` | Returned fbrq field |
| `data.fgid` | Returned fgid field |
| `data.fgmc` | Returned fgmc field |
| `data.ssrq` | Returned ssrq field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Regulation Detail 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": {
        "id": {
          "type": "string",
          "description": "ID of the detail target."
        },
        "fgmc": {
          "type": "string",
          "description": "Regulation name (required when `id` is empty)"
        },
        "refer_date": {
          "type": "string",
          "description": "Reference date used to determine the laws and regulations effective at that time; if omitted, uses the currently effective version. Format: yyyy-MM-dd"
        }
      }
    }
  },
  "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": "object",
      "properties": {
        "content": {
          "type": "string"
        },
        "fbrq": {
          "type": "string"
        },
        "fgid": {
          "type": "string"
        },
        "fgmc": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "ssrq": {
          "type": "string"
        },
        "sxx": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "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_detail' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "fgmc": "中华人民共和国刑法",
  "refer_date": "2025-01-01"
}'
```

## 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": {
    "content": "……",
    "fbrq": "2023-12-29",
    "fgid": "aecabfbe6b0843642509a7f1ff865413",
    "fgmc": "中华人民共和国刑法(2023修正)",
    "id": "aecabfbe6b0843642509a7f1ff865413",
    "ssrq": "2024-03-01",
    "sxx": "现行有效",
    "title": "中华人民共和国刑法(2023修正)",
    "type": "法规",
    "url": "/zxt/statuteDetail/detailPage/aecabfbe6b0843642509a7f1ff865413",
    "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 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.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### 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-detail-api/f7db3081-1506-4608-9975-8e3055e6254a/

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