> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequentum.com/llms.txt
> Use this file to discover all available pages before exploring further.

# URL

> Open web pages from static URLs, data sources, Agent parameters, commands, or scripts.

The URL command opens a web page from a single URL, a list of URLs, or URLs retrieved from sources such as Agent parameters, commands, data lists, CSV or Excel files, and databases. Located under **Browser** in the command palette.

## URL input

The **URL** section loads a web page into the browser tab. Its dropdown accepts input from several sources, including CSV files, databases, data lists, commands, and scripts.

![URL input settings](https://mintcdn.com/sequentum/dOYM46qwxTPgqNVx/images/agents/commands/url/img-06.png?fit=max\&auto=format\&n=dOYM46qwxTPgqNVx\&q=85\&s=9cb306e14cc50624281be077c76d6014)

* **Data list:** Loads URLs from a CSV or other input file uploaded to a data list.
* **Command:** Uses content generated by an earlier command in the Agent as input.
* **Agent parameter:** Loads a URL from an input parameter.
* **Action result:** Uses an AJAX response or other content fetched by a parent URL or Link command. This is useful when a page loads content dynamically and that content must be extracted and reused.
* **Static value:** Loads a fixed URL.
* **Script:** Uses C#, Python, JavaScript, or regular expressions to determine the input dynamically.

The following examples build a request that retrieves a restaurant URL from the Hooters website.

### C# code

```csharp theme={null}
public string GetData(RunContext context)
{
    string url = "https://order.hooters.com/api/vendors/search/" + context.DataRow.GetString("city");
    url += " -H \"Accept: application/json, */*\" " +
           "-H \"Accept-Language: en-US,en;q=0.9\" " +
           "-H \"X-Olo-App-Platform: web\" " +
           "-H \"X-Olo-Country: us\" " +
           "-H \"X-Olo-Request: 1\" " +
           "-H \"X-Olo-Viewport: Tablet\" " +
           "-H \"X-Requested-With: XMLHttpRequest\" " +
           "-H \"__RequestVerificationToken: \" " +
           "-H \"sec-ch-ua: \\\"Chromium\\\";v=\\\"105\\\"\" " +
           "-H \"sec-ch-ua-mobile: ?0\" " +
           "-H \"sec-ch-ua-platform: \\\"Windows\\\"\" " +
           "-H \"Referer: https://order.hooters.com/locations/" + context.DataRow.GetString("city") + "\"";
    return url;
}
```

### Python code

```python theme={null}
from se_scripting_utils import *

def get_data(context: RunContext):
    city = context.data_row.get_string("city")
    url = f"https://order.hooters.com/api/vendors/search/{city}"
    curl_command = (
        f"curl -X GET \"{url}\" "
        "-H \"Accept: application/json, */*\" "
        "-H \"Accept-Language: en-US,en;q=0.9\" "
        "-H \"X-Olo-App-Platform: web\" "
        "-H \"X-Olo-Country: us\" "
        "-H \"X-Olo-Request: 1\" "
        "-H \"X-Olo-Viewport: Tablet\" "
        "-H \"X-Requested-With: XMLHttpRequest\" "
        "-H \"__RequestVerificationToken: \" "
        "-H \"sec-ch-ua: \\\"Chromium\\\";v=\\\"105\\\"\" "
        "-H \"sec-ch-ua-mobile: ?0\" "
        "-H \"sec-ch-ua-platform: \\\"Windows\\\"\" "
        f"-H \"Referer: https://order.hooters.com/locations/{city}\""
    )
    return curl_command
```

### JavaScript code

```javascript theme={null}
function getData(/** @type {JavaScriptRunContext} */ context) {
    function getCurlCommand(context) {
        const city = context.DataRow.GetString("city");
        const url = `https://order.hooters.com/api/vendors/search/${city}`;
        const curlCommand = `curl -X GET "${url}" ` +
            `-H "Accept: application/json, */*" ` +
            `-H "Accept-Language: en-US,en;q=0.9" ` +
            `-H "X-Olo-App-Platform: web" ` +
            `-H "X-Olo-Country: us" ` +
            `-H "X-Olo-Request: 1" ` +
            `-H "X-Olo-Viewport: Tablet" ` +
            `-H "X-Requested-With: XMLHttpRequest" ` +
            `-H "__RequestVerificationToken: " ` +
            `-H "sec-ch-ua: \\"Chromium\\";v=\\"105\\"" ` +
            `-H "sec-ch-ua-mobile: ?0" ` +
            `-H "sec-ch-ua-platform: \\"Windows\\"" ` +
            `-H "Referer: https://order.hooters.com/locations/${city}"`;
        return curlCommand;
    }
    return getCurlCommand(context);
}
```

**Encrypt:** Encrypts the input field content when selected, replacing the original text with its encrypted form. It is cleared by default.

### Browser

See [Browser](https://docs.sequentum.com/agents/commands/properties/browser.md) for more information.

### Error handling

See [Error handling](https://docs.sequentum.com/agents/commands/properties/error-handling.md) for more information.

### Export

See [Export](https://docs.sequentum.com/agents/commands/properties/export.md) for more information.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.