Intelligent Legal Search — diff_article_versions
Search for intelligent Legal diff_article_versions with the PKULaw API. Supply an article number and a from version. Sample fields include citations. Use it in a legal research or due diligence workflow. Use the results to organize a research workflow and cross-check the relevant source records.
- Selected price
- $0.05 / callPublished pricing
- Sellers / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
pkulawCurrent Intelligent Legal Search — diff_article_versions · POST | $0.05 / call | — | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
_metaobjectio.modelcontextprotocol/serverInfoobjectnamestringtitlestringversionstring
pkulaw/evidenceobjectconfidencestringnotesunknown[]originstringretrievedAtstringverifiedByApiboolean
uiobjectresourceUristring
contentobject[]textstringtypestring
isErrorbooleanresultTypestringstructuredContentobjectarticleLabelstringarticleNumberstringcompareStatusstringdiffobjectlinesnullphraseSummaryobjectaddedPhrasesstring[]caveatstringheuristicChangeLevelstringnormativeTermsChangedunknown[]removedPhrasesstring[]summarystring
rowsnull
diffStatsobjectaddedPhraseCountintegerchangedLineCountintegerchangedRowCountintegerheuristicChangeLevelstringheuristicChangeLevelChinesestringisTextUnchangedbooleannormativeTermChangeCountintegerremovedPhraseCountinteger
formatstringfromDateBasisstringfromVersionobjectarticleLabelstringarticleNumberstringchangeTypestringchangeTypeChinesestringcitationobjectanchorIdnullarticleLabelstringarticleNumberstringformatBluebooknullformatChinesestringlawShortstringlawTitlestringurlstringversionLabelstring
coversArticleNumbersunknown[]implementDatestringimplementDateUnknownbooleanisCurrentAnchorbooleanissueDatestringrenumberedbooleantextstringtextComparisonnulltextUnavailablebooleanversionRefstring
lawCitationobjectanchorIdnullarticleLabelnullarticleNumbernullformatBluebooknullformatChinesestringlawShortstringlawTitlestringurlstringversionLabelstring
lawTitlestringprecededBynullrowsDroppedintegersucceededBynulltoDateBasisstringtoVersionobjectarticleLabelstringarticleNumberstringchangeTypestringchangeTypeChinesestringcitationobjectanchorIdnullarticleLabelstringarticleNumberstringformatBluebooknullformatChinesestringlawShortstringlawTitlestringurlstringversionLabelstring
coversArticleNumbersunknown[]implementDatestringimplementDateUnknownbooleanisCurrentAnchorbooleanissueDatestringrenumberedbooleantextstringtextComparisonnulltextUnavailablebooleanversionRefstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
_meta?: {
"io.modelcontextprotocol/serverInfo"?: {
name?: string;
title?: string;
version?: string;
};
"pkulaw/evidence"?: {
confidence?: string;
notes?: Array<unknown>;
origin?: string;
retrievedAt?: string;
verifiedByApi?: boolean;
};
ui?: {
resourceUri?: string;
};
};
content?: Array<{
text?: string;
type?: string;
}>;
isError?: boolean;
resultType?: string;
structuredContent?: {
articleLabel?: string;
articleNumber?: string;
compareStatus?: string;
diff?: {
lines?: null;
phraseSummary?: {
addedPhrases?: Array<string>;
caveat?: string;
heuristicChangeLevel?: string;
normativeTermsChanged?: Array<unknown>;
removedPhrases?: Array<string>;
summary?: string;
};
rows?: null;
};
diffStats?: {
addedPhraseCount?: number;
changedLineCount?: number;
changedRowCount?: number;
heuristicChangeLevel?: string;
heuristicChangeLevelChinese?: string;
isTextUnchanged?: boolean;
normativeTermChangeCount?: number;
removedPhraseCount?: number;
};
format?: string;
fromDateBasis?: string;
fromVersion?: {
articleLabel?: string;
articleNumber?: string;
changeType?: string;
changeTypeChinese?: string;
citation?: {
anchorId?: null;
articleLabel?: string;
articleNumber?: string;
formatBluebook?: null;
formatChinese?: string;
lawShort?: string;
lawTitle?: string;
url?: string;
versionLabel?: string;
};
coversArticleNumbers?: Array<unknown>;
implementDate?: string;
implementDateUnknown?: boolean;
isCurrentAnchor?: boolean;
issueDate?: string;
renumbered?: boolean;
text?: string;
textComparison?: null;
textUnavailable?: boolean;
versionRef?: string;
};
lawCitation?: {
anchorId?: null;
articleLabel?: null;
articleNumber?: null;
formatBluebook?: null;
formatChinese?: string;
lawShort?: string;
lawTitle?: string;
url?: string;
versionLabel?: string;
};
lawTitle?: string;
precededBy?: null;
rowsDropped?: number;
succeededBy?: null;
toDateBasis?: string;
toVersion?: {
articleLabel?: string;
articleNumber?: string;
changeType?: string;
changeTypeChinese?: string;
citation?: {
anchorId?: null;
articleLabel?: string;
articleNumber?: string;
formatBluebook?: null;
formatChinese?: string;
lawShort?: string;
lawTitle?: string;
url?: string;
versionLabel?: string;
};
coversArticleNumbers?: Array<unknown>;
implementDate?: string;
implementDateUnknown?: boolean;
isCurrentAnchor?: boolean;
issueDate?: string;
renumbered?: boolean;
text?: string;
textComparison?: null;
textUnavailable?: boolean;
versionRef?: string;
};
};
};- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/pkulaw/legal-search/diff_article_versions- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/pkulaw/legal-search/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修订"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
articleNumber | JSON request bodybody | string | Yes | Current article number, e.g. `3` or `第三条` (Article 3). Write Article 17-1 as 17.1 or `第十七条之一`. minLength: 1 · maxLength: 40 |
format | JSON request bodybody | string | No | 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" |
fromVersion | JSON request bodybody | string | Yes | 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). minLength: 1 · maxLength: 40 |
lawTitle | JSON request bodybody | string | Yes | 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. minLength: 1 · maxLength: 200 |
toVersion | JSON request bodybody | string | Yes | 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). minLength: 1 · maxLength: 40 |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"_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:18Z",
"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": [
"股东",
"职工和债权人的合法权益",
"完善中国特色现代企业制度",
"弘扬企业家精神",
"