For the complete documentation index, see llms.txt. This page is also available as Markdown.

Country / Region

Adding a country flag to the authorization header enables one to specify which country IP to use to process the request. The value of this parameter is a case insensitive country code in 2-letter 3166-1 alpha-2 format. For example, US for United States, GE for Germany and VN for Vietnam.proxy.

Parameter Examples:

Country/Region
Parameter Format

Germany

country-DE

India

country-IN

Thailand

country-TH

Australia

country-AU

Japan

country-JP

Code example

In this example, a query to ipinfo.thordata.com is performed from a random IP address from USA:

curl -x "https://td-customer-USERNAME-country-us:PASSWORD@t.thordata.online:9999" "https://ipinfo.thordata.com"
using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;

class csharp_https
{
    static void Main(string[] args)
    {
        Task t = new Task(DownloadPageAsync);
        t.Start();
        Console.ReadLine();
    }

    static async void DownloadPageAsync()
    {
        string page = "https://ipinfo.thordata.com";

        var proxy = new WebProxy("https://t.thordata.online:9999")
        {
            UseDefaultCredentials = false,
            Credentials = new NetworkCredential(
                userName: "td-customer-USERNAME-country-us",
                password: "PASSWORD")
        };

        var httpClientHandler = new HttpClientHandler()
        {
            Proxy = proxy,
            ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
        };

        var client = new HttpClient(handler: httpClientHandler, disposeHandler: true);
        var response = await client.GetAsync(page);

        using (HttpContent content = response.Content)
        {
            string result = await content.ReadAsStringAsync();
            Console.WriteLine(result);
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
    }
}

Find the complete list of country by clicking the file below:

Last updated