# Intelligent Legal Search — anhao_recognition

Search Pkulaw Intelligent Legal 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, title, returned case flag field, and returned court field for document research and entity reference, and integration reference, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/pkulaw/pkulaw-intelligent-legal-search-anhao-recognition/3f8f42c3-df41-41fa-927a-3258f17a10df/
API ID: 3f8f42c3-df41-41fa-927a-3258f17a10df
Provider: pkulaw
Contract revision: 6
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/pkulaw/legal-search/anhao_recognition
Page update time: 2026-12-04T01:47:27.375Z
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.375Z. 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 — anhao\_recognition API

Identify case numbers in text and verify authenticity with the PKULaw API. Provide text 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.result[].text` | Text |
| `structuredContent.result[].title` | Title |
| `structuredContent.result[].caseFlag` | Returned case flag field |
| `structuredContent.result[].court` | Returned court field |
| `structuredContent.result[].end` | Returned end field |
| `structuredContent.result[].gid` | Returned gid field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Intelligent Legal Search — anhao_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 case numbers, rather than search terms. Typical inputs include judgment text, a ruling passage, a lawyer's letter citation passage, or a paper's case citation passage",
          "title": "Text",
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "title": "anhao_recognitionArguments",
      "type": "object",
      "description": "Identify case numbers in text and verify authenticity"
    }
  },
  "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": {
              "caseFlag": {
                "type": "string"
              },
              "court": {
                "type": "string"
              },
              "end": {
                "type": "integer"
              },
              "gid": {
                "type": "string"
              },
              "lastInstanceDate": {
                "type": "string"
              },
              "start": {
                "type": "integer"
              },
              "text": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/pkulaw/legal-search/anhao_recognition' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  --data-raw '{
  "text": "参见（2025）浙0106民初18676号案的裁判观点，另见（2024）京0105民初99999号案。"
}'
```

## 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-anhao-recognition",
      "version": "0.1.3"
    }
  },
  "content": [
    {
      "text": "{\n  \"text\": \"（2025）浙0106民初18676号\",\n  \"caseFlag\": \"(2025)浙0106民初18676号\",\n  \"title\": \"何星谕;周慧;任鹏顺;赵蕴喆;葛维根房屋租赁合同纠纷一审民事判决书\",\n  \"court\": \"浙江省杭州市西湖区人民法院\",\n  \"lastInstanceDate\": \"2025.11.06\",\n  \"url\": \"https://www.pkulaw.com/pfnl/c7ed112b8012f81630d5f1414579bd53dd6bd0c068c3f656bdfb.html\",\n  \"start\": 2,\n  \"end\": 21,\n  \"gid\": \"c7ed112b8012f81630d5f1414579bd53dd6bd0c068c3f656bdfb\"\n}",
      "type": "text"
    },
    {
      "text": "{\n  \"text\": \"（2024）京0105民初99999号\",\n  \"caseFlag\": \"\",\n  \"title\": \"\",\n  \"court\": \"\",\n  \"lastInstanceDate\": \"\",\n  \"url\": \"\",\n  \"start\": 30,\n  \"end\": 49,\n  \"gid\": \"\"\n}",
      "type": "text"
    }
  ],
  "isError": false,
  "resultType": "complete",
  "structuredContent": {
    "result": [
      {
        "caseFlag": "(2025)浙0106民初18676号",
        "court": "浙江省杭州市西湖区人民法院",
        "end": 21,
        "gid": "c7ed112b8012f81630d5f1414579bd53dd6bd0c068c3f656bdfb",
        "lastInstanceDate": "2025.11.06",
        "start": 2,
        "text": "（2025）浙0106民初18676号",
        "title": "何星谕;周慧;任鹏顺;赵蕴喆;葛维根房屋租赁合同纠纷一审民事判决书",
        "url": "https://www.pkulaw.com/pfnl/c7ed112b8012f81630d5f1414579bd53dd6bd0c068c3f656bdfb.html"
      },
      {
        "caseFlag": "",
        "court": "",
        "end": 49,
        "gid": "",
        "lastInstanceDate": "",
        "start": 30,
        "text": "（2024）京0105民初99999号",
        "title": "",
        "url": ""
      }
    ]
  }
}
```

## 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 text 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-intelligent-legal-search-anhao-recognition/3f8f42c3-df41-41fa-927a-3258f17a10df/

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