# Bitiba Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/bitiba/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/bitiba-search | ## Description Search a live Bitiba country shop. Germany is the default. www.bitiba.com is closed and returns 400. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/bitiba/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### My Friend dog food on bitiba.de ```json { "results": [ { "sku": "75036.2", "url": "https://www.bitiba.de/shop/hunde/hundefutter_trocken/my_friend/75036?activeVariant=75036.2", "unit": "kg", "brand": "Bosch My Friend", "price": 23.49, "title": "My Friend Hundefutter", "brands": [ "Bosch My Friend" ], "images": [ "https://media.zooplus.com/bilder/8/400/13912_pla_my_friend_hundefutter_8.jpg" ], "is_new": false, "rating": 4.6, "region": "de", "summary": "Ausgewogene Vollnahrung für ausgewachsene Hunde mit normaler Aktivität, bekömmlich und sehr schmackhaft, moderater Energiegehalt, ohne künstliche Farb- oder Lockstoffe", "currency": "EUR", "in_stock": true, "image_alt": "My Friend Hundefutter - 20 kg", "image_url": "https://media.zooplus.com/bilder/8/400/13912_pla_my_friend_hundefutter_8.jpg", "is_choice": false, "pet_types": [ "DOGS" ], "article_id": "343803", "is_reduced": true, "product_id": "75036", "unit_price": 1.17, "variant_id": "2", "choice_label": null, "is_sponsored": false, "review_count": 65, "price_display": "23,49 €", "variant_count": 1, "discount_label": null, "promotion_text": null, "reference_price": 31.95, "delivery_max_days": 4, "delivery_min_days": 2, "unit_price_display": "1,17 €", "variant_description": "20 kg", "reference_price_label": "UVP", "reference_price_display": "31,95 €" } ], "pagination": { "next": "https://www.bitiba.de/search/results?q=hundefutter&p=2", "page": 1, "per_page": 48, "total_pages": 160, "total_results": 7652 } } ``` ## Documentation ## Overview Search a Bitiba country shop. The crawler reads the product cards embedded in the page. `www.bitiba.com` is a closed-shop notice, not a catalogue, and returns 400. Keyword search uses a live shop. The default region is `de` (www.bitiba.de). ## Quickstart ``` GET https://api.piloterr.com/v2/bitiba/search?query=hundefutter®ion=de ``` ``` GET https://api.piloterr.com/v2/bitiba/search?query=croquettes®ion=fr&page=2 ``` ``` GET https://api.piloterr.com/v2/bitiba/search?query=dog+food®ion=uk ``` ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | A word, or a Bitiba search link. A product link returns 400. | | `region` | string | no | Country shop. `de` Germany (default), `fr` France, `nl`, `pl`, `es`, `it`, `ch`, `uk`. `gb` means `uk`. | | `page` | integer | no | Page number from 1. Page 2 uses `p=2`. | | `return_page_source` | boolean | no | When true, the response is the raw HTML in `result`. | ## Regions | `region` | Shop | Currency | |---|---|---| | `de` | www.bitiba.de | EUR | | `fr` | www.bitiba.fr | EUR | | `nl` | www.bitiba.nl | EUR | | `pl` | www.bitiba.pl | PLN | | `es` | www.bitiba.es | EUR | | `it` | www.bitiba.it | EUR | | `ch` | www.bitiba.ch | CHF | | `uk` | www.bitiba.co.uk | GBP | ## Response fields `price` is the selling number. `price_display` keeps the printed price, and is rebuilt when the shop truncates cents (`18,- €` becomes `18,00 €`). `reference_price` is the crossed price when it is higher. `pagination.next` is the next page URL, or null on the last page. ## Use cases - Compare dog-food prices between Germany and France - Turn a keyword into a Bitiba product id - Page through a large pet-food search ## Error codes | Code | Meaning | |---|---| | 400 | Empty query, unknown shop, www.bitiba.com, another website, or a product link | | 404 | The page had no product cards | | 500 | The fetch failed |