Findcheap for LangChain
Add price comparison to a LangChain agent
Findcheap for LangChain agents: where a product is sold for less. Five tools over the Findcheap API, each a thin wrapper around the findcheap client. Python 3.10+.
An account is free: 1,000 credits a month, no card.
pip install langchain-findcheapSet it up
pip install langchain-findcheap
export FINDCHEAP_API_KEY=fc_live_... # from https://findcheap.ai/signin?next=/dashboard/keysThe key is free: create one in your dashboard.
Use it with an agent
from langchain.agents import create_agent
from langchain_findcheap import FindcheapToolkit
agent = create_agent("anthropic:claude-sonnet-5-5", tools=FindcheapToolkit().get_tools())
result = agent.invoke({"messages": [{"role": "user", "content":
"Find where this is available for a lower price: https://findcheap.ai/sample-product"}]})
print(result["messages"][-1].content)Any chat model that calls tools works. This example also needs pip install langchain langchain-anthropic and an ANTHROPIC_API_KEY.
The five tools
| Tool | Class | Credits | What it does |
|---|---|---|---|
| find_cheaper | FindcheapFindCheaper | 10 | Finds where the product on a page is sold for less: the same product and acceptable equivalents, cheapest first. Up to 60 seconds. |
| search_products | FindcheapSearchProducts | 10 | Finds listings that match a description in words, or a photo’s link, cheapest first. |
| read_product_page | FindcheapReadProductPage | 1 | Reads what a page sells (title, price, brand, stock), without a search. |
| resolve_listing | FindcheapResolveListing | 1 when a link came back | Gives the merchant’s link for a card that came with a resolve_id. |
| submit_feedback | FindcheapSubmitFeedback | 0 | Reports how a search went. The first report on a search gives 1 credit back. |
They carry the names and the descriptions of the tools of Findcheap’s MCP server, so an answer’s next_steps name these tools and their fields.
find_cheaper, read_product_page and search_products require objective: what the shopper wants, in one sentence. An agent writes it on every call.
LangChain’s documentation lists Findcheap on its page of all providers and FindcheapToolkit in its table of tools and toolkits.
Choose the tools an agent gets
submit_feedback is the one tool that writes: it sends Findcheap a report on a search. To leave it out, build the list yourself:
from langchain_findcheap import FindcheapFindCheaper, FindcheapReadProductPage
tools = [FindcheapFindCheaper(), FindcheapReadProductPage()]Call a tool yourself
from langchain_findcheap import FindcheapFindCheaper
answer = FindcheapFindCheaper().invoke({"url": "https://findcheap.ai/sample-product", "max_results": 3,
"objective": "These shoes for less, new."})
print(answer["product"]["title"], answer["page_is_cheapest"])
for card in answer["same_product"]:
print(card["price"], card["currency"], card["retailer"], card["url"] or card["resolve_id"])A tool answers what the API answers, untouched: every field is in the API reference.
A call the API refuses (a page that is not a product page, credits used up, a rate limit) reaches the model as the tool’s answer, in the API’s own words, so the agent can act on it; it does not stop the agent.
Each tool and the toolkit take api_key= (in place of the environment variable), timeout= (seconds, for every call) and base_url=.
Countries and stores
Every call runs in a market, the country where the shopper is located.
| Market | Currency | Marketplaces find_cheaper compares against |
|---|---|---|
| US | USD | Amazon, Walmart, eBay, AliExpress, Shein, and other sites |
| CA | CAD | Amazon, AliExpress, other sites |
| AU | AUD | Amazon, eBay, AliExpress, other sites |
| IN | INR | Amazon, Flipkart, other sites |
| GLOBAL | USD | Amazon, eBay, AliExpress, other sites; the page is fetched from the store’s own country when its address names one |
Benchmark results
PriceBench N=100 human-verified results: savings capture on the equivalent-product track, median search latency, and cost per search.
| Agent | Savings capture | Median search latency | Cost per search |
|---|---|---|---|
| Findcheap | 92.8% | 15.6s | $0.03 |
| GPT-6 Astra | 43.9% | 87.5s | $1.32 |
| Perplexity | 34.1% | 74.7s | $0.38 |
| Claude Opus 5 | 20.2% | 232s | $1.41 |
| Gemini 3.1 Pro | 10.7% | 80s | $0.08 |
PriceBench is an open source benchmark developed by Findcheap, to help fill the need for multimodal product search evals: github.com/llmbender/pricebench
What it costs
Free: 1,000 credits a month, no payment method. A search costs 10 credits. No overage charges.
| Plan | Price | Credits a month |
|---|---|---|
| Free | $0 | 1,000 (100 searches) |
| Developer | $19/month | 5,000 (500 searches) |
| Startup | $99/month | 40,000 (4,000 searches) |
| Growth | $499/month | 250,000 (25,000 searches) |
FAQ
- Which package do I install?
- pip install langchain-findcheap. Python 3.10+.
- Do I need an API key?
- Yes, in the environment variable FINDCHEAP_API_KEY. An account is free: 1,000 credits a month, no card.
- Which chat models does it work with?
- Any chat model that calls tools works.
- Is Findcheap in LangChain’s documentation?
- Yes. Findcheap is on the page of all providers in LangChain’s Python documentation, and FindcheapToolkit is in its table of tools and toolkits.
- Does a refused call stop my agent?
- No. A call the API refuses (a page that is not a product page, credits used up, a rate limit) reaches the model as the tool’s answer, in the API’s own words, so the agent can act on it; it does not stop the agent.
- Which countries and stores does it cover?
- Five markets: the US, Canada, Australia, India and Global. The table above shows the marketplaces a search compares against in each.
- Is there a JavaScript version?
- The LangChain tools are a Python package. In JavaScript, the official client makes the same calls: npm install findcheap.