# 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="https://340306199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1wQhlaRQzrtcn9wgMUU5%2Fuploads%2FjL6N36RWi9xr1N2btJ99%2FThordata%20step%201.png?alt=media&#x26;token=48b2c1bf-8072-4042-aa96-b9a3786e0014" 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="https://340306199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1wQhlaRQzrtcn9wgMUU5%2Fuploads%2F3n6oSOyZOqg1JFMUs1P7%2FConfiguration%20step%202.png?alt=media&#x26;token=a0e8274d-c62d-4347-80e4-32253340dd37" 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="https://340306199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1wQhlaRQzrtcn9wgMUU5%2Fuploads%2FA1um07LEZlRlvfccuPAw%2FConfiguration%20step%203.png?alt=media&#x26;token=e6a4a494-c800-4579-8a3c-df2dae486be4" 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>
