# CSV & Excel Files

The application can read CSV files and Excel spreadsheets from any accessible URL.

{% hint style="info" %}
If the target Excel workbook contains multiple sheets, the first sheet will be used.
{% endhint %}

Both the CSV and Excel query runners use YAML syntax to write queries.

Your query should include a `url` key and optionally a `user-agent` key that will be sent with your request.

```yaml
url: "https://www.example.com/path/to/file.xlsx"

user-agent: "Google Chrome";v="95", "Chromium";v="95", ";Not A Brand";v="99"
```

To query Excel or CSV files with SQL, you can use the SQLite query runner with Inverse Watch as a data source in a separate query.


---

# 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://docs.inverse.watch/user-guide/data-sources/csv-and-excel-files.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.
