# Configuration

\
Learn how to use Thordata's SERP API to get your first web scraping code.

Navigate to "[**Configuration**](https://dashboard.thordata.com/serp-api/configuration)"

<div align="left"><figure><img src="/files/vBrrfQh6o8ebXmRDPb4T" alt="" width="563"><figcaption></figcaption></figure></div>

1. Thordata provides two ways to use the SERP API:

* Direct API Access
* Proxy-based Access on Local Machine

<div align="left"><figure><img src="/files/DWWpXGtS3a0u8MulAUUy" alt="" width="563"><figcaption></figcaption></figure></div>

For Direct API Access, you need API credentials.\
For Proxy-based Access, you need a username and password.\
You can find this information in the Configuration Page.\
To modify user information, go to "Account" settings.

2. SSL Certificate   \
   To ensure the security of SERP API requests, please use our SSL certificate or ignore SSL errors.

{% hint style="info" %}
[**Click here**](https://doc.thordata.com/doc/scraping/serp-api/ssl-certificate) to learn more about SERP API SSL Certificate.
{% endhint %}

<div align="left"><figure><img src="/files/n3jLL5RvhfvqOWDwruIJ" alt="" width="563"><figcaption></figcaption></figure></div>

3. Code Example   \
   After obtaining your API credentials or username and password, use the following code to send a request:

```sh
curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer APIKEY" -d "{\"url\": \"https://www.google.com/search?q=pizza\"}"
```

```sh
curl -k "https://www.bing.com/search?q=pizza&json=1" --proxy scraping.thordata.com:30001 --proxy-user td-customer-serp_USERNAME:PASSWORD
```

If you need further assistance, please contact us via email: <support@thordata.com>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.thordata.com/doc/scraping/serp-api/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
