# Cline (as VS Code extension)

### Prerequisites&#x20;

* ScraperAPI account
* Cline account
* VS Code
* Cline extension installed on VS Code

### Setup

If you don't have an account with us yet, head over to [scraperapi.com](https://www.scraperapi.com/) to create one and grab your API key from the [Dashboard](https://dashboard.scraperapi.com/home) area. You will need it to authenticate the requests that your LLM client will be making.

**Configure Cline inside VS Code:**

1. Open VS Code.
2. Click the Cline icon in the activity bar to open the Cline panel.
3. Click the `MCP Servers` icon in the top navigation bar of the Cline panel.
4. Select the "Configure" tab.
5. Click "Configure MCP Servers" at the bottom of the pane, this opens `cline_mcp_settings.json`.
6. Paste the JSON [configuration file](https://github.com/scraperapi/scraperapi-mcp/blob/main/README.md#installation).

#### Parameters

| **`scrape`** (required)        | Tells the LLM to scrape a URL from the internet using ScraperAPI.                                                                                                                                                                        |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`url`** (requierd)           | URL you wish to scrape.                                                                                                                                                                                                                  |
| **`render`** (optional)        | Defaults to **`False`**. Set to **`True`** if the page requires JavaScript rendering to display its contents.                                                                                                                            |
| **`country_code`** (optional)  | Activate country geotargeting (e.g. “us”, “es”, “uk”, etc.).                                                                                                                                                                             |
| **`premium`** (optional)       | Set to **`True`** to use residential IPs with your scrapes.                                                                                                                                                                              |
| **`ultra_premium`** (optional) | Activates advanced bypass mechanisms when set to **`True`**. Can **not** be combined with **`premium`**.                                                                                                                                 |
| **`device_type`** (optional)   | Defaults to **`desktop`**.  Set to **`mobile`** to use mobile user agents with the scrapes.                                                                                                                                              |
| **`output_format`** (optional) | <p>Instructs the API on what the response file type should be. Defaul is HTML. Valid options:<br>- markdown<br>- text<br>- json (for a <a href="https://docs.scraperapi.com/structured-data-endpoints/overview">list</a> of domains)</p> |
| **`autoparse`** (optional)     | Boolean. Activate auto parsing for a [list](https://docs.scraperapi.com/structured-data-endpoints/overview) of supported domains. Defaults to `False`. Set to `True` only if you want the output format in csv or json.                  |

### Prompt Example

<mark style="background-color:blue;">Get product data information from eBay</mark>

*- "I need product information on the top 3 eBay (in US) results for 2nd hand 19' rims."*

#### Response

Cline executed an eBay search through ScrperAPI by recognizing the request and invoking ScraperAPI's `eBay Search SDE` to retrieve product listings from eBay (United States). It then followed up by calling ScraperAPI's `eBay Product SDE` 3 times, to fetch detailed data for the top 3 products returned in the search results. ScraperAPI took care of the scraping workflow, so no extra user input or prompt changes were necessary. After collecting the search and product-level data, Cline summarized the results for all 3 product listings, showing price, seller details, condition, shipping and key specs.

<figure><img src="https://921583510-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXJv4kz1e8RdAq9HrFwyo%2Fuploads%2FCaH8c09rOwvYAvMPTgyu%2Fimage.png?alt=media&#x26;token=946302c6-01f4-4caf-bfa5-6c09feb02082" alt=""><figcaption></figcaption></figure>

<figure><img src="https://921583510-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXJv4kz1e8RdAq9HrFwyo%2Fuploads%2FEy822p9QZgoTL0Z9H9HA%2Fimage.png?alt=media&#x26;token=4c9fc8b5-e672-4480-829b-c5daa6372581" alt=""><figcaption></figcaption></figure>

<figure><img src="https://921583510-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXJv4kz1e8RdAq9HrFwyo%2Fuploads%2F7dCh68QPBd5XPap3Ec9L%2Fimage.png?alt=media&#x26;token=76a7c289-f818-4a97-aca8-824f7f25efd1" alt=""><figcaption></figcaption></figure>

<details>

<summary>eBayResults.md</summary>

```md
Based on my search of eBay US for 19-inch rims, here are the top 3 results with detailed product information:

## Top 3 eBay Results for 19-inch Rims

### 1. 19" Replacement Wheel Rim for 2023-2024 Nissan Altima

__Price:__ $147.76 (or Best Offer) __Seller:__ hemeie (97% positive feedback, 67 reviews) __Condition:__ Brand New __Shipping:__ $20.99 delivery __Key Details:__

- 19x8 inch alloy wheel rim
- Gray color
- 5-114.3mm bolt pattern
- 55mm offset
- 66.1mm center bore
- OEM tire size: 235/40VR19
- 5 lug holes
- 5-year manufacturer warranty
- More than 10 available
- 1 sold

### 2. 2016 Mazda 6 16-inch, 17-inch, 18-inch, and 19-inch Rims

__Price:__ $650 (or Best Offer) __Seller:__ gh_672 (100% positive feedback, 33 reviews) __Condition:__ Used __Shipping:__ Not specified __Key Details:__

- Compatible with 19-inch diameter
- Brand: Kumho
- Used condition with cosmetic wear but fully operational
- No returns accepted

### 3. 4pc Black 19" NEW BMW WHEELS RIMS

__Price:__ $949 __Seller:__ Koobase Wheels (99.7% positive feedback, 437 reviews) __Condition:__ Brand New __Shipping:__ Free delivery __Key Details:__

- Set of 4 wheels
- Gunmetal machined face
- 8.5/9.5 rim width
- 19-inch diameter
- 5x120 bolt pattern
- 35mm offset
- Alloy material
- 3 sold, 1 lot available (4 items per lot)
- 30-day returns (buyer pays return shipping)

__Summary:__ 

The search shows a good variety of 19-inch rims available on eBay US, ranging from budget-friendly single replacement rims ($147.76) to premium BMW wheel sets ($949). The Nissan Altima rim appears to be the most affordable option for a single wheel, while the BMW set offers a complete 4-wheel package for luxury vehicles.
```

</details>
