Proxy
We have a free proxy you can use if you need one: http://xo:llksoigsgrewvc@137.184.64.168:3128
Code Example:
NodeJS PHP Go Java Python Ruby
Copy const axios = require( "axios" );
let config = { method : "get" , maxBodyLength : Infinity , url : "https://shot.screenshotapi.net/screenshot?token=TOKEN&url=https%3A%2F%2Fgoogle.com&output=image&file_type=png&wait_for_event=load&proxy=http%3A%2F%2Fxo%3Allksoigsgrewvc%40157.230.191.197%3A3128" , headers : { } } ;
axios . request (config) . then ((response) => { console . log (JSON. stringify (response.data)); } . catch ((error) => { console . log (error); });
Copy <?php $client = new http . Client ; $request = new http . Client . Request ; $request -> setRequestUrl ( "https://shot.screenshotapi.net/screenshot?token=TOKEN&url=https%3A%2F%2Fgoogle.com&output=image&file_type=png&wait_for_event=load&proxy=http%3A%2F%2Fxo%3Allksoigsgrewvc%40157.230.191.197%3A3128" ); $request -> setRequestMethod ( "'GET'" ); $request -> setOptions ( array ());
$client -> enqueue ( $request ) -> send (); $response = $client -> getResponse (); echo $response -> getBody (); ?>
Copy package main
import ( "fmt" "net/http" "io" )
func main () { url := "https://shot.screenshotapi.net/screenshot?token=TOKEN&url=https%3A%2F%2Fgoogle.com&output=image&file_type=png&wait_for_event=load&proxy=http%3A%2F%2Fxo%3Allksoigsgrewvc%40157.230.191.197%3A3128" method := "GET"
client := & http . Client { } req , err := http . NewRequest (method, url, nil)
if err != nil { fmt . Println ( err ) return }
res , err := client . Do (req) if err != nil { fmt . Println ( err ) return }
defer res . Body . Close () body , err := io . ReadAll (res.Body) if err != nil { fmt . Println ( err ) return }
fmt . Println ( string ( body ) ) }
Copy OkHttpClient client = new OkHttpClient () . newBuilder () . build (); MediaType mediaType = MediaType . parse ( "text/plain" ) ; RequestBody body = RequestBody . create ( mediaType , "" ) ; Request request = new Request . Builder () . url ( "https://shot.screenshotapi.net/screenshot?token=TOKEN&url=https%3A%2F%2Fgoogle.com&output=image&file_type=png&wait_for_event=load&proxy=http%3A%2F%2Fxo%3Allksoigsgrewvc%40157.230.191.197%3A3128" ) . method ( "GET" , body ) . build (); Response response = client . newCall ( request ) . execute ();
Copy import requests
url = "https://shot.screenshotapi.net/screenshot?token=TOKEN&url=https%3A%2F%2Fgoogle.com&output=image&file_type=png&wait_for_event=load&proxy=http%3A%2F%2Fxo%3Allksoigsgrewvc%40157.230.191.197%3A3128" payload = {} headers = {}
response = requests . request ( "GET" , url , headers , data = payload ) print ( response . text )
Copy require "uri" require "net/http"
url = URI ( "https://shot.screenshotapi.net/screenshot?token=TOKEN&url=https%3A%2F%2Fgoogle.com&output=image&file_type=png&wait_for_event=load&proxy=http%3A%2F%2Fxo%3Allksoigsgrewvc%40157.230.191.197%3A3128" )
https = Net :: HTTP . new ( url . host , url . port ) https . use_ssl = true
request = Net :: HTTP :: Get . new ( url )
response = https . request ( request ) puts response . read_body
When applying the proxy URL http://xo:llksoigsgrewvc@137.184.64.168:3128
, it routes the traffic through the specified proxy server, effectively masking the original IP address of the client and using the IP address of the proxy server for accessing the target website.
Video Example:
In the attached video, the IP address of the website ipgeolocation.io
is shown as 116.202.157.120
. After applying the proxy http://xo:llksoigsgrewvc@157.230.191.197:3128
, the screenshot captured reflects the IP address 157.230.191.197
. This demonstrates the successful application of the proxy during the screenshot process.