# Inet Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/inet/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/inet-search | ## Description Search Inet.se by keyword or category. Prices are inc-VAT SEK, with the next page URL when more results exist. ## 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/inet/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Crucial X10 on a search for ssd ```json { "results": [ { "url": "https://www.inet.se/produkt/4306208/crucial-x10-portable-ssd-2tb", "brand": "Crucial", "price": 2999, "title": "Crucial X10 Portable SSD 2TB", "rating": 4.8, "currency": "SEK", "in_stock": true, "image_url": "https://cdn.inet.se/product/86x86/4306208_hirbw9.jpg", "highlights": [ "Storlek: 2 TB", "Tillverkarens garanti: 3 år", "USB 3.2 Gen 2x2 Type C" ], "is_bargain": false, "product_id": "4306208", "review_count": 4, "price_display": "2 999 kr", "selling_point": "Snabb och pålitlig", "stock_quantity": 59, "purchase_status": "Purchasable", "reference_price": null, "reference_price_display": null } ], "pagination": { "next": "https://www.inet.se/hitta?q=ssd&page=2", "page": 1, "per_page": 60, "total_pages": 7, "total_results": 381 } } ``` ## Documentation ## Overview Search the Swedish computer shop Inet. The crawler reads the product list already embedded in the page. `query` is a keyword, a search link, or a category link. `page` starts at 1. ## Quickstart ``` GET https://api.piloterr.com/v2/inet/search?query=ssd ``` ``` GET https://api.piloterr.com/v2/inet/search?query=ssd&page=2 ``` ``` GET https://api.piloterr.com/v2/inet/search?query=https://www.inet.se/kategori/591/harddisk-ssd ``` ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | A word such as `ssd`, or an Inet search or category link. A product link returns 400. | | `page` | integer | no | Page number from 1. Page 2 uses `page=2`. | | `return_page_source` | boolean | no | When true, the response is the raw HTML in `result`. | ## Response fields Each item in `results` is one card. `price` is the inc-VAT amount in SEK. `price_display` is rebuilt from that number, for example `2 999 kr`. `reference_price` is the previous price when it is higher than `price`. `pagination.next` is the next page URL, or null on the last page. `total_results` comes from the "Visar N produkter" line. ## Use cases - Compare SSD prices in SEK - Watch a bargain against its previous price - Turn a keyword into an Inet article number ## Error codes | Code | Meaning | |---|---| | 400 | Empty query, another website, or a product link | | 404 | The page had no product cards | | 500 | The fetch failed |