# Intelligent Legal Search — search_enforcement

Search Pkulaw Intelligent Legal via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by PKULaw, pass parameters such as documentNo, pageSize, searchType, and retrieve structured data including text, returned type field, title, returned according law field, and returned category field for document research and entity reference, and integration reference.

Documentation: https://openany.si/pkulaw/pkulaw-intelligent-legal-search-search-enforcement/ac1afc1a-19a9-4091-8d27-f58fbc5d848d/
API ID: ac1afc1a-19a9-4091-8d27-f58fbc5d848d
Provider: pkulaw
Contract revision: 6
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/pkulaw/legal-search/search_enforcement
Page update time: 2026-12-04T01:47:27.425Z
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.425Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "500",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Pkulaw Intelligent Legal Search — search\_enforcement API

Search for intelligent Legal search\_enforcement with the PKULaw API. Provide JSON payload 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.data[].title` | Title |
| `structuredContent.data[].accordingLaw` | Returned according law field |
| `structuredContent.data[].category` | Returned category field |
| `structuredContent.data[].documentNo` | Returned document no field |
| `structuredContent.data[].enforcementLevel` | Returned enforcement level field |
| `structuredContent.data[].lawEnforceType` | Returned law enforce type field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Intelligent Legal Search — search_enforcement 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": {
        "cursor": {
          "default": "",
          "description": "Pass back nextCursor from the previous page unchanged. Leave empty for the first page; do not supply it unless the user requests more results. Keep all other parameters the same as on the previous page when paginating",
          "title": "cursor",
          "type": "string"
        },
        "documentNo": {
          "default": null,
          "description": "Issued document / case number, matched as a phrase; separate multiple entries with spaces. Vertical bars do not mean OR. Ignored in semantic mode when queryText is supplied",
          "maxLength": 100,
          "title": "documentNo",
          "type": "string"
        },
        "endPunishmentDate": {
          "default": null,
          "description": "Publication date to. Accepts 2026.01.01, 2026-01-01, or 2026/01/01; missing zero-padding is added automatically",
          "maxLength": 10,
          "title": "endPunishmentDate",
          "type": "string"
        },
        "lawEnforceType": {
          "description": "Enforcement type, e.g. `行政处罚` (administrative penalty), `行政处理` (administrative disposition), `市场禁入` (market entry ban), or `行政检查` (administrative inspection)",
          "items": {
            "enum": [
              "行政处罚",
              "行政处理",
              "市场禁入",
              "行政检查"
            ],
            "type": "string"
          },
          "title": "lawEnforceType",
          "type": "array"
        },
        "lawRegional": {
          "description": "Enforcement region. Accepts only `中央` (central) or a province-level administrative region name, e.g. `广东省` (Guangdong Province); do not supply city or county names",
          "items": {
            "enum": [
              "中央",
              "北京市",
              "天津市",
              "河北省",
              "山西省",
              "内蒙古自治区",
              "辽宁省",
              "吉林省",
              "黑龙江省",
              "上海市",
              "江苏省",
              "浙江省",
              "安徽省",
              "福建省",
              "江西省",
              "山东省",
              "河南省",
              "湖北省",
              "湖南省",
              "广东省",
              "广西壮族自治区",
              "海南省",
              "重庆市",
              "四川省",
              "贵州省",
              "云南省",
              "西藏自治区",
              "陕西省",
              "甘肃省",
              "青海省",
              "宁夏回族自治区",
              "新疆维吾尔自治区",
              "台湾省",
              "香港特别行政区",
              "澳门特别行政区"
            ],
            "type": "string"
          },
          "title": "lawRegional",
          "type": "array"
        },
        "pageSize": {
          "default": 10,
          "description": "Number of results on this page, e.g. 10; maximum 50. A search can retrieve at most 50 results across 5 pages. Keep this value the same as on the previous page when paginating",
          "maximum": 50,
          "minimum": 1,
          "title": "pageSize",
          "type": "integer"
        },
        "punishmentTarget": {
          "description": "Category of penalty recipient: `个人` (individual) or `组织` (organization)",
          "items": {
            "enum": [
              "个人",
              "组织"
            ],
            "type": "string"
          },
          "title": "punishmentTarget",
          "type": "array"
        },
        "punishmentType": {
          "default": null,
          "description": "Penalty types, as a string, not an array. Accepts full code-table names or fragments, e.g. `罚款` (fine); separate multiple entries with spaces, Chinese enumeration commas `、`, or commas",
          "title": "punishmentType",
          "type": "string"
        },
        "queryText": {
          "default": null,
          "description": "Description of case facts or unlawful conduct. In semantic mode, the whole passage is vectorized without splitting on vertical bars; if no case-facts description is supplied in semantic mode, filtering uses the title, document number, and other filters. In keyword mode, used for full-text phrase search: spaces and commas mean AND, | means OR, and the Chinese enumeration comma `、` does not split terms",
          "maxLength": 1000,
          "title": "queryText",
          "type": "string"
        },
        "searchType": {
          "default": "keyword",
          "description": "keyword=search by title, issued document / case number, full text, or filters (default); semantic=find similar documents from case facts supplied in queryText, ignoring title and documentNo",
          "enum": [
            "semantic",
            "keyword"
          ],
          "title": "searchType",
          "type": "string"
        },
        "startPunishmentDate": {
          "default": null,
          "description": "Publication date from. Accepts 2026.01.01, 2026-01-01, or 2026/01/01; missing zero-padding, e.g. 2026.1.1, is added automatically",
          "maxLength": 10,
          "title": "startPunishmentDate",
          "type": "string"
        },
        "title": {
          "default": null,
          "description": "Document title: phrase matching, not exact equality of the entire text. Spaces and commas mean AND; | means OR. The Chinese enumeration comma does not split terms. Ignored when searchType is semantic and queryText is supplied.",
          "maxLength": 200,
          "title": "title",
          "type": "string"
        }
      },
      "title": "search_enforcementArguments",
      "type": "object",
      "description": "Administrative Enforcement Search"
    }
  },
  "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"
            }
          }
        }
      }
    },
    "content": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "isError": {
      "type": "boolean"
    },
    "resultType": {
      "type": "string"
    },
    "structuredContent": {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "accordingLaw": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "category": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "documentNo": {
                "type": "string"
              },
              "enforcementLevel": {
                "type": "string"
              },
              "lawEnforceType": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "punishOrgan": {
                "type": "string"
              },
              "punishmentDate": {
                "type": "string"
              },
              "punishmentTarget": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "punishmentType": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          }
        },
        "hasMore": {
          "type": "boolean"
        },
        "message": {
          "type": "string"
        },
        "nextCursor": {
          "type": "null"
        },
        "total": {
          "type": "integer"
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/pkulaw/legal-search/search_enforcement' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  --data-raw '{
  "documentNo": "财监法〔2026〕193号",
  "pageSize": 3,
  "searchType": "keyword"
}'
```

## 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-enforcement-doc",
      "title": "北大法宝·行政执法检索",
      "version": "1.0.0"
    },
    "pkulaw/evidence": {
      "confidence": "B",
      "notes": [],
      "origin": "search",
      "retrievedAt": "2026-10-28T12:48:16Z",
      "verifiedByApi": true
    }
  },
  "content": [
    {
      "text": "检索到 1 条行政执法文书，本页 1 条，最多 5 页，一次最多 50 条。召回按相关度排序，引用前请打开 URL 核对原文。\n- 1. 财政部行政处罚决定书（财监法〔2026〕193号）（财监法〔2026〕193号，警告、通报批评、罚款、没收违法所得、没收非法财物，中华人民共和国财政部，依据：中华人民共和国注册会计师法(2014修正)第21条第1款、中华人民共和国注册会计师法(2014修正)第21条第2款、中华人民共和国注册会计师法(2014修正)第21条第3款、中华人民共和国注册会计师法(2014修正)第31条、会计师事务所执业许可和监督管理办法(2019修改)第60条第1款、中华人民共和国注册会计师法(2014修正)第39条第1款、会计师事务所执业许可和监督管理办法(2019修改)第67条第1款，2026.07.31）  https://www.pkulaw.com/apy/9445d6e6deb7c9d25469aabb87ec71c0d4d2ea8dab269752bdfb.html?way=mcp",
      "type": "text"
    }
  ],
  "isError": false,
  "resultType": "complete",
  "structuredContent": {
    "data": [
      {
        "accordingLaw": [
          "中华人民共和国注册会计师法(2014修正)第21条第1款",
          "中华人民共和国注册会计师法(2014修正)第21条第2款",
          "中华人民共和国注册会计师法(2014修正)第21条第3款",
          "中华人民共和国注册会计师法(2014修正)第31条",
          "会计师事务所执业许可和监督管理办法(2019修改)第60条第1款",
          "中华人民共和国注册会计师法(2014修正)第39条第1款",
          "会计师事务所执业许可和监督管理办法(2019修改)第67条第1款"
        ],
        "category": [
          "财税",
          "会计",
          "审计",
          "招标采购"
        ],
        "documentNo": "财监法〔2026〕193号",
        "enforcementLevel": "中央",
        "lawEnforceType": [
          "行政处罚"
        ],
        "punishOrgan": "中华人民共和国财政部",
        "punishmentDate": "2026.07.31",
        "punishmentTarget": [
          "组织"
        ],
        "punishmentType": [
          "警告、通报批评",
          "罚款、没收违法所得、没收非法财物"
        ],
        "title": "财政部行政处罚决定书（财监法〔2026〕193号）",
        "url": "https://www.pkulaw.com/apy/9445d6e6deb7c9d25469aabb87ec71c0d4d2ea8dab269752bdfb.html?way=mcp"
      }
    ],
    "hasMore": false,
    "message": "查询成功",
    "nextCursor": null,
    "total": 1
  }
}
```

## 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 JSON payload in body (object). 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-intelligent-legal-search-search-enforcement/ac1afc1a-19a9-4091-8d27-f58fbc5d848d/

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