Send Your First Request

Send your first request using LunaProxy's Web Unlocker API

A step-by-step guide to sending your first Web Unlocker API request, with easy-to-follow code examples

LunaProxy offers two methods for accessing the web unblocker, both delivering the same results while catering to different customer workflows:

Direct API access

A pure REST API approach for easy access and straightforward integration.

Local proxy-based access

Suitable for workflows that rely on proxy-based routing.

Direct API access

Direct API access summary proxy management, allowing you to send requests through a central endpoint, ensuring easy to use and direct REST API integration

Best for:

  • Centralized endpoint: Access Web Unlocker through a single static endpoint.

  • Simplified direct integration: Eliminate the complexity of managing proxies or routing.

  • Single API key authentication: Secure and easy to use, replacing the need for username-password management.

Send your first request

Click [Request Configuration], select the country, username, and fill in the target website. You will see the API token in [Access Details] and find a request example in the request location on the right:

Here is an example of a simple Web Unlocker API curl request:

curl https://unlocker-api.lunaproxy.com/request -H "Content-Type: application/json" -H "Authorization: Bearer 3e6d4sgfsdgsdsgsdgbgrsg44545asfsfgv" -d "{\"url\": \"https://myip.lunaproxy.io\"}"

Request failure

  • Authorization header: Authorization: Bearer [INSERT YOUR API TOKEN] - Your API token is found in your Web Unlocker area.

  • URL: The target URL you want to access through Web Unlocker.

API Token

The API token is a secure authentication token that you use to access Web Unlocker through direct API access. When adding a subaccount, an API token will be automatically generated, and different API tokens will correspond to different subaccounts.

Local proxy-based access

In order to access Web Unlocker, you will need to provide credentials consisting of the following, which can be viewed in [Request Configuration] - [Access Details].

  • Host: Each sub-account has a different host

  • Port

  • Username: Username of the web unlocker sub-account

  • Password: Sub-account password

Web Unlocker: HTTPS proxy code example

Once you have the credentials, use the following code to send your first request:

curl -i --proxy unlocker.lunaproxy.net:13333 --proxy-user username:password -k "https://google.com/"

Last updated

Was this helpful?