# Parameter Description

Understanding Thordata's Universal Scraping API - Scraping Parameters

**Token:**\
This parameter defines the API token used for scraping. It plays a decisive role in your successful scraping.

| Parameter | Name  | Function                                     |
| --------- | ----- | -------------------------------------------- |
| token     | Token | API token for authentication during scraping |

**URL:**\
This parameter defines the target website URL for scraping, with google.com as default. You can also change it to other search engine links.

| Parameter | Name | Function                        |
| --------- | ---- | ------------------------------- |
| url       | URL  | Target website URL for scraping |

**Output Format:**\
This parameter defines the output format of scraped results. Options include HTML and PNG formats, with HTML as default.

| Parameter | Name          | Function                                 | Parameter Values                 |
| --------- | ------------- | ---------------------------------------- | -------------------------------- |
| format    | Output Format | Defines output format of scraped results | <p>format=HTML<br>format=PNG</p> |

**JS Rendering:**\
JS rendering can handle dynamically loaded content and Single Page Applications (SPA), supporting more interactive and complex pages and rendering requirements. We recommend enabling this.

| Parameter  | Name         | Function                                              | Parameter Values                           |
| ---------- | ------------ | ----------------------------------------------------- | ------------------------------------------ |
| js\_render | JS Rendering | Determines whether to get JS-rendered webpage content | <p>js\_render=True<br>js\_render=False</p> |

**Block Website Resources:**\
This parameter can restrict unnecessary resource scraping to speed up the process.

| Parameter        | Name            | Function                                                                        | Parameter Values                                              |
| ---------------- | --------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| block\_resources | Block Resources | Determines whether to fetch certain unnecessary resources (multiple selectable) | <p>block\_resources=Images<br>block\_resources=JavaScript</p> |

**country:**\
This parameter defines which country/region's proxy to use during scraping, with no proxy country/region's as default.

| Parameter | Name           | Function                                           | Parameter Values                                  |
| --------- | -------------- | -------------------------------------------------- | ------------------------------------------------- |
| country   | Country/Region | Specifies proxy country/region to use for scraping | <p>country=Random<br>country=Any country code</p> |


---

# 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/universal-scraping-api/parameter-description.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.
