Metadata-Version: 2.5
Name: dataguru-sdk
Version: 0.1.2
Summary: Official Python client for the DataGuru API: Amazon, Walmart, Google, TikTok, 1688 and 100+ other sites as JSON APIs.
Project-URL: Homepage, https://dataguru.cc
Project-URL: Documentation, https://dataguru-python.readthedocs.io/
Project-URL: API reference, https://dataguru.cc/documentation/
Project-URL: API catalog, https://dataguru.cc/apis
Project-URL: Dashboard, https://dashboard.dataguru.cc
Project-URL: Source, https://github.com/dataguru-cc/dataguru-python
Project-URL: Examples, https://github.com/dataguru-cc/dataguru-python/tree/main/examples
Project-URL: Issues, https://github.com/dataguru-cc/dataguru-python/issues
Author: Developers 360 LLC
License-Expression: MIT
License-File: LICENSE
Keywords: amazon api,dataguru,ecommerce data,json api,scraping api,web scraping
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.9
Requires-Dist: httpx<1,>=0.24
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == 'dev'
Requires-Dist: respx>=0.20; extra == 'dev'
Description-Content-Type: text/markdown

# DataGuru Python SDK

[![PyPI](https://img.shields.io/pypi/v/dataguru-sdk)](https://pypi.org/project/dataguru-sdk/) [![Python](https://img.shields.io/pypi/pyversions/dataguru-sdk)](https://pypi.org/project/dataguru-sdk/) [![Tests](https://github.com/dataguru-cc/dataguru-python/actions/workflows/tests.yml/badge.svg)](https://github.com/dataguru-cc/dataguru-python/actions/workflows/tests.yml) [![Docs](https://readthedocs.org/projects/dataguru-python/badge/?version=latest)](https://dataguru-python.readthedocs.io/)

The official Python client for [DataGuru](https://dataguru.cc). DataGuru turns websites like Amazon, Walmart, Google, TikTok and 1688 into JSON APIs.

```bash
pip install dataguru-sdk
```

```python
from dataguru import DataGuru

dg = DataGuru(api_key="YOUR_API_KEY")  # or set DATAGURU_API_KEY

product = dg.call(
    "amazon-products-search",
    product_url="https://www.amazon.com/dp/B0CHWRXH8B",
)
print(product["title"], product["price"])
```

Get an API key from the [dashboard](https://dashboard.dataguru.cc). Each call is billed to your balance at the API's listed price. You can browse every API, with its parameters and price, at [dataguru.cc/apis](https://dataguru.cc/apis).

## Examples

The [`examples/`](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/) folder has a runnable script and a README for every one of the 163 DataGuru APIs, with parameters, response fields, price and a cURL equivalent. They are generated from the live catalog by [`scripts/generate_examples.py`](https://github.com/dataguru-cc/dataguru-python/blob/main/scripts/generate_examples.py).

Popular ones: [1688 Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/1688-product-search/), [1688 Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/1688-product-details/), [Amazon Keyword Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/amazon-keyword-search/), [Amazon Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/amazon-products-search/), [Walmart Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/walmart-search/), [Shopee Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/shopee-product-details/), [Google Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/search-engine/google-search/), [TikTok Profile](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/tiktok-profile/), [Zillow Property Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/zillow-property-details/), [PDF to JSON](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/document-processing/pdf-parser/).

| Category | APIs |
| --- | --- |
| Apps & Software | [Capterra Software Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/apps-software/capterra-software-details/), [Capterra Software Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/apps-software/capterra-software-search/), [TrustRadius Software Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/apps-software/trustradius-software-details/), [TrustRadius Software Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/apps-software/trustradius-software-search/) |
| Document Processing | [Bulk Resume Parser](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/document-processing/resume-parser/), [PDF to JSON](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/document-processing/pdf-parser/) |
| E-Commerce | [1688 Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/1688-product-details/), [1688 Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/1688-product-search/), [ASOS Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/asos-product-details/), [ASOS Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/asos-product-search/), [AliExpress Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/aliexpress-product-search/), [Alibaba Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/alibaba-product-details/), [Alibaba Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/alibaba-product-search/), [Amazon Best Sellers](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/amazon-bestsellers/), [Amazon Keyword Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/amazon-keyword-search/), [Amazon Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/amazon-products-search/), [Best Buy Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/bestbuy-product-details/), [Costco Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/costco-product-details/), [Etsy Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/etsy-product-details/), [Etsy Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/etsy-product-search/), [Flipkart Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/flipkart-product-details/), [Flipkart Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/flipkart-product-search/), [Home Depot Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/homedepot-product-details/), [Home Depot Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/homedepot-product-search/), [Lazada Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/lazada-product-details/), [Lazada Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/lazada-product-search/), [Mercado Libre Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/mercadolibre-product-details/), [Mercado Libre Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/mercadolibre-product-search/), [Shopee Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/shopee-product-details/), [Target Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/target-product-details/), [Target Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/target-product-search/), [TikTok Shop](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/tiktok-shop/), [Walmart Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/walmart-products-details/), [Walmart Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/walmart-search/), [Wayfair Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/wayfair-product-details/), [Wayfair Product Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/wayfair-product-search/), [eBay Product Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/ebay-product-details/), [eBay Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/e-commerce/ebay-search/) |
| Finance | [CoinGecko Coin Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/coingecko-coin-details/), [CoinGecko Coin Listings](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/coingecko-coin-listings/), [CoinMarketCap Coin Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/coinmarketcap-coin-details/), [CoinMarketCap Coin Listings](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/coinmarketcap-coin-listings/), [Investing.com Market Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/investing-market-search/), [Investing.com Stock Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/investing-stock-details/), [MarketWatch Equity & ETF Quote](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/marketwatch-equity-etf/), [SEC EDGAR Company Filings](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/secedgar-company-filings/), [SEC EDGAR Company Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/secedgar-company-search/), [Seeking Alpha Market News](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/seekingalpha-market-news/), [Seeking Alpha Stock Ideas](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/seekingalpha-stock-ideas/), [Seeking Alpha Technical & Fundamental Analysis](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/seekingalpha-analysis/), [TradingView Custom Indicators](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/tradingview-custom-indicators/), [TradingView Technical & Fundamental Analysis](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/tradingview-technical-analysis/), [TradingView Trading Strategies](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/tradingview-trading-strategies/), [Yahoo Finance Equity & ETF Quote](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/yahoo-finance-equity-etf/), [Yahoo Finance Financial Statements](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/yahoo-finance-financials/), [Yahoo Finance Valuation & Fundamentals](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/finance/yahoo-finance-valuation/) |
| Jobs & B2B | [Crunchbase Organization Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/crunchbase-organization-details/), [Crunchbase Organization Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/crunchbase-organization-search/), [Fiverr Gig Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/fiverr-gig-details/), [Fiverr Gig Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/fiverr-gig-search/), [Glassdoor Company Interviews](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/glassdoor-company-interviews/), [Glassdoor Company Reviews](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/glassdoor-company-reviews/), [Glassdoor Company Salaries](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/glassdoor-company-salaries/), [Monster Job Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/monster-job-details/), [Monster Job Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/monster-job-search/), [PitchBook Latest News](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/pitchbook-news-latest/), [PitchBook News Article Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/pitchbook-news-details/), [PitchBook Profile Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/pitchbook-profile-details/), [PitchBook Profile Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/pitchbook-profile-search/), [Upwork Freelancer Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/upwork-freelancer-details/), [Upwork Freelancer Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/upwork-freelancer-search/), [ZoomInfo Company Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/jobs-b2b/zoominfo-company-search/) |
| Legal | [California Attorneys](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/legal/california-attorneys/) |
| Real Estate | [Redfin Apartments Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/redfin-apartments/), [Redfin Property Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/redfin-property-details/), [Redfin Property Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/redfin-search/), [Rightmove Estate Agents](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/rightmove-agents/), [Rightmove Property Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/rightmove-property-details/), [Rightmove UK Property Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/rightmove-search/), [Trulia Property Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/trulia-property-details/), [Trulia Real Estate Agents](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/trulia-agents/), [Trulia Real Estate Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/trulia-search/), [Zillow Property Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/zillow-property-details/), [Zillow Property Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/zillow-search/), [Zillow Real Estate Agents](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/zillow-agents/), [Zoopla Property Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/zoopla-property-details/), [Zoopla UK Property Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/real-estate/zoopla-search/) |
| Research & Public Records | [Companies House Company Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/companieshouse-company-details/), [Companies House Company Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/companieshouse-company-search/), [CourtListener Opinion Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/courtlistener-opinion-search/), [Google Patents Patent Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/googlepatents-patent-details/), [Google Patents Patent Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/googlepatents-patent-search/), [Google Scholar Article Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/googlescholar-article-search/), [Google Scholar Author Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/googlescholar-author-details/), [Justia Lawyer Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/justia-lawyer-details/), [Justia Lawyer Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/justia-lawyer-search/), [OpenCorporates Company Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/opencorporates-company-details/), [PACER Docket Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/pacer-docket-details/), [PACER Docket Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/pacer-docket-search/), [PubMed Article Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/pubmed-article-details/), [PubMed Article Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/pubmed-article-search/), [arXiv Paper Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/arxiv-paper-details/), [arXiv Paper Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/research-public-records/arxiv-paper-search/) |
| Search Engine | [Brave Web Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/search-engine/brave-web-search/), [Google Images](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/search-engine/google-images/), [Google News](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/search-engine/google-news/), [Google Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/search-engine/google-search/), [Google Shopping](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/search-engine/google-shopping/) |
| Social Media | [Discord Server Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/discord-server/), [Discord Server Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/discord-search/), [Instagram Comments](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/instagram-comments/), [Instagram Post](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/instagram-post/), [Instagram Profile](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/instagram-profile/), [Kick Category Directory](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/kick-category/), [Kick Stream Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/kick-stream/), [Kick Streamer Profile](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/kick-profile/), [Reddit Comments](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/reddit-comments/), [Reddit Post](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/reddit-post/), [TikTok Post](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/tiktok-post/), [TikTok Profile](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/tiktok-profile/), [TikTok Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/tiktok-search/), [Twitch Channel Profile](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/twitch-profile/), [Twitch Game Category](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/twitch-category/), [Twitch Live Stream](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/twitch-stream/), [X (Twitter) Profile](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/x-profile/), [X (Twitter) Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/x-search/), [X (Twitter) Trends](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/x-trends/), [YouTube Channel Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/youtube-channel/), [YouTube Video Comments](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/youtube-comments/), [YouTube Video Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/social-media/youtube-video/) |
| Travel | [Airbnb Hotels Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/airbnb-hotels/), [Airbnb Listing Reviews](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/airbnb-reviews/), [Airbnb Property Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/airbnb-details/), [Airbnb Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/airbnb-search/), [Booking.com Hotel Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/booking-hotel-details/), [Booking.com Hotel Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/booking-hotel-search/), [DoorDash Restaurant Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/doordash-restaurant-details/), [DoorDash Restaurant Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/doordash-restaurant-search/), [Expedia Hotel Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/expedia-hotel-details/), [Expedia Hotel Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/expedia-hotel-search/), [Google Flights Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/google-flights-details/), [Google Flights Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/google-flights-search/), [Grubhub Restaurant Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/grubhub-restaurant-details/), [Grubhub Restaurant Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/grubhub-restaurant-search/), [Kayak Car Rentals](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/kayak-cars/), [Kayak Flight Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/kayak-flight-details/), [Kayak Flight Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/kayak-flights-search/), [Kayak Stay Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/kayak-stay-details/), [Kayak Stays Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/kayak-stays-search/), [OpenTable Restaurant Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/opentable-restaurant-details/), [OpenTable Restaurant Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/opentable-restaurant-search/), [Resy Restaurant Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/resy-restaurant-details/), [Resy Restaurant Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/resy-restaurant-search/), [Skyscanner Car Service & Airport Transfers](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/skyscanner-car-service/), [Skyscanner Flight Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/skyscanner-flight-details/), [Skyscanner Flight Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/skyscanner-flights-search/), [TripAdvisor Attraction Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/tripadvisor-attraction-details/), [TripAdvisor Attraction Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/tripadvisor-attraction-search/), [Uber Eats Restaurant Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/ubereats-restaurant-details/), [Uber Eats Restaurant Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/ubereats-restaurant-search/), [Vrbo Pricing & Availability](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/vrbo-pricing-availability/), [Vrbo Property Details](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/vrbo-details/), [Vrbo Vacation Rentals Search](https://github.com/dataguru-cc/dataguru-python/tree/main/examples/travel/vrbo-search/) |

## Find an API

The catalog is public, so these calls don't need a key.

```python
for api in dg.apis.search("walmart"):
    print(api["slug"], api["pricing"]["customer_price"], [p["name"] for p in api["parameters"]])

details = dg.apis.get("amazon-products-search")   # parameters, pricing, limits, sample_response, docs_url
everything = dg.apis.list(category="E-Commerce")
```

`dg.call()` takes an API's slug (`amazon-products-search`) or its endpoint path (`amazon/products/search`). You can pass parameters as keyword arguments or as a dict. The client checks them against the API's declared parameters before it sends anything.

## Async jobs

Use a job when you don't want to hold a connection open for a slow scrape. Funds are held when you submit and charged only if the job succeeds.

```python
job = dg.jobs.submit("amazon-products-search", {"product_url": "https://www.amazon.com/dp/B0CHWRXH8B"})
data = dg.jobs.wait(job["job_id"])        # polls; raises JobFailedError if it fails

data = dg.jobs.run("amazon-products-search", product_url="...")   # submit + wait
```

## Batches

Upload a CSV with one request per row. Its columns are the API's parameter names.

```python
batch = dg.batches.create("amazon-products-search", "products.csv")
dg.batches.wait(batch["batch_id"])                      # or poll dg.batches.get(...)["progress"]

for row in dg.batches.iter_results(batch["batch_id"]):  # streams JSON Lines
    print(row["status"], row.get("data"))

dg.batches.download(batch["batch_id"], "results.csv")   # json, jsonl or csv summary
dg.batches.cancel(batch["batch_id"])                    # unstarted rows are refunded
```

## Errors

Every error inherits from `dataguru.DataGuruError`. HTTP errors are `APIError` subclasses with `status_code`, `code`, `message`, `details` and `request_id`:

| Exception | When |
|---|---|
| `ValidationError` | 400: a parameter is missing or invalid (see `.details`) |
| `AuthenticationError` | 401/403: the key is missing, invalid or revoked |
| `InsufficientBalanceError` | 402: your balance is too low, so [top up](https://dashboard.dataguru.cc) |
| `NotFoundError` | 404 |
| `RateLimitError` | 429: `.retry_after` gives the wait in seconds |
| `ServerError` | 5xx |
| `JobFailedError` | an async job failed (failed jobs are not billed) |

```python
from dataguru import DataGuru, InsufficientBalanceError, ValidationError

try:
    dg.call("amazon-products-search", product_url="not a url")
except ValidationError as e:
    print(e.details)
```

The client retries read requests (catalog lookups, job and batch status) on 429, 5xx and connection errors. A billed request is retried only when nothing ran: the connection failed before it was sent, or DataGuru's rate limiter turned it away (the client waits for `Retry-After`, up to 60 s). A retry never charges you twice. A 429 passed through from the target site is raised as `RateLimitError` and is not retried.

## Configuration

```python
DataGuru(
    api_key=None,       # default: $DATAGURU_API_KEY
    base_url=None,      # default: $DATAGURU_BASE_URL or https://api.dataguru.cc
    timeout=120.0,      # seconds per HTTP response
    max_retries=2,
)
```

`DataGuru` can be used as a context manager (`with DataGuru() as dg: ...`) and closes its connection pool on exit.

## Links

- Website and API catalog: https://dataguru.cc/apis/
- SDK documentation and examples: https://dataguru-python.readthedocs.io/
- API documentation: https://dataguru.cc/documentation/
- MCP server for AI assistants (Claude, ChatGPT, Cursor): https://dataguru.cc/mcp/
- Dashboard and API keys: https://dashboard.dataguru.cc
- Support: support@dataguru.cc

Requires Python 3.9+. Released under the MIT license.
