## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> HTTPGET_TEXT[HTTPGET_TEXT]:::quoted
HTTPGET_TEXT --> End((END))
```
## Purpose
The `HTTPGET_TEXT` SQL function collects all data from the URL as text.
The URL must be publicly accessible. Use the NativePlatformScalarRequest view on cloud applications to directly access their web APIs.
Parameters:
- URL: the URL to collect the data from.
- Encoding: the encoding from the data to receive, which is by default UTF8.
Returns: the collected data as text.