Xpersona
P

patent-search

CLAWHUB · Unverified

Patent search and analytics via 9235 API (search, detail, claims, company portrait, Excel export).

62
Rank
84
Safety
1.8k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s170a3ah7gm9t0wf61hwy7e2y583qjf5:patent-search
  1. Install using `clawhub skill install s170a3ah7gm9t0wf61hwy7e2y583qjf5:patent-search` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/windinwing/patent-search before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-windinwing-patent-search/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

149,816 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: patent-search
description: Patent search and analytics via 9235 API (search, detail, claims, company portrait, Excel export).
version: 1.0.10
metadata:
  openclaw:
    emoji: "📜"
    homepage: https://www.9235.net/api/open
    primaryEnv: PATENT_API_TOKEN
    requires:
      env:
        - PATENT_API_TOKEN
      bins:
        - python3
    envVars:
      - name: PATENT_API_TOKEN
        required: true
        description: 9235 patent search API token from https://www.9235.net/api/open
      - name: PATENT_API_BASE_URL
        required: false
        description: Optional API base URL (default https://www.9235.net/api)
    install:
      - kind: uv
        package: requests
---

# 专利检索 · Patent Search

## 概述 | Overview

| | |
|---|---|
| **中文** | 对接 [9235](https://www.9235.net/api) 专利 API:检索、详情、权利要求、说明书、法律信息、引用/相似专利、**企业画像**(工商全称)、统计与 Excel 导出;数据范围 `cn` / `all` / `us` / `jp` / `kr` / `tw` / `wo` / `ep`。 |
| **English** | [9235](https://www.9235.net/api) patent API client: search, detail, claims, description, legal events, citations, similar patents, **company portrait**, analytics, Excel export; scopes `cn`, `all`, `us`, `jp`, `kr`, `tw`, `wo`, `ep`. |

**凭证 Credentials**: `PATENT_API_TOKEN` 或 OpenClaw `skills.entries.patent-search.apiKey` · 申请 <https://www.9235.net/api/open>

用户可说:「检索大疆无人机专利」「全球检索锂电池」「华为技术有限公司企业画像」「导出当前检索 Excel」。

---

## 功能概述

- **专利搜索**: 根据关键词、申请人、发明人、IPC分类等条件搜索专利
- **专利详情**: 查看专利的完整信息,包括摘要、申请人、发明人、法律状态等
- **权利要求**: 查看专利的权利要求书
- **说明书**: 查看专利的说明书全文
- **法律信息**: 查看专利的法律事务信息
- **引用分析**: 查看专利的引用和被引用情况
- **相似专利**: 查找相似专利
- **企业画像**: 分析企业的专利布局和竞争力
- **文件下载**: 下载专利PDF全文和摘要附图
- **统计分析**: 专利维度统计分析
- **导出 Excel**: `export` 导出检索列表;`export_analysis` 导出统计分布(需 dimension)
- **著作权搜索**: 软件著作权和作品著作权搜索
- **商标搜索**: 商标信息搜索

## 安装

### 自动安装
```bash
# 进入技能目录(本仓库 patents/patent-search)
cd /path/to/patents/patent-search

# 运行安装脚本
python3 setup.py
```

### 手动安装
```bash
# 1. 安装依赖
pip3 install requests --break-system-packages

# 2. 设置文件权限
chmod +x patent_api.py main.py setup.py

# 3. 创建配置文件
cp config.example.json config.json
# 编辑config.json,设置您的API token
```

## 配置

### 配置文件
在技能目录下创建 `config.json` 文件(或复制 `config.example.json`):

```json
{
  "api_base_url": "https://www.9235.net/api",
  "token": "YOUR_API_TOKEN_HERE",
  "default_data_scope": "cn",
  "default_page_size": 10,
  "max_records": 1000,
  "timeout_seconds": 30,
  "download_dir": "./downloads",
  "enable_cache": false,
  "cache_ttl_seconds": 3600,
  "retry_times": 3,
  "retry_delay_seconds": 1
}
```

### 环境变量配置
```bash
export PATENT_API_TOKEN="your_token_here"
export PATENT_API_BASE_URL="https://www.9235.net/api"
export PATENT_DEFAULT_SCOPE="cn"
export PATENT_DOWNLOAD_DIR="./downloads"
```

### 获取API Token
1. 访问 https://www.9235.net/api/open
2. 申请API访问权限
3. 获取token后填入配置文件

## 使用方法

### 运行模式

**交互模式:**
```bash
python3 main.py
# 然后输入命令,如: search 无人机
```

**命令行模式:**
```bash
python3 main.py <命令> <参数>
```

### 1. 搜索专利

**基本搜索:**
```bash
/search 无人机
/search 石墨烯
/search "新能源汽车"
```

**高级搜索:**

README.md

# patent-search · 专利检索

[![OpenClaw Skill](https://img.shields.io/badge/OpenClaw-Skill-blue.svg)](https://clawhub.ai)
[![ClawHub](https://img.shields.io/badge/ClawHub-Publish-orange.svg)](https://clawhub.ai)

[English](#english) · [中文](#中文)

---

## 中文

对接 **9235 专利检索 API**(`https://www.9235.net/api`),供 OpenClaw / Agent 做专利检索与分析。

### 主要能力

- 关键词 / 字段 / 布尔检索式搜索(支持 `scope`: cn、all、us、jp、kr、tw、wo、ep)
- 专利详情、权利要求、说明书、法律事务、引用与被引用、相似专利
- 企业专利画像(工商注册全称,如「华为技术有限公司」)
- 多维度统计、检索结果与统计 **Excel 导出**
- 软件/作品著作权、商标检索

### 配置

| 方式 | 说明 |
|------|------|
| 环境变量 | `export PATENT_API_TOKEN='你的token'` |
| OpenClaw | `openclaw config set skills.entries.patent-search.apiKey '你的token'` |
| 本地文件 | 复制 `config.example.json` → `config.json`(勿提交真实 token) |

申请 Token:<https://www.9235.net/api/open>

### 依赖

- Python 3.8+
- `pip install requests`

### CLI 示例

```bash
python3 main.py search 锂电池
python3 main.py detail CN112968234A
python3 main.py company 华为技术有限公司
python3 main.py analysis 人工智能 --dimension ipc --scope all
```

### 合规

见 [COMPLIANCE.md](COMPLIANCE.md)。发布包请勿包含 `config.json` 或真实密钥。

---

## English

Patent **search and analytics** via the [9235](https://www.9235.net) API for OpenClaw-compatible agents.

### Features

- Boolean / fielded search with data scopes: `cn`, `all`, `us`, `jp`, `kr`, `tw`, `wo`, `ep`
- Detail, claims, description, legal events, citations, similar patents
- Company patent portrait (full legal entity name)
- Analytics and **Excel export** for result sets and distributions
- Software/work copyright and trademark lookup

### Configuration

| Method | Notes |
|--------|--------|
| Env | `export PATENT_API_TOKEN='your-token'` |
| OpenClaw | `skills.entries.patent-search.apiKey` |
| Local file | Copy `config.example.json` → `config.json` (never commit secrets) |

Get a token: <https://www.9235.net/api/open>

### Requirements

- Python 3.8+
- `pip install requests`

### CLI examples

```bash
python3 main.py search "lithium battery"
python3 main.py detail CN112968234A
python3 main.py company "Huawei Technologies Co., Ltd."
```

See [COMPLIANCE.md](COMPLIANCE.md) for security disclosure.

_meta.json

{
  "ownerId": "kn75kk4f194v78mdce4gz4x6v1832rbq",
  "slug": "patent-search",
  "version": "1.0.10",
  "publishedAt": 1779735878952
}

CHANGELOG.md

# Changelog — patent-search

## 1.0.10

- Streamlined codebase: removed 8 scripts (trend, analysis, test, config) for a lighter core.
- Added Excel export capability via new `excel_export.py`.
- Introduced `export_deps.py` for export-related dependencies.
- Added `.gitignore` and LICENSE for improved project structure and clarity.
- Updated documentation with a more concise, tabular overview, usage examples, configuration, and troubleshooting.
- Clarified required credentials and configuration methods for 9235 API integration.

## 1.0.0

- Initial release: search, detail, claims, description, legal events, citations, similar patents, company portrait, analytics.

COMPLIANCE.md

# 合规与安全披露

本文档供 **OpenClaw / ClawHub 审核**、企业安全评审及终端用户知情使用。若技能清单支持外链说明,可将本文件路径或摘要填入「安全 / 权限 / 数据」相关字段。

**注册表 / 元数据**:`SKILL.md` 文件顶部包含 `credentials_required`、`credential_env_vars`、`openclaw_skill_api_key` 等 YAML 字段,并与短描述(`description`)一致声明:**必须**提供专利 API 凭证(`PATENT_API_TOKEN` 和/或 OpenClaw `skills.entries.patent-search.apiKey`),**不是**「无需环境变量」类技能。

**SKILL.md 与 Unicode**:仓库内该文件以 UTF-8(NFC)保存;维护时避免粘贴自富文本来源的零宽字符与双向文本控制符。发布前可用 `od -c` 或编辑器「显示不可见字符」复核。

---

## 中文

### 1. 凭证与本地数据

| 来源 | 用途 | 是否由本技能直接读取磁盘上的 OpenClaw 配置文件 |
|------|------|-----------------------------------------------|
| 环境变量 `PATENT_API_TOKEN` | 专利 API 鉴权 | 否(仅进程环境) |
| OpenClaw 配置项 `skills.entries.patent-search.apiKey` | 与上项等价,由用户在宿主中配置 | **否**:主逻辑与 `patent_token.py` 仅在用户本机已安装 CLI 时,通过子进程执行 `openclaw config get skills.entries.patent-search.apiKey` 获取;**不**打开、不解析 `~/.openclaw/openclaw.json`(或其它主目录路径下的配置文件) |
| 技能目录内 `config.json`(可选,由用户从 `config.example.json` 复制) | 本地开发或离线默认值 | 仅读取**技能包内**该文件;**禁止**在仓库或发布包中提交真实 Token |

### 2. 网络与第三方服务

- **对外请求域名**:`www.9235.net`(HTTPS,默认基路径 `https://www.9235.net/api`)。
- **传输内容**:为实现检索、详情、分析、下载等功能,会向上述服务发送检索式、专利公开号/申请号、分页与筛选参数等;**不**将用户的 OpenClaw 主配置文件内容上传至第三方。
- **第三方条款**:使用专利数据服务须遵守 [9235 开放平台](https://www.9235.net/api/open) 及服务商的用户协议与隐私政策。

### 3. 环境变量与宿主注入

在 OpenClaw 运行时,宿主可能注入 `OPENCLAW_SKILL_NAME`、`OPENCLAW_SKILL_METADATA`、`OPENCLAW_SKILL_CONFIG` 等变量。本技能**不因诊断目的在标准路径下打印这些变量的明文内容**。

### 4. 仓库与发布物要求(发布者承诺)

- 不在 Git 仓库、技能包、示例配置中存放**真实** API Token;`config.json` 已列入 `.gitignore`,模板以 `config.example.json` 为准。
- `SKILL.md` 正文不包含零宽字符、双向文本控制符等易被用于提示注入的隐蔽字符(发布前建议对打包产物做相同校验)。

### 5. 用户责任

- 用户自行向 9235 申请 Token,并妥善保管;泄露后应立即在服务商侧轮换。
- 在共享日志或截图前,应对 `PATENT_*`、`OPENCLAW_*` 等环境变量与命令行中的 Token 脱敏。

---

## English (for marketplace / security review)

**Registry metadata**: The top of `SKILL.md` declares `credentials_required`, `credential_env_vars`, and `openclaw_skill_api_key`, consistent with the short `description`: a patent API credential is **required** (`PATENT_API_TOKEN` and/or OpenClaw `skills.entries.patent-search.apiKey`). This skill is **not** “no environment variables required.”

**SKILL.md & Unicode**: The file is UTF-8 (NFC). Avoid zero-width or bidi-override characters from rich-text paste; verify with a hex-capable editor on release artifacts.

### 1. Credentials and local data

| Source | Purpose | Direct filesystem read of OpenClaw JSON config? |
|--------|---------|---------------------------------------------------|
| `PATENT_API_TOKEN` | Patent API authentication | No (environment only) |
| OpenClaw key `skills.entries.patent-search.apiKey` | Same as above, host-managed | **No**: resolution uses the `openclaw config get skills.entries.patent-search.apiKey` **CLI** when available; the skill **does not** open or parse `~/.openclaw/openclaw.json` (or other dotfiles) directly |
| Optional `config.json` in the skill directory (copied from `config.example.json`) | Local defaults / development | Reads **only** that file inside the skill folder

Sponsored

Ads related to patent-search and adjacent AI workflows.