Intelligent Legal Search — get_law_item_content
Retrieve articles by numeric article number (complete metadata + article-level links)
- Selected price
- $0.05 / callPublished pricing
- Providers / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Provider | Price / call | Requests · 30d | Performance | Access |
|---|---|---|---|---|
pkulawCurrent Intelligent Legal Search — get_law_item_content · POST | $0.05 / call | — | —successP50— |
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Playground
Run sends a real API request. Charges follow the published API contract.
curl \
'https://api.openany.si/v1/agent-apis/pkulaw/legal-search/get_law_item_content' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"articleNumber": "1077",
"lawTitle": "民法典"
}'- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/pkulaw/legal-search/get_law_item_content- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/pkulaw/legal-search/get_law_item_content' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"articleNumber": "1077",
"lawTitle": "民法典"
}'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 | Article number. Accepts 232 or `第二百三十二条` (Article 232); write Article 120-1 as 120.1 (or `第一百二十条之一`). The decimal suffix denotes an inserted article number, not a paragraph. minLength: 1 · maxLength: 40 |
lawTitle | JSON request bodybody | string | Yes | Full or abbreviated statute name, e.g. `刑法` (Criminal Law) or `民法典` (Civil Code). Remove title brackets before querying. Must not be empty. minLength: 1 · maxLength: 200 |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Published response example · Documented HTTP 200; not a live result. Published documentation example. Verify the actual response after an approved call.
{
"_meta": {
"io.modelcontextprotocol/serverInfo": {
"name": "mcp-fatiao",
"title": "北大法宝·法条精准取条",
"version": "2.0.0"
},
"pkulaw/evidence": {
"confidence": "A",
"notes": [],
"origin": "catalog",
"retrievedAt": "2026-10-28T12:43:24Z",
"verifiedByApi": true
}
},
"content": [
{
"text": "《中华人民共和国民法典》第一千零七十七条(现行有效)\n施行日期:2021-01-01\n\n第一千零七十七条 自婚姻登记机关收到离婚登记申请之日起三十日内,任何一方不愿意离婚的,可以向婚姻登记机关撤回离婚登记申请。\r\n\r\n 前款规定期限届满后三十日内,双方应当亲自到婚姻登记机关申请发给离婚证;未申请的,视为撤回离婚登记申请。\n\nhttps://www.pkulaw.com/chl/aa00daaeb5a4fe4ebdfb.html?way=mcp#tiao_1077",
"type": "text"
}
],
"isError": false,
"resultType": "complete",
"structuredContent": {
"articleLabel": "第一千零七十七条",
"articleNumber": "1077",
"category": [
"民法"
],
"citation": {
"anchorId": "tiao_1077",
"articleLabel": "第一千零七十七条",
"articleNumber": "1077",
"formatBluebook": null,
"formatChinese": "《中华人民共和国民法典》第一千零七十七条",
"lawShort": null,
"lawTitle": "中华人民共和国民法典",
"url": "https://www.pkulaw.com/chl/aa00daaeb5a4fe4ebdfb.html?way=mcp#tiao_1077",
"versionLabel": "现行有效"
},
"content": "第一千零七十七条 自婚姻登记机关收到离婚登记申请之日起三十日内,任何一方不愿意离婚的,可以向婚姻登记机关撤回离婚登记申请。\r\n\r\n 前款规定期限届满后三十日内,双方应当亲自到婚姻登记机关申请发给离婚证;未申请的,视为撤回离婚登记申请。",
"documentNo": "中华人民共和国主席令第45号",
"effectiveness": [
"法律"
],
"implementDate": "2021-01-01",
"issueDate": "2020-05-28",
"issueDepartment": [
"全国人民代表大会"
],
"lawTitle": "中华人民共和国民法典",
"scope": "中央法规",
"timeliness": "现行有效"
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Intelligent Legal Search — get_law_item_content
Retrieve articles by numeric article number (complete metadata + article-level links)
## Available implementations
pkulaw · Intelligent Legal Search — get_law_item_content: https://openany.si/markets/apis/capabilities/pkulaw-intelligent-legal-search-get-law-item-content?offering=70327ed5-8314-4548-9fe0-441d3844aea5 · $0.05 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/pkulaw-intelligent-legal-search-get-law-item-content
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/pkulaw/legal-search/get_law_item_content
Price: $0.05 / call
Provider: pkulaw
Contract revision: 3
Price source: selected implementation in the OpenAny public API catalog. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/pkulaw/legal-search/get_law_item_content' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"articleNumber": "1077",
"lawTitle": "民法典"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Intelligent Legal Search — get_law_item_content",
"endpoint": "https://api.openany.si/v1/agent-apis/pkulaw/legal-search/get_law_item_content",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Retrieve articles by numeric article number (complete metadata + article-level links)",
"json_schema": {
"properties": {
"articleNumber": {
"description": "Article number. Accepts 232 or `第二百三十二条` (Article 232); write Article 120-1 as 120.1 (or `第一百二十条之一`). The decimal suffix denotes an inserted article number, not a paragraph.",
"maxLength": 40,
"minLength": 1,
"title": "articleNumber",
"type": "string"
},
"lawTitle": {
"description": "Full or abbreviated statute name, e.g. `刑法` (Criminal Law) or `民法典` (Civil Code). Remove title brackets before querying. Must not be empty.",
"maxLength": 200,
"minLength": 1,
"title": "lawTitle",
"type": "string"
}
},
"required": [
"lawTitle",
"articleNumber"
],
"title": "get_law_item_contentArguments",
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "50000",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example",
"request": {
"body": {
"articleNumber": "1077",
"lawTitle": "民法典"
},
"headers": {
"Accept": "application/json"
},
"path": {},
"query": {}
},
"response_body": {
"_meta": {
"io.modelcontextprotocol/serverInfo": {
"name": "mcp-fatiao",
"title": "北大法宝·法条精准取条",
"version": "2.0.0"
},
"pkulaw/evidence": {
"confidence": "A",
"notes": [],
"origin": "catalog",
"retrievedAt": "2026-10-28T12:43:24Z",
"verifiedByApi": true
}
},
"content": [
{
"text": "《中华人民共和国民法典》第一千零七十七条(现行有效)\n施行日期:2021-01-01\n\n第一千零七十七条 自婚姻登记机关收到离婚登记申请之日起三十日内,任何一方不愿意离婚的,可以向婚姻登记机关撤回离婚登记申请。\r\n\r\n 前款规定期限届满后三十日内,双方应当亲自到婚姻登记机关申请发给离婚证;未申请的,视为撤回离婚登记申请。\n\nhttps://www.pkulaw.com/chl/aa00daaeb5a4fe4ebdfb.html?way=mcp#tiao_1077",
"type": "text"
}
],
"isError": false,
"resultType": "complete",
"structuredContent": {
"articleLabel": "第一千零七十七条",
"articleNumber": "1077",
"category": [
"民法"
],
"citation": {
"anchorId": "tiao_1077",
"articleLabel": "第一千零七十七条",
"articleNumber": "1077",
"formatBluebook": null,
"formatChinese": "《中华人民共和国民法典》第一千零七十七条",
"lawShort": null,
"lawTitle": "中华人民共和国民法典",
"url": "https://www.pkulaw.com/chl/aa00daaeb5a4fe4ebdfb.html?way=mcp#tiao_1077",
"versionLabel": "现行有效"
},
"content": "第一千零七十七条 自婚姻登记机关收到离婚登记申请之日起三十日内,任何一方不愿意离婚的,可以向婚姻登记机关撤回离婚登记申请。\r\n\r\n 前款规定期限届满后三十日内,双方应当亲自到婚姻登记机关申请发给离婚证;未申请的,视为撤回离婚登记申请。",
"documentNo": "中华人民共和国主席令第45号",
"effectiveness": [
"法律"
],
"implementDate": "2021-01-01",
"issueDate": "2020-05-28",
"issueDepartment": [
"全国人民代表大会"
],
"lawTitle": "中华人民共和国民法典",
"scope": "中央法规",
"timeliness": "现行有效"
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Retrieve articles by numeric article number (complete metadata + article-level links)
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/pkulaw/legal-search/get_law_item_content' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ --data-raw '{ "articleNumber": "1077", "lawTitle": "民法典" }'Check the response
Published response example · Documented HTTP 200; not a live result.
Sample response · not a live result{ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "mcp-fatiao", "title": "北大法宝·法条精准取条", "version": "2.0.0" }, "pkulaw/evidence": { "confidence": "A", "notes": [], "origin": "catalog", "retrievedAt": "2026-10-28T12:43:24Z", "verifiedByApi": true } }, "content": [ { "text": "《中华人民共和国民法典》第一千零七十七条(现行有效)\n施行日期:2021-01-01\n\n第一千零七十七条 自婚姻登记机关收到离婚登记申请之日起三十日内,任何一方不愿意离婚的,可以向婚姻登记机关撤回离婚登记申请。\r\n\r\n 前款规定期限届满后三十日内,双方应当亲自到婚姻登记机关申请发给离婚证;未申请的,视为撤回离婚登记申请。\n\nhttps://www.pkulaw.com/chl/aa00daaeb5a4fe4ebdfb.html?way=mcp#tiao_1077", "type": "text" } ], "isError": false, "resultType": "complete", "structuredContent": { "articleLabel": "第一千零七十七条", "articleNumber": "1077", "category": [ "民法" ], "citation": { "anchorId": "tiao_1077", "articleLabel": "第一千零七十七条", "articleNumber": "1077", "formatBluebook": null, "formatChinese": "《中华人民共和国民法典》第一千零七十七条", "lawShort": null, "lawTitle": "中华人民共和国民法典", "url": "https://www.pkulaw.com/chl/aa00daaeb5a4fe4ebdfb.html?way=mcp#tiao_1077", "versionLabel": "现行有效" }, "content": "第一千零七十七条 自婚姻登记机关收到离婚登记申请之日起三十日内,任何一方不愿意离婚的,可以向婚姻登记机关撤回离婚登记申请。\r\n\r\n 前款规定期限届满后三十日内,双方应当亲自到婚姻登记机关申请发给离婚证;未申请的,视为撤回离婚登记申请。", "documentNo": "中华人民共和国主席令第45号", "effectiveness": [ "法律" ], "implementDate": "2021-01-01", "issueDate": "2020-05-28", "issueDepartment": [ "全国人民代表大会" ], "lawTitle": "中华人民共和国民法典", "scope": "中央法规", "timeliness": "现行有效" } }
Common questions
Do I need a separate key for every provider?
Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.
Are these providers interchangeable?
No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.
How is this API billed?
API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.
Where do the price and contract come from?
The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.
How do OpenAny Balance and x402 differ?
OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.
Does Playground send a paid request?
Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.