# 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/market/apis/yuandian/yuandian-regulation-detail-api/?offering=f7db3081-1506-4608-9975-8e3055e6254a
API ID: f7db3081-1506-4608-9975-8e3055e6254a
Provider: yuandian
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/yuandian/open/rh_fg_detail
Page update time: 2026-12-03T02:49:59.550Z
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 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:58.704Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## 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.

## Available implementations
- yuandian: https://openany.si/market/apis/yuandian/yuandian-regulation-detail-api/?offering=f7db3081-1506-4608-9975-8e3055e6254a

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