# Using Proxies

# Formatting proxies for Token API.

You may optionally provide proxy for the Token API to use for solving the challenge.

The proxy parameter should be provided as a Dict .

This guide shows you how to format this value.


Parameter Type Required Description
scheme String Required Scheme of the proxy. Must be one of http https socks4 socks5.
host String Required IP address IPv4/IPv6 of the proxy.
port String Required Port number of the proxy.
username String Conditional Required if proxy authorization is needed. Username of the proxy.
password String Conditional Required if proxy authorization is needed. Password of the proxy.
{
    'key': 'MY_NOPECHA_KEY',
    'type': 'hcaptcha',
    'sitekey': 'b4c45857-0e23-48e6-9017-e28fff99ffb2',
    'url': 'https://nopecha.com/demo/hcaptcha#easy',
    'proxy': {
        'scheme': 'http',
        'host': '1.1.1.1',
        'port': '8000',
        'username': 'nopechauser',
        'password': 'hunter7'
    }
}

|||