← 返回 Skills 市场
sprintmint

cpbox-news-search

作者 springmint · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
132
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cpbox-news-search
功能描述
USE FOR news search. Returns news articles with title, URL, description, age, thumbnail. Supports freshness and date range filtering, SafeSearch filter and G...
使用说明 (SKILL.md)

News Search

Paid News Search proxy via x402 pay-per-use (HTTP 402).

Prerequisites: This skill requires x402-payment. Complete the setup steps before first use.

Security: Documentation only — no executable code or credentials. Wallet/keys stay on your machine; never stored here.

Service URLs

Role Domain
API Provider https://www.cpbox.io
Facilitator https://www.cppay.finance

Endpoint (Agent Interface)

GET  /api/x402/news-search
POST /api/x402/news-search/post

Payment Flow (x402 Protocol)

  1. First request (no PAYMENT-SIGNATURE) -> 402 Payment Required with requirements JSON
  2. Client signs (EIP-712) -> PAYMENT-SIGNATURE
  3. Retry with PAYMENT-SIGNATURE -> Server settles and returns JSON

With @springmint/x402-payment or x402-sdk-go, payment is automatic.

Quick Start (cURL)

Basic Search

curl -s "https://www.cpbox.io/api/x402/news-search?q=space+exploration" \
  -H "Accept: application/json"

Recent News (Past 24 Hours)

curl -s "https://www.cpbox.io/api/x402/news-search" \
  -H "Accept: application/json" \
  -G \
  --data-urlencode "q=cybersecurity" \
  --data-urlencode "country=US" \
  --data-urlencode "freshness=pd" \
  --data-urlencode "count=20"

Date Range Filter

curl -s "https://www.cpbox.io/api/x402/news-search" \
  -H "Accept: application/json" \
  -G \
  --data-urlencode "q=climate summit" \
  --data-urlencode "freshness=2026-01-01to2026-01-31"

Using with x402-payment

npx @springmint/x402-payment \
  --url https://www.cpbox.io/api/x402/news-search \
  --method GET

Parameters

Parameter Type Required Default Description
q string Yes - Search query (1-400 chars, max 50 words)
country string No US Search country (2-letter country code or ALL)
search_lang string No en Language preference (2+ char language code)
ui_lang string No en-US UI language (e.g., "en-US")
count int No 20 Number of results (1-50)
offset int No 0 Page offset (0-9)
safesearch string No strict Adult content filter (off/moderate/strict)
freshness string No - Time filter (pd/pw/pm/py or date range)
spellcheck bool No true Auto-correct query
extra_snippets bool No - Up to 5 additional excerpts per result
goggles string or array No - Custom ranking filter (URL or inline; repeat param for multiple)
operators bool No true Apply search operators
include_fetch_metadata bool No false Include fetch timestamps in results

Freshness Values

Value Description
pd Past day (24 hours) - ideal for breaking news
pw Past week (7 days)
pm Past month (31 days)
py Past year (365 days)
YYYY-MM-DDtoYYYY-MM-DD Custom date range

Response Format

{
  "type": "news",
  "query": {
    "original": "space exploration"
  },
  "results": [
    {
      "type": "news_result",
      "title": "New Developments in Space Exploration",
      "url": "https://news.example.com/space-exploration",
      "description": "Recent missions have advanced our understanding of...",
      "age": "2 hours ago",
      "page_age": "2026-01-15T14:30:00",
      "page_fetched": "2026-01-15T15:00:00Z",
      "meta_url": {
        "scheme": "https",
        "netloc": "news.example.com",
        "hostname": "news.example.com",
        "favicon": "https://imgs.search.provider/favicon/news.example.com",
        "path": "/space-exploration"
      },
      "thumbnail": {
        "src": "https://imgs.search.provider/..."
      }
    }
  ]
}

Response Fields

Field Type Description
type string Always "news"
query.original string The original search query
query.altered string? Spellcheck-corrected query (if changed)
query.cleaned string? Cleaned/normalized query from spellchecker
query.spellcheck_off bool? Whether spellcheck was disabled
query.show_strict_warning bool? True if strict safesearch blocked results
query.search_operators object? Applied search operators
query.search_operators.applied bool Whether operators were applied
query.search_operators.cleaned_query string? Query after operator processing
query.search_operators.sites list[str]? Domains from site: operators
results[].type string Always "news_result"
results[].title string Article title
results[].url string Source URL of the article
results[].description string? Article description/summary
results[].age string? Human-readable age (e.g. "2 hours ago")
results[].page_age string? Publication date from source (ISO datetime)
results[].page_fetched string? When page was last fetched (ISO datetime)
results[].fetched_content_timestamp int? Fetch timestamp (only with include_fetch_metadata=true)
results[].meta_url.scheme string? URL protocol scheme
results[].meta_url.netloc string? Network location
results[].meta_url.hostname string? Lowercased domain name
results[].meta_url.favicon string? Favicon URL
results[].meta_url.path string? URL path
results[].thumbnail.src string Served thumbnail URL
results[].thumbnail.original string? Original thumbnail URL
results[].extra_snippets list[str]? Up to 5 additional excerpts per result

Goggles (Custom Ranking)

Goggles let you re-rank news results — boost trusted outlets or suppress unwanted sources.

Method Example
Hosted --data-urlencode "goggles=https://\x3Chosted-goggle-url>"
Inline `--data-urlencode 'goggles=$discard\
$site=example.com'`

Hosted goggles should be hosted on a public URL and include ! name:, ! description:, ! author: headers. Inline rules need no registration.

Syntax: $boost=N / $downrank=N (1–10), $discard, $site=example.com. Combine with commas: $site=example.com,boost=3. Separate rules with \ (%0A).

Allow list: $discard\ $site=docs.python.org\ $site=developer.mozilla.orgBlock list: $discard,site=pinterest.com\ $discard,site=quora.com

Resources: See your upstream provider's Goggles documentation.

Search Operators

Use search operators to refine results:

  • site:local-paper.com - Limit to specific news site
  • "exact phrase" - Match exact phrase
  • -exclude - Exclude term

Set operators=false to disable operator parsing.

Use Cases

  • Breaking news monitoring: Use freshness=pd for the most recent articles on a topic.
  • Custom news feeds with Goggles: Boost trusted sources and discard other sources.
  • Historical news research: Use freshness=YYYY-MM-DDtoYYYY-MM-DD to find articles from specific time periods.
  • Multilingual news: Combine country, search_lang, and ui_lang for cross-locale results.
  • Data pipelines: Set include_fetch_metadata=true for fetched_content_timestamp on each result.

Notes

  • SafeSearch: Defaults to strict
  • Pagination: Use offset (0-9) with count
  • Extra snippets: Up to 5 additional excerpts when extra_snippets=true
安全使用建议
This skill appears internally consistent: it documents how to call a paid news API and how to complete payment. Before installing/using it, verify the legitimacy of the domains (https://www.cpbox.io and https://www.cppay.finance) and the GitHub prerequisites link, confirm pricing and refund policy, and ensure any private keys/wallets used for EIP‑712 signing remain under your control (don’t paste private keys into untrusted tools). If you plan to automate payment signing, review the x402 client code (from an official source) and run it in a trusted environment. If you need higher assurance, ask the publisher for a homepage, repository, or contact to validate the package provenance.
功能分析
Type: OpenClaw Skill Name: cpbox-news-search Version: 1.0.0 The skill bundle provides documentation and instructions for an AI agent to interact with a news search API hosted at cpbox.io using the x402 (Payment Required) protocol. It contains no executable code; instead, it defines API parameters, response formats, and usage examples via cURL and the @springmint/x402-payment utility. The instructions are consistent with the stated purpose of news retrieval and do not contain any evidence of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
The name/description (news search) matches the instructions: HTTP endpoints on cpbox.io returning news results and filters. The payment-related references (x402) are consistent with a pay-per-use API.
Instruction Scope
SKILL.md is documentation-only and instructs the agent to call cpbox.io endpoints and to follow an EIP-712 signing flow (x402). It does not instruct reading unrelated local files or env vars, but it does rely on a client-side payment/signing step (wallet/keys) which the user must manage locally.
Install Mechanism
No install spec or bundled code — instruction-only. References to running `npx @springmint/x402-payment` are documentation for the user rather than an installer included in the skill.
Credentials
The skill declares no required environment variables, credentials, or config paths. The only credential-like concern is the payment signature (EIP-712), which the docs state should remain on the user's machine; this is proportionate to a paid API.
Persistence & Privilege
always:false and no install means the skill does not request persistent or elevated platform privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cpbox-news-search
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cpbox-news-search 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial publish
元数据
Slug cpbox-news-search
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

cpbox-news-search 是什么?

USE FOR news search. Returns news articles with title, URL, description, age, thumbnail. Supports freshness and date range filtering, SafeSearch filter and G... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 132 次。

如何安装 cpbox-news-search?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cpbox-news-search」即可一键安装,无需额外配置。

cpbox-news-search 是免费的吗?

是的,cpbox-news-search 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

cpbox-news-search 支持哪些平台?

cpbox-news-search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 cpbox-news-search?

由 springmint(@sprintmint)开发并维护,当前版本 v1.0.0。

💬 留言讨论