← 返回
未分类 中文

cpbox-images-search

USE FOR image search. Returns images with title, source URL, thumbnail. Supports SafeSearch filter. Up to 200 results.
用于图片搜索,返回图片标题、来源URL和缩略图,支持 SafeSearch 过滤,最多返回 200 条结果。
sprintmint sprintmint 来源
未分类 clawhub v1.0.0 1 版本 99827 Key: 无需
★ 2
Stars
📥 537
下载
💾 0
安装
1
版本
#latest

概述

Images Search

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

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

Service URLs

RoleDomain
--------------
API Providerhttps://www.cpbox.io
Facilitatorhttps://www.cppay.finance

Endpoint (Agent Interface)

GET /api/x402/images-search

Payment Flow (x402 Protocol)

  1. First request -> 402 Payment Required with requirements JSON
  2. Sign & retry with PAYMENT-SIGNATURE -> result 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/images-search?q=mountain+landscape" \
  -H "Accept: application/json"

With Parameters

curl -s "https://www.cpbox.io/api/x402/images-search" \
  -H "Accept: application/json" \
  -G \
  --data-urlencode "q=northern lights photography" \
  --data-urlencode "country=US" \
  --data-urlencode "search_lang=en" \
  --data-urlencode "count=20" \
  --data-urlencode "safesearch=strict"

Using with x402-payment

npx @springmint/x402-payment \
  --url "https://www.cpbox.io/api/x402/images-search?q=mountain+landscape&count=20" \
  --method GET

Parameters

ParameterTypeRequiredDefaultDescription
----------
qstringYes-Search query (1-400 chars, max 50 words)
countrystringNoUSSearch country (2-letter country code or ALL)
search_langstringNoen2+ char language code
countintNo50Results to return (1-200)
safesearchstringNostrictoff or strict (no moderate for images)
spellcheckboolNotrueAuto-correct query; corrected query in query.altered

Response Format

{
  "type": "images",
  "query": {
    "original": "mountain landscape",
    "altered": null,
    "spellcheck_off": false,
    "show_strict_warning": false
  },
  "results": [
    {
      "type": "image_result",
      "title": "Beautiful Mountain Landscape",
      "url": "https://example.com/mountain-photo",
      "source": "example.com",
      "page_fetched": "2025-09-15T10:30:00Z",
      "thumbnail": {
        "src": "https://imgs.search.provider/...",
        "width": 200,
        "height": 150
      },
      "properties": {
        "url": "https://example.com/images/mountain.jpg",
        "placeholder": "https://imgs.search.provider/placeholder/...",
        "width": 1920,
        "height": 1080
      },
      "meta_url": {
        "scheme": "https",
        "netloc": "example.com",
        "hostname": "example.com",
        "favicon": "https://imgs.search.provider/favicon/...",
        "path": "/mountain-photo"
      },
      "confidence": "high"
    }
  ],
  "extra": {
    "might_be_offensive": false
  }
}

Response Fields

FieldTypeDescription
------
typestringAlways "images"
query.originalstringOriginal query
query.alteredstring?Spellchecked query (null if no correction)
query.spellcheck_offbool?Whether spellcheck was disabled
query.show_strict_warningbool?True if strict safesearch hid relevant results
results[]arrayList of image results
results[].typestringAlways "image_result"
results[].titlestring?Image title
results[].urlstring?Page URL where image was found
results[].sourcestring?Source domain
results[].page_fetchedstring?ISO datetime of last page crawl
results[].thumbnail.srcstring?Proxy-served thumbnail URL (~500px width)
results[].thumbnail.widthint?Thumbnail width
results[].thumbnail.heightint?Thumbnail height
results[].properties.urlstring?Original full-size image URL
results[].properties.placeholderstring?Low-res placeholder URL (proxy-served)
results[].properties.widthint?Original image width (may be null)
results[].properties.heightint?Original image height (may be null)
results[].meta_url.schemestring?URL protocol scheme
results[].meta_url.netlocstring?Network location
results[].meta_url.hostnamestring?Lowercased domain
results[].meta_url.faviconstring?Favicon URL
results[].meta_url.pathstring?URL path
results[].confidencestring?Relevance: low, medium, or high
extra.might_be_offensiveboolWhether results may contain offensive content

Use Cases

  • Visual content discovery: Build image galleries, mood boards, or visual research tools. Use count=200 for comprehensive coverage. Prefer over web-search when you need image-specific metadata (dimensions, thumbnails).
  • Content enrichment: Add relevant images to articles or generated content. Use country and search_lang to target your audience's locale.
  • Safe image retrieval: Default safesearch=strict ensures family-friendly results out of the box. Only two modes (off/strict) — no moderate option, unlike web/video/news search.
  • High-volume batch retrieval: Up to 200 images per request (vs 20 for web, 50 for videos/news). Ideal for bulk image sourcing or visual analysis pipelines.

Notes

  • SafeSearch: Defaults to strict for images (stricter than web search)
  • High volume: Can return up to 200 results per request
  • Thumbnails: Proxy-served for user privacy (500px width). Use properties.url for original full-resolution image.
  • Dimensions: properties.width/height may be missing for some images
  • Placeholder: properties.placeholder is a low-res URL (not inline base64) useful for progressive loading UX

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 06:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

Summarize

paudyyin
智能摘要工具,自动为长文本、文档、网页生成摘要,提取要点与关键词,支持自定义摘要长度。
★ 957 📥 517,903
dev-programming

cpbox-batch-balance

sprintmint
当用户询问批量余额查询或多调用(multicall)余额等问题时,指导其使用批量EVM地址余额查询API(/api/x402/batch-balance)。
★ 2 📥 678
knowledge-management

web-tools-guide

user_ec205dbb
MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_se
★ 65 📥 158,420