## 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 retrieve the HTTP response on a GET from a URL as a text (`varchar2`).
The URL must be accessible. Use the `NativePlatformScalarRequest` view on cloud applications to directly access their APIs with credentials and rate limiters.
See also [[HTTPGET]] and [[HTTPPOST]].
Parameters:
- URL (`varchar2`): the URL to GET the data from.
- Encoding (`varchar2`): the encoding from the data to receive as described in [[Character Set Encoding]]. Defaults to `UTF8`.
Returns: the collected data as `varchar2`.
## Examples
The following example retrieves the text from the HTTP response on `https://cloud.invantive.com` as UTF8:
```sql
select httpget_text('https://cloud.invantive.com')
----------------
<!DOCTYPE html>
```
The following example retrieves the text from the HTTP response on `https://cloud.invantive.com` as EBCDIC (Spain-Euro):
```sql
select httpget_text('https://cloud.invantive.com', 'IBM01145')
----------------
à|äèß&áÇÈ_%
```