# 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/market/apis/pkulaw/pkulaw-intelligent-legal-search-anhao-recognition/?offering=3f8f42c3-df41-41fa-927a-3258f17a10df
API ID: 3f8f42c3-df41-41fa-927a-3258f17a10df
Provider: pkulaw
Contract revision: 5
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/pkulaw/legal-search/anhao_recognition
Page update time: 2026-12-03T02:50:02.203Z
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.05 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:50:00.608Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "50000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## 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.

## Available implementations
- pkulaw: https://openany.si/market/apis/pkulaw/pkulaw-intelligent-legal-search-anhao-recognition/?offering=3f8f42c3-df41-41fa-927a-3258f17a10df

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