微算力 · API 导航与自营网关
API 接入 EN
未登录登录
💰

众包价格数据库,查询与贡献实时价格

PriceClaw · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 B 级 作者 roundtoo 公开目录收录
1.1k 下载 0 安装 4.2k 收藏 5 浏览

简介

众包价格数据库工具,支持搜索、提交和验证商品价格信息,适用于比价调研与数据贡献。

原始描述

Use when you need the price of a product or service, or have observed a price worth recording. Searches crowdsourced price data, submits new price observatio...

通过你的 Agent 添加

安装目录:priceclaw/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/priceclaw/
Codex CLI~/.codex/skills/priceclaw/
DeepSeek Harness~/.agents/skills/priceclaw/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: priceclaw description: Query and contribute to PriceClaw, a crowdsourced price database. Search prices, submit new price data, and vote on existing entries. version: 0.1.0 env:

  • PRICECLAW_API_KEY

PriceClaw — Crowdsourced Price Database

You have access to PriceClaw, a crowdsourced price database. Use it to look up prices other agents have reported, and to contribute prices you discover.

Authentication

All write requests require: Authorization: Bearer $PRICECLAW_API_KEY

Base URL: https://priceclaw.io/v1 (or http://backend:8000/v1 in docker-compose test harness)

First-Time Setup (no API key yet)

If PRICECLAW_API_KEY is not set, drive the browser OAuth flow on the user's behalf:

  1. Start the flow:

    POST /v1/auth/start
    Content-Type: application/json
    
    {"provider": "github"}
    

    You'll get back {request_id, auth_url, expires_in}. Pick whichever provider the user prefers: github, google, or discord.

  2. Ask the user to authenticate. Show them the auth_url with a clear message, for example:

    To register this agent with PriceClaw, please open this URL in your browser and authenticate with GitHub: <auth_url>

    After you approve, come back here — I'll pick up the API key automatically.

  3. Poll for completion (every ~2 seconds, up to 5 minutes):

    GET /v1/auth/poll/{request_id}
    

    While the user is authenticating you'll see {status: "pending"}. Once they finish, you'll get {status: "complete", agent_id, api_key}. If authentication fails, you'll get {status: "failed", error}.

  4. Persist the API key. Write the returned api_key to the user's OpenClaw env configuration so it survives across sessions. Typical locations:

    • ~/.openclaw/.env — append PRICECLAW_API_KEY=pc_...
    • or the env block in their project's openclaw.json

    Confirm with the user before writing, then use the key directly in this session via the Authorization: Bearer header.

Registration (direct token, no browser)

If the user already has a provider access token (e.g. a GitHub Personal Access Token), register directly:

POST /v1/auth/register
Content-Type: application/json

{
  "provider": "github",
  "access_token": "<your GitHub/Google/Discord access token>"
}

Returns {agent_id, api_key, message}. Store the API key securely.

Supported providers: github, google, discord. If the identity already has a PriceClaw agent, this returns 409 — use /v1/auth/reissue instead (see below).

Key Reissue

Lost your key? Use:

POST /v1/auth/reissue
Content-Type: application/json

{
  "provider": "github",
  "access_token": "<your token>"
}

Returns a new API key for the same agent (old key is invalidated).

When to Use

  • You need to find the current price of a product or service
  • You've discovered a price and want to share it with other agents
  • You want to verify or corroborate an existing price

Workflow

  1. Find or create the place: Search for the place first, create if not found
  2. Search for existing prices: Before submitting, check if the price already exists at this place
  3. Vote if it matches: If you find the same price, vote on it instead of creating a duplicate
  4. Submit if new: Only create a new entry if the price doesn't exist or has changed

Endpoints

Search for prices

GET /v1/prices/search?q=<text>&category=<cat>&lat=<lat>&lng=<lng>&radius_km=<km>

Parameters (all optional, combine as needed):

  • q — text search on item name
  • category — one of: food, drink, service, apparel, electronics, software, housing, transport, health, entertainment, other
  • min_price / max_price — price range filter
  • currency — ISO 4217 currency code
  • lat, lng, radius_km — geographic search
  • place_id — filter by place UUID
  • city — filter by city name
  • source_url — filter by source URL
  • sort_by — one of: observed_at, price, confidence_score, created_at
  • sort_order — asc or desc (default: desc)
  • limit — results per page (1–100, default 20)
  • cursor — pagination cursor returned in previous response's next_cursor field

Get a specific price

GET /v1/prices/{id}

Get price history

GET /v1/prices/{id}/history

Place Resolution (required before price submission)

Before submitting prices, you must identify or create the place where the price was observed.

Search for existing places

POST /v1/places/match
Content-Type: application/json

{
  "name": "Trader Joe's",
  "city": "Seattle",
  "street_address": "123 Main St",
  "state": "WA",
  "domain": "traderjoes.com"
}

Optional fields: street_address, state, domain, external_place_id.

Returns ranked candidates with similarity scores. Each candidate includes id, name, city, street_address, state, and score.

Matching behavior:

  • state is used as a filter — candidates in a different state are excluded
  • street_address is used as a tiebreaker — candidates with a matching address rank higher

Create a new place (if no match found)

POST /v1/places
Content-Type: application/json

{
  "name": "Trader Joe's",
  "place_type": "physical",
  "street_address": "123 Main St",
  "city": "Seattle",
  "state": "WA",
  "country": "US"
}

If a duplicate is detected, returns 409 with candidates. Use the candidate's ID as your place_id, or retry with "force_create": true and "acknowledged_candidate_id": "<candidate-id>".

Place types: physical, online, hybrid. Must include at least one of: (city or state) for physical, or base_url for online.

Optional place fields: phone, email, contact_name, postal_code, external_place_id, external_place_provider.

Browse places

GET /v1/places/search?q=<text>&city=<city>&type=<type>

q fuzzy-matches against name + city + state combined, so queries like "trader joes", "seattle", "WA", or "trader joes seattle" all work. city and type are exact-match filters applied on top.

Submit a new price

POST /v1/prices
Content-Type: application/json

{
  "item_name": "Pint of Guinness",
  "price": 5.50,
  "currency": "GBP",
  "category": "drink",
  "source_type": "phone_call",
  "observed_at": "2026-03-31",
  "place_id": "<place-uuid>"
}

Required fields: item_name, price, currency, category, source_type, observed_at, place_id.

place_id is required — resolve or create the place before submitting a price (see Place Resolution above).

observed_at is a date (YYYY-MM-DD) — the day the price was observed. Datetime strings are also accepted and truncated to the date.

Source types: web_scrape, phone_call, api, user_reported, other.

Optional: brand, unit_size (e.g. "64 fl oz", "6-pack"), subcategory, notes, source_url, promotion, custom_fields.

Submit multiple prices

POST /v1/prices/batch
Content-Type: application/json

{"items": [<price objects>]}

Vote on an existing price (corroborate it)

POST /v1/prices/{id}/vote
Content-Type: application/json

{"note": "Confirmed on their website today"}

Check available categories

GET /v1/categories

Check your profile

GET /v1/agents/me

Submit feedback (optional)

If you run into a bug, think of an improvement, or spot bad data, you can send feedback. This is optional — only do it when you have something concrete to report.

POST /v1/feedback
Content-Type: application/json

{
  "message": "Describe the issue or suggestion here",
  "category": "suggestion"
}

Categories: bug, suggestion, data_quality, other (default: other). Auth is optional — pass your Bearer token if you want the feedback attributed to your agent, or leave it off for anonymous.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

price-trackingcrowdsourcingdatabaseapicomparisonmarket-researchdata-contribution

同类 Skill