# Statute and Article History — diff_article_versions

Get Pkulaw Statute and Article History data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by PKULaw, pass parameters such as articleNumber, format, fromVersion, and retrieve structured data including text, returned type field, returned article label field, returned article number field, and returned compare status field for document research and entity reference, and integration reference.

Documentation: https://openany.si/pkulaw/pkulaw-statute-and-article-history-diff-article-versions/69dfa68f-52bc-4abf-8116-61a469bd4136/
API ID: 69dfa68f-52bc-4abf-8116-61a469bd4136
Provider: pkulaw
Contract revision: 6
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/pkulaw/statute-history/diff_article_versions
Page update time: 2026-12-04T01:47:27.523Z
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.523Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "500",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Pkulaw Statute and Article History — diff\_article\_versions API

Retrieve statute and Article History diff\_article\_versions with the PKULaw API. Provide lawTitle in body, articleNumber in body, fromVersion in body, toVersion 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 |
| --- | --- |
| `content[].text` | Text |
| `content[].type` | Returned type field |
| `structuredContent.articleLabel` | Returned article label field |
| `structuredContent.articleNumber` | Returned article number field |
| `structuredContent.compareStatus` | Returned compare status field |
| `structuredContent.diff.lines` | Returned lines value (nullable in the reference) |
| `structuredContent.diff.phraseSummary` | Returned phrase summary field |
| `structuredContent.diff.rows` | Returned rows value (nullable in the reference) |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Statute and Article History — diff_article_versions 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": {
        "articleNumber": {
          "description": "Current article number, e.g. `3` or `第三条` (Article 3). Write Article 17-1 as 17.1 or `第十七条之一`.",
          "maxLength": 40,
          "minLength": 1,
          "title": "articleNumber",
          "type": "string"
        },
        "format": {
          "default": "phraseSummary",
          "description": "Diff format. phraseSummary (default) provides added/deleted phrases and a change level, suitable for paraphrasing; unified provides line-by-line additions/deletions; sideBySide provides a left/right comparison, suitable for legislative amendment comparison tables.",
          "enum": [
            "phraseSummary",
            "unified",
            "sideBySide"
          ],
          "title": "format",
          "type": "string"
        },
        "fromVersion": {
          "description": "Starting version (older version). Accepts a version label, e.g. `2018修正` (amended in 2018), as returned by list_law_versions, or a date YYYY-MM-DD (locates the version effective at that time by its effective date).",
          "maxLength": 40,
          "minLength": 1,
          "title": "fromVersion",
          "type": "string"
        },
        "lawTitle": {
          "description": "Statute name. Full or abbreviated names are accepted, e.g. `公司法` (Company Law), `民法典` (Civil Code), or `上海市生活垃圾管理条例` (Shanghai Municipal Regulations on Domestic Waste Management). Version hints such as `新公司法` (new Company Law), `2023公司法` (2023 Company Law), or `公司法 2023修订` (Company Law, revised in 2023) are also accepted. For long names of judicial interpretations, meeting minutes, and similar documents, supply as much of the full name as possible. Maximum 200 characters.",
          "maxLength": 200,
          "minLength": 1,
          "title": "lawTitle",
          "type": "string"
        },
        "toVersion": {
          "description": "Ending version (newer version). Uses the same syntax as fromVersion; also accepts current (the version of this statute that remains currently effective; there is no current version if it has been incorporated into another statute).",
          "maxLength": 40,
          "minLength": 1,
          "title": "toVersion",
          "type": "string"
        }
      },
      "required": [
        "lawTitle",
        "articleNumber",
        "fromVersion",
        "toVersion"
      ],
      "title": "diff_article_versionsArguments",
      "type": "object",
      "description": "Differences Between Two Article Versions"
    }
  },
  "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"
            },
            "title": {
              "type": "string"
            },
            "version": {
              "type": "string"
            }
          }
        },
        "pkulaw/evidence": {
          "type": "object",
          "properties": {
            "confidence": {
              "type": "string"
            },
            "notes": {
              "type": "array",
              "items": {}
            },
            "origin": {
              "type": "string"
            },
            "retrievedAt": {
              "type": "string"
            },
            "verifiedByApi": {
              "type": "boolean"
            }
          }
        },
        "ui": {
          "type": "object",
          "properties": {
            "resourceUri": {
              "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": {
        "articleLabel": {
          "type": "string"
        },
        "articleNumber": {
          "type": "string"
        },
        "compareStatus": {
          "type": "string"
        },
        "diff": {
          "type": "object",
          "properties": {
            "lines": {
              "type": "null"
            },
            "phraseSummary": {
              "type": "object",
              "properties": {
                "addedPhrases": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "caveat": {
                  "type": "string"
                },
                "heuristicChangeLevel": {
                  "type": "string"
                },
                "normativeTermsChanged": {
                  "type": "array",
                  "items": {}
                },
                "removedPhrases": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "summary": {
                  "type": "string"
                }
              }
            },
            "rows": {
              "type": "null"
            }
          }
        },
        "diffStats": {
          "type": "object",
          "properties": {
            "addedPhraseCount": {
              "type": "integer"
            },
            "changedLineCount": {
              "type": "integer"
            },
            "changedRowCount": {
              "type": "integer"
            },
            "heuristicChangeLevel": {
              "type": "string"
            },
            "heuristicChangeLevelChinese": {
              "type": "string"
            },
            "isTextUnchanged": {
              "type": "boolean"
            },
            "normativeTermChangeCount": {
              "type": "integer"
            },
            "removedPhraseCount": {
              "type": "integer"
            }
          }
        },
        "format": {
          "type": "string"
        },
        "fromDateBasis": {
          "type": "string"
        },
        "fromVersion": {
          "type": "object",
          "properties": {
            "articleLabel": {
              "type": "string"
            },
            "articleNumber": {
              "type": "string"
            },
            "changeType": {
              "type": "string"
            },
            "changeTypeChinese": {
              "type": "string"
            },
            "citation": {
              "type": "object",
              "properties": {
                "anchorId": {
                  "type": "null"
                },
                "articleLabel": {
                  "type": "string"
                },
                "articleNumber": {
                  "type": "string"
                },
                "formatBluebook": {
                  "type": "null"
                },
                "formatChinese": {
                  "type": "string"
                },
                "lawShort": {
                  "type": "string"
                },
                "lawTitle": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "versionLabel": {
                  "type": "string"
                }
              }
            },
            "coversArticleNumbers": {
              "type": "array",
              "items": {}
            },
            "implementDate": {
              "type": "string"
            },
            "implementDateUnknown": {
              "type": "boolean"
            },
            "isCurrentAnchor": {
              "type": "boolean"
            },
            "issueDate": {
              "type": "string"
            },
            "renumbered": {
              "type": "boolean"
            },
            "text": {
              "type": "string"
            },
            "textComparison": {
              "type": "null"
            },
            "textUnavailable": {
              "type": "boolean"
            },
            "versionRef": {
              "type": "string"
            }
          }
        },
        "lawCitation": {
          "type": "object",
          "properties": {
            "anchorId": {
              "type": "null"
            },
            "articleLabel": {
              "type": "null"
            },
            "articleNumber": {
              "type": "null"
            },
            "formatBluebook": {
              "type": "null"
            },
            "formatChinese": {
              "type": "string"
            },
            "lawShort": {
              "type": "string"
            },
            "lawTitle": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "versionLabel": {
              "type": "string"
            }
          }
        },
        "lawTitle": {
          "type": "string"
        },
        "precededBy": {
          "type": "null"
        },
        "rowsDropped": {
          "type": "integer"
        },
        "succeededBy": {
          "type": "null"
        },
        "toDateBasis": {
          "type": "string"
        },
        "toVersion": {
          "type": "object",
          "properties": {
            "articleLabel": {
              "type": "string"
            },
            "articleNumber": {
              "type": "string"
            },
            "changeType": {
              "type": "string"
            },
            "changeTypeChinese": {
              "type": "string"
            },
            "citation": {
              "type": "object",
              "properties": {
                "anchorId": {
                  "type": "null"
                },
                "articleLabel": {
                  "type": "string"
                },
                "articleNumber": {
                  "type": "string"
                },
                "formatBluebook": {
                  "type": "null"
                },
                "formatChinese": {
                  "type": "string"
                },
                "lawShort": {
                  "type": "string"
                },
                "lawTitle": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "versionLabel": {
                  "type": "string"
                }
              }
            },
            "coversArticleNumbers": {
              "type": "array",
              "items": {}
            },
            "implementDate": {
              "type": "string"
            },
            "implementDateUnknown": {
              "type": "boolean"
            },
            "isCurrentAnchor": {
              "type": "boolean"
            },
            "issueDate": {
              "type": "string"
            },
            "renumbered": {
              "type": "boolean"
            },
            "text": {
              "type": "string"
            },
            "textComparison": {
              "type": "null"
            },
            "textUnavailable": {
              "type": "boolean"
            },
            "versionRef": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/pkulaw/statute-history/diff_article_versions' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  --data-raw '{
  "articleNumber": "1",
  "format": "phraseSummary",
  "fromVersion": "2018修正",
  "lawTitle": "公司法",
  "toVersion": "2023修订"
}'
```

## 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-statute-history",
      "title": "北大法宝·法规与法条沿革",
      "version": "1.0.0"
    },
    "pkulaw/evidence": {
      "confidence": "A",
      "notes": [],
      "origin": "mixed",
      "retrievedAt": "2026-10-28T12:48:21Z",
      "verifiedByApi": true
    },
    "ui": {
      "resourceUri": "ui://pkulaw-statute-history/article-diff.html"
    }
  },
  "content": [
    {
      "text": "《中华人民共和国公司法》第一条：2018修正 → 2023修订，文本变化较大。\n删除 1 处短语，新增 5 处短语。\n新增：股东；职工和债权人的合法权益；完善中国特色现代企业制度；弘扬企业家精神；根据宪法\n删除：股东和债权人的合法权益\n增删短语为启发式切分，小标题或标点变化可能导致同一句两侧都出现；实质性改动请以统一 diff 或左右对照为准。\n引注：https://www.pkulaw.com/chl/8ba805acd08846d7bdfb.html?way=mcp#tiao_1",
      "type": "text"
    }
  ],
  "isError": false,
  "resultType": "complete",
  "structuredContent": {
    "articleLabel": "第一条",
    "articleNumber": "1.0",
    "compareStatus": "compared",
    "diff": {
      "lines": null,
      "phraseSummary": {
        "addedPhrases": [
          "股东",
          "职工和债权人的合法权益",
          "完善中国特色现代企业制度",
          "弘扬企业家精神",
          "根据宪法"
        ],
        "caveat": "本结果仅为基于文本短语和相似度的程序化差异摘要，不构成法律语义、法律效果或法律适用结论；请结合条文全文、上下文和专业判断复核。增删短语按标点启发式切分，小标题或标点变化可能导致同一句同时出现在新增和删除里；判断实质性改动请以统一 diff 或左右对照为准。",
        "heuristicChangeLevel": "majorTextChange",
        "normativeTermsChanged": [],
        "removedPhrases": [
          "股东和债权人的合法权益"
        ],
        "summary": "删除 1 处短语，新增 5 处短语。"
      },
      "rows": null
    },
    "diffStats": {
      "addedPhraseCount": 5,
      "changedLineCount": 0,
      "changedRowCount": 0,
      "heuristicChangeLevel": "majorTextChange",
      "heuristicChangeLevelChinese": "文本变化较大",
      "isTextUnchanged": false,
      "normativeTermChangeCount": 0,
      "removedPhraseCount": 1
    },
    "format": "phraseSummary",
    "fromDateBasis": "label",
    "fromVersion": {
      "articleLabel": "第一条",
      "articleNumber": "1.0",
      "changeType": "unchanged",
      "changeTypeChinese": "未修改",
      "citation": {
        "anchorId": null,
        "articleLabel": "第一条",
        "articleNumber": "1.0",
        "formatBluebook": null,
        "formatChinese": "《中华人民共和国公司法》（2018修正）第一条",
        "lawShort": "公司法",
        "lawTitle": "中华人民共和国公司法",
        "url": "https://www.pkulaw.com/chl/aec0c211a78989e9bdfb.html?way=mcp#tiao_1",
        "versionLabel": "中华人民共和国公司法(2018修正)"
      },
      "coversArticleNumbers": [],
      "implementDate": "2018-10-26",
      "implementDateUnknown": false,
      "isCurrentAnchor": false,
      "issueDate": "2018-10-26",
      "renumbered": false,
      "text": "第一条　　为了规范公司的组织和行为，保护公司、股东和债权人的合法权益，维护社会经济秩序，促进社会主义市场经济的发展，制定本法。",
      "textComparison": null,
      "textUnavailable": false,
      "versionRef": "2018修正"
    },
    "lawCitation": {
      "anchorId": null,
      "articleLabel": null,
      "articleNumber": null,
      "formatBluebook": null,
      "formatChinese": "《中华人民共和国公司法》（2023修订）",
      "lawShort": "公司法",
      "lawTitle": "中华人民共和国公司法",
      "url": "https://www.pkulaw.com/chl/8ba805acd08846d7bdfb.html",
      "versionLabel": "2023修订"
    },
    "lawTitle": "中华人民共和国公司法",
    "precededBy": null,
    "rowsDropped": 0,
    "succeededBy": null,
    "toDateBasis": "label",
    "toVersion": {
      "articleLabel": "第一条",
      "articleNumber": "1.0",
      "changeType": "modified",
      "changeTypeChinese": "修改",
      "citation": {
        "anchorId": null,
        "articleLabel": "第一条",
        "articleNumber": "1.0",
        "formatBluebook": null,
        "formatChinese": "《中华人民共和国公司法》（2023修订）第一条",
        "lawShort": "公司法",
        "lawTitle": "中华人民共和国公司法",
        "url": "https://www.pkulaw.com/chl/8ba805acd08846d7bdfb.html?way=mcp#tiao_1",
        "versionLabel": "中华人民共和国公司法(2023修订)"
      },
      "coversArticleNumbers": [],
      "implementDate": "2024-07-01",
      "implementDateUnknown": false,
      "isCurrentAnchor": true,
      "issueDate": "2023-12-29",
      "renumbered": false,
      "text": "第一条　　为了规范公司的组织和行为，保护公司、股东、职工和债权人的合法权益，完善中国特色现代企业制度，弘扬企业家精神，维护社会经济秩序，促进社会主义市场经济的发展，根据宪法，制定本法。",
      "textComparison": null,
      "textUnavailable": false,
      "versionRef": "2023修订"
    }
  }
}
```

## 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 lawTitle in body (string); articleNumber in body (string); fromVersion in body (string); toVersion in body (string). Keep identifiers and URLs in the formats documented for this implementation.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### 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
- pkulaw: https://openany.si/pkulaw/pkulaw-statute-and-article-history-diff-article-versions/69dfa68f-52bc-4abf-8116-61a469bd4136/

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