Go Back
03 May 15:58
1914
Tech details

How to Use API?

1. Why do we use API?

Here at ASocks, we provide an API so external systems can embed Asocks functionality. The API provides secure access to  our proxy servers on user side and  support for big data parsing. 

A user can connect to the ASocks service via API and get information about the user’s account, a list of IP-addresses contained in a Whitelist, and a list of available proxy-servers.

2. What do I need to use ASocks API?

Before starting, make sure that you have available traffic. After this, make sure you have an active proxy port. 

In the My Generate proxy section, create a proxy.  Here, choose the type (residential, mobile, business, or mixed) and location (country required). 

The new proxy will be shown in the My Proxy ports section. You can open a proxy port properties by clicking on a proxy in the list. Note that you can choose several port formats. 

Note that the requests on paid accounts can be authorized through through originating IP addresses. To authorize your IP addresses, open the Whitelist section. For more information: What is the Difference between IP Authorization and Login/Password?

Once you have everything ready, you can start using Asocks API. To do so, open the API section. The endpoints data presented in a figure below is used by the REST API platform to connect the proxy servers. The Copy icons are recommended to use for copying the required data.

3. How to use the REST API platform?

Our API is built around REST API architecture and is available over HTTPS. You can call our API programmatically, using your programming language of choice, or through an API client such as Postman. 

To see the available requests, go to the API section.  

All API requests must be authorize with the API key. You can find (and update) the API key at the top of the API page. 

To authorize a request, add the API key to the requested URL. Here's a URL example:  

https://api.asocks.com/v2/plan/info?apikey=-6IP4OUwG234YV9aHDA0QtoTsfJ0rtst

To open the API specification in format, follow the link: How to use the API in a widget to the right. The link will open the API spec in Swagger format

How to use the API: 

  1. Get the information you need (plans, countries, etc)
  2. Get proxy port parameters. 
  3. Use the collected parameters to route your requests (or to automate the browser). 


 

Written by Daria ASocks

Did this answer your question?