跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

apify-product-lookup

Fetch a real product's current price, stock, rating, or images from retailer pages over the Apify MCP server, and return them as typed fields rather than prose. Use when someone asks what a product costs right now, whether it is in stock, how it is rated, to compare a product across retailers, or to check a product URL they pasted. Also use when an agent would otherwise answer a product question from training data. Not for managing your own store's catalog, not for payments, and not for questions answerable without live retailer data.

AI 与智能体3.6kplugins/all-skills/skills/apify-product-lookup/SKILL.md

安装

把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。

读取 https://funcoding.ai/skills/davepoon/buildwithclaude/apify-product-lookup/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

Apify product lookup

A model answers product questions from training data that was fixed months ago, or by reading a page as prose with no product fields. This skill routes the question to a hosted Actor that reads retailer pages on request and returns structured records: price, currency, stock, rating, image URLs, and a link.

Written by a product marketing manager at Apify. It calls E-commerce Scraping Tool, a paid first-party Apify Actor, so weigh the framing accordingly. Everything below is what testing against the live Actor returned, including where it does not work.

Setup

The MCP endpoint is https://mcp.apify.com. Appending ?tools=apify/e-commerce-scraping-tool narrows the server to this one Actor, which makes tool selection more reliable when product data is the only job. Authentication is OAuth on first use for interactive clients, or a bearer token for unattended ones. An Apify account is required and the Actor is paid, billed per run started plus per product returned.

Pick the input before calling

The questionInput to send
About a specific page the user gave youdetailsUrls: [{"url": "..."}]
"Find me an X under $Y" with no URLkeyword plus marketplaces
"Compare X across stores"keyword plus several marketplaces

Always send maxProductResults and additionalProperties: true. Without the second, stock, rating, list price and identifiers are all missing, because they are nested there rather than at the top level.

The call is two steps, sometimes three

  1. Call apify--e-commerce-scraping-tool (two hyphens, not a slash). It returns run metadata and a datasetId. It does not return products.
  2. Check status. If it is not SUCCEEDED, call get-actor-run with the runId and a waitSecs until it is. The Actor tool returns when its own wait window elapses, not when the run finishes, so RUNNING is a normal answer and the dataset holds nothing at that moment.
  3. Call get-dataset-items with the datasetId, a limit, and fields.

Two failures live here. Stopping after step 1 returns a result that reads like success and holds no product data. Skipping step 2 fetches an empty dataset and reports the product as not found, intermittently, depending only on how fast the retailer answered.

Project with fields, and read them defensively

The full record is large: one Amazon product measured about 88 KB across 142 fields, most of it marketing content and review text. Pass fields in dot notation, naming only what the question needs.

Projected output comes back flat. The dots stay in the key names, so it is item["offers.price"], not item["offers"]["price"]. Walking the nested path against a projected response finds nothing, which is indistinguishable from the retailer not reporting the field.

The four differences that bite hardest:

  • offers.price is a number on some retailers and a string on others.
  • Currency is offers.priceCurrency on some and offers.currency on others, and the value may be a symbol or an ISO code.
  • Stock and rating live under additionalProperties, as inStock and stars, not at the top level. Top-level rating was null on a product whose stars was 4.2.
  • brand frequently carries marketing text such as Visit the Sony Store rather than a brand name.

Answer honestly

  • Say when the data was read. The point of the call is that the answer is current, so make that visible.
  • Never claim a product is unavailable because stock was absent. Many retailers do not report it. Absent means unknown.
  • If every field comes back empty, suspect the URL before the retailer. An unresolvable URL returns an item with no fields rather than an error.
  • Quote the source URL so the user can check it.

Scope and limits

  • Latency is high and unstable. Measured end to end over MCP across twenty questions: 14.7s fastest, 24.1s median, 95.8s slowest. Treat a runtime call as verification before the user acts, not as something to put inside every turn.
  • The marketplaces enum arrives truncated over MCP, because the server caps how many characters of a long enum it forwards. Measured on 2026-08-27: of 249 values, 122 fit and 127 were dropped. A validation error naming marketplaces means the retailer cannot be named in a keyword search on this connection, not that it is unsupported. Use detailsUrls, which takes arbitrary URLs and is unaffected.
  • Field coverage is a property of the retailer, not the tool. On one measured run, Amazon returned 44 keys under additionalProperties and two other retailers returned 4, with stock and rating absent on every record from one of them. There is no unified schema to rely on.
  • Cost. Cap with maxProductResults. Prefer one call with several URLs or marketplaces over several calls, and never re-run to check a result you already have.
  • additionalProperties can reach roughly 100 KB for one product. Never paste it into a reply.
  • A rating or stars of 0 means absent, not a zero-star product.

相似的 Skill

brand-guidelines
anthropics/skills180k

brand-guidelines

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

AI 与智能体

internal-comms
anthropics/skills180k

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

AI 与智能体

template-skill
anthropics/skills180k

template-skill

Replace with description of the skill and when Claude should use it.

AI 与智能体

mcp-builder
anthropics/skills180k

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

AI 与智能体

algorithmic-art
anthropics/skills180k

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

AI 与智能体

academy-guide
anthropics/skills180k

academy-guide

Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

AI 与智能体