# Article Recognition and Source Tracing — law_recognition

Get Pkulaw Article Recognition and Source Tracing data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by PKULaw, pass parameters such as text, and retrieve structured data including text, returned type field, returned fulltext field, returned lib field, and returned original field for document research and entity reference, and integration reference.

Documentation: https://openany.si/market/apis/pkulaw/pkulaw-article-recognition-and-source-tracing-law-recognition/?offering=c70d85dc-ea8a-414e-939a-889de32b2380
API ID: c70d85dc-ea8a-414e-939a-889de32b2380
Provider: pkulaw
Contract revision: 5
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/pkulaw/law-recognition/law_recognition
Page update time: 2026-12-03T02:50:01.996Z
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.05 / 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:50:00.490Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "50000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Article Recognition and Source Tracing — law_recognition 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": {
      "properties": {
        "text": {
          "description": "A text passage containing statute names, rather than search terms. Typical inputs include a judgment's reasoning section, a contract's legal-basis clause, or a paper's citation passage",
          "title": "Text",
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "title": "law_recognitionArguments",
      "type": "object",
      "description": "Identify statutes in text + standardization"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "_meta": {
      "type": "object",
      "properties": {
        "io.modelcontextprotocol/serverInfo": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "version": {
              "type": "string"
            }
          }
        }
      }
    },
    "content": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "isError": {
      "type": "boolean"
    },
    "resultType": {
      "type": "string"
    },
    "structuredContent": {
      "type": "object",
      "properties": {
        "result": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "fulltext": {
                "type": "string"
              },
              "lib": {
                "type": "string"
              },
              "original": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "text": {
                "type": "string"
              },
              "timeliness": {
                "type": "string"
              },
              "year": {
                "type": "string"
              },
              "tiao_fulltext": {
                "type": "string"
              },
              "tiao_number": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/pkulaw/law-recognition/law_recognition' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  --data-raw '{
  "text": "根据《中华人民共和国民法典》第一千二百六十条规定，该法自2021年1月1日起施行，同时废止了《中华人民共和国婚姻法》、《中华人民共和国继承法》。"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "_meta": {
    "io.modelcontextprotocol/serverInfo": {
      "name": "pkulaw-law-recognition",
      "version": "0.1.4"
    }
  },
  "content": [
    {
      "text": "{\n  \"text\": \"中华人民共和国继承法\",\n  \"original\": \"中华人民共和国继承法\",\n  \"year\": \"\",\n  \"lib\": \"chl\",\n  \"timeliness\": \"废止或失效\",\n  \"fulltext\": \"第一条　根据《中华人民共和国宪法》规定，为保护公民的私有财产的继承权，制定本法。\\r\\n\\r\\n第二条　继承从被继承人死亡时开始。\\r\\n\\r\\n第三条　遗产是公民死亡时遗留的个人合法财产，包括：\\r\\n　　（一）公民的收入；\\r\\n　　（二）公民的房屋、储蓄和生活用品；\\r\\n　　（三）公民的林木、牲畜和家禽；\\r\\n　　（四）公民的文物、图书资料；\\r\\n　　（五）法律允许公民所有的生产资料；\\r\\n　　（六）公民的著作权、专利权中的财产权利；\\r\\n　　（七）公民的其他合法财产。\\r\\n\\r\\n第四条　个人承包应得的个人收益，依照本法规定继承。个人承包，依照法律允许由继承人继续承包的，按照承包合同办理。\\r\\n\\r\\n第五条　继承开始后，按照法定继承办理；有遗嘱的，按照遗嘱继承或者遗赠办理；有遗赠扶养协议的，按照协议办理。\",\n  \"source\": \"https://pkulaw.com/chl/37ee1b1a0b11733cbdfb.html\"\n}",
      "type": "text"
    },
    {
      "text": "{\n  \"text\": \"中华人民共和国婚姻法\",\n  \"original\": \"中华人民共和国婚姻法(2001修正)\",\n  \"year\": \"2021\",\n  \"lib\": \"chl\",\n  \"timeliness\": \"废止或失效\",\n  \"fulltext\": \"第一条　本法是婚姻家庭关系的基本准则。\\r\\n\\r\\n第二条　实行婚姻自由、一夫一妻、男女平等的婚姻制度。\\r\\n　　保护妇女、儿童和老人的合法权益。\\r\\n　　实行计划生育。\\r\\n\\r\\n第三条　禁止包办、买卖婚姻和其他干涉婚姻自由的行为。禁止借婚姻索取财物。\\r\\n　　禁止重婚。禁止有配偶者与他人同居。禁止家庭暴力。禁止家庭成员间的虐待和遗弃。\\r\\n\\r\\n第四条　夫妻应当互相忠实，互相尊重；家庭成员间应当敬老爱幼，互相帮助，维护平等、和睦、文明的婚姻家庭关系。\\r\\n\\r\\n第五条　结婚必须男女双方完全自愿，不许任何一方对他方加以强迫或任何第三者加以干涉。\",\n  \"source\": \"https://pkulaw.com/chl/1bad5c748927dd10bdfb.html\"\n}",
      "type": "text"
    },
    {
      "text": "{\n  \"text\": \"中华人民共和国民法典\",\n  \"original\": \"中华人民共和国民法典\",\n  \"year\": \"2021\",\n  \"lib\": \"chl\",\n  \"timeliness\": \"现行有效\",\n  \"tiao_number\": \"一千二百六十条\",\n  \"tiao_fulltext\": \"第一千二百六十条　本法自2021年1月1日起施行。《中华人民共和国婚姻法》、《中华人民共和国继承法》、《中华人民共和国民法通则》、《中华人民共和国收养法》、《中华人民共和国担保法》、《中华人民共和国合同法》、《中华人民共和国物权法》、《中华人民共和国侵权责任法》、《中华人民共和国民法总则》同时废止。\",\n  \"source\": \"https://pkulaw.com/chl/aa00daaeb5a4fe4ebdfb.html\"\n}",
      "type": "text"
    }
  ],
  "isError": false,
  "resultType": "complete",
  "structuredContent": {
    "result": [
      {
        "fulltext": "第一条　根据《中华人民共和国宪法》规定，为保护公民的私有财产的继承权，制定本法。\r\n\r\n第二条　继承从被继承人死亡时开始。\r\n\r\n第三条　遗产是公民死亡时遗留的个人合法财产，包括：\r\n　　（一）公民的收入；\r\n　　（二）公民的房屋、储蓄和生活用品；\r\n　　（三）公民的林木、牲畜和家禽；\r\n　　（四）公民的文物、图书资料；\r\n　　（五）法律允许公民所有的生产资料；\r\n　　（六）公民的著作权、专利权中的财产权利；\r\n　　（七）公民的其他合法财产。\r\n\r\n第四条　个人承包应得的个人收益，依照本法规定继承。个人承包，依照法律允许由继承人继续承包的，按照承包合同办理。\r\n\r\n第五条　继承开始后，按照法定继承办理；有遗嘱的，按照遗嘱继承或者遗赠办理；有遗赠扶养协议的，按照协议办理。",
        "lib": "chl",
        "original": "中华人民共和国继承法",
        "source": "https://pkulaw.com/chl/37ee1b1a0b11733cbdfb.html",
        "text": "中华人民共和国继承法",
        "timeliness": "废止或失效",
        "year": ""
      },
      {
        "fulltext": "第一条　本法是婚姻家庭关系的基本准则。\r\n\r\n第二条　实行婚姻自由、一夫一妻、男女平等的婚姻制度。\r\n　　保护妇女、儿童和老人的合法权益。\r\n　　实行计划生育。\r\n\r\n第三条　禁止包办、买卖婚姻和其他干涉婚姻自由的行为。禁止借婚姻索取财物。\r\n　　禁止重婚。禁止有配偶者与他人同居。禁止家庭暴力。禁止家庭成员间的虐待和遗弃。\r\n\r\n第四条　夫妻应当互相忠实，互相尊重；家庭成员间应当敬老爱幼，互相帮助，维护平等、和睦、文明的婚姻家庭关系。\r\n\r\n第五条　结婚必须男女双方完全自愿，不许任何一方对他方加以强迫或任何第三者加以干涉。",
        "lib": "chl",
        "original": "中华人民共和国婚姻法(2001修正)",
        "source": "https://pkulaw.com/chl/1bad5c748927dd10bdfb.html",
        "text": "中华人民共和国婚姻法",
        "timeliness": "废止或失效",
        "year": "2021"
      },
      {
        "lib": "chl",
        "original": "中华人民共和国民法典",
        "source": "https://pkulaw.com/chl/aa00daaeb5a4fe4ebdfb.html",
        "text": "中华人民共和国民法典",
        "tiao_fulltext": "第一千二百六十条　本法自2021年1月1日起施行。《中华人民共和国婚姻法》、《中华人民共和国继承法》、《中华人民共和国民法通则》、《中华人民共和国收养法》、《中华人民共和国担保法》、《中华人民共和国合同法》、《中华人民共和国物权法》、《中华人民共和国侵权责任法》、《中华人民共和国民法总则》同时废止。",
        "tiao_number": "一千二百六十条",
        "timeliness": "现行有效",
        "year": "2021"
      }
    ]
  }
}
```

## 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
- pkulaw: https://openany.si/market/apis/pkulaw/pkulaw-article-recognition-and-source-tracing-law-recognition/?offering=c70d85dc-ea8a-414e-939a-889de32b2380

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