astroproxy-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Astroproxy API

This is unofficial ESM API wrapper for https://astroproxy.com/ written on Typescript.

Documentation

Typescript documentation is available here

Basic usage

const astroproxyApi = new Astroproxy("YOUR_API_KEY");

const ports = await astroproxyApi.getPorts();

// Get Reset URL
console.log(ports[0].changeIpUrl.toString());
// Get Socks URL
console.log(ports[0].socksUrl.toString());
// Get HTTPS URL
console.log(ports[0].httpsUrl.toString());
// Get HTTP URL
console.log(ports[0].httpUrl.toString());

// Reset IP
await port[0].newIp();

Readme

Keywords

Package Sidebar

Install

npm i astroproxy-api

Weekly Downloads

2

Version

1.0.9

License

ISC

Unpacked Size

32.4 kB

Total Files

24

Last publish

Collaborators

  • badvolt