IP information
A list of all publicly available methods for interacting with the API.
GET
Get ip query -/ip/query/{ip?}
Query method
GEThttp://apilocal.stableproxy.com/v2/ip/query/{ip?}
Query parameters
Identifier | Regulations | Example |
---|---|---|
g-recaptcha-response | requiredrecaptchav3:ip0.5captcha_key | "03AFcWeA690BhJU7VIxoIpsXXdDx7IVllNVz804lKvWNIBYmF42ALfY18TY4cjjQ0sY_...." |
captcha-keyNot necessarily | nullablestring | "6Le6gTwUAAA ... secret ...tjbYd6IAYN_" |
Code examples
JavaScript
1async function getIpQuery{ip?}() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/ip/query/{ip?}?' + Object.entries({
4 "g-recaptcha-response": "03AFcWeA690BhJU7VIxoIpsXXdDx7IVllNVz804lKvWNIBYmF42ALfY18TY4cjjQ0sY_....",
5 "captcha-key": "6Le6gTwUAAA ... secret ...tjbYd6IAYN_"
6 }).map(([key, value]) => key + "=" + value).join('&'), {
7 method: 'GET',
8 headers: {
9 'Content-Type': 'application/json'
10 }
11 }
12 );
13
14 const res = await req.json();
15}
Examples of answers
Success response
GET
Get ip current -/ip/current
Query method
GEThttp://apilocal.stableproxy.com/v2/ip/current
Code examples
JavaScript
1async function getIpCurrent() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/ip/current', {
4 method: 'GET',
5 headers: {
6 'Content-Type': 'application/json'
7 }
8 }
9 );
10
11 const res = await req.json();
12}