Skip to main content

findcheap

The Findcheap API in Python: where the product on a page is sold for less. Standard library only, Python 3.9+.

pip install findcheap
export FINDCHEAP_API_KEY=fc_live_...   # from https://findcheap.ai/signin?next=/dashboard/keys
from findcheap import Findcheap, FindcheapApiError

fc = Findcheap()  # reads FINDCHEAP_API_KEY; or Findcheap(api_key="fc_live_...")

answer = fc.search("https://findcheap.ai/sample-product", max_results=3)
print(answer["product"]["title"], "read in", answer["search"]["market"])
for card in answer["same_product"]:
    print(card["price"], card["currency"], card["retailer"], card["url"] or card["resolve_id"])

page = fc.extract("https://findcheap.ai/sample-product")
if page["is_product_page"]:
    print(page["title"], page["price"], page["currency"])

link = fc.resolve(answer["similar_products"][0]["resolve_id"])  # for a card whose url is None

Every answer opens with request_id and closes with credits_used. A failed call raises FindcheapApiError with .status, .type, .message, .credits_used, .request_id and .retry_after (seconds, on a 429); a call that never reached the API raises FindcheapConnectionError. Both subclass FindcheapError.

Timeouts sit above the API's own ceilings (a search answers within 60 seconds, a read within 30): 100, 40 and 20 seconds for search, extract and resolve, or one timeout= for all three.

The reference, with every field: https://findcheap.ai/developers/docs.md.

Metadata

Release files for findcheap 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for findcheap 0.2.0
File Size Uploaded Provenance Actions
findcheap-0.2.0.tar.gz 8.8 kB Without provenance Details for findcheap-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for findcheap 0.2.0
File Interpreter ABI Platform Actions
findcheap-0.2.0-py3-none-any.whl Python 3 none any Details for findcheap-0.2.0-py3-none-any.whl

Total release size: 16.0 kB

Release files / findcheap-0.2.0.tar.gz

Download URL findcheap-0.2.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c32478e37ecc99e13e3850ab438274c7246654b2204a33b24601d841ad0f47f9
BLAKE2b-256 checksum
How to use checksums
bd5b5c8fc1b661e8e8faeb30cae6aa2c0c285cf87b983a7bcecd3ed3bb4e8a33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / findcheap-0.2.0-py3-none-any.whl

Download URL findcheap-0.2.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bd52d04e115015f166fee17e5008c6fc07783391cd2f307bca5281449f5f37a
BLAKE2b-256 checksum
How to use checksums
27a3fde514e08a7aacdd5543f4eb680dd0f2112e70abf4b510cdee7ce0a808ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for findcheap 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page