Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Net.Http;
- class Program
- {
- static async Task Main()
- {
- // Create an instance of HttpClient
- HttpClient httpClient = new HttpClient();
- // Define the ZenRows API URL
- string zenRowsApiUrl = "https://api.zenrows.com/v1/?apikey=<YOUR_ZENROWS_API_KEY>&url=https%3A%2F%2Fwww.g2.com%2F&js_render=true&antibot=true&premium_proxy=true";
- // Make a GET request to httpbin.io/user-agent
- HttpResponseMessage response = await httpClient.GetAsync(zenRowsApiUrl);
- // Read and print the content
- string content = await response.Content.ReadAsStringAsync();
- Console.WriteLine(content);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement