Advertisement
dereksir

Untitled

Mar 19th, 2024 (edited)
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. import org.apache.hc.client5.http.fluent.Request;
  2.  
  3. public class APIRequest {
  4.     public static void main(final String... args) throws Exception {
  5.         String apiUrl = "https://api.zenrows.com/v1/?apikey=<YOUR_ZENROWS_API_KEY>&url=https%3A%2F%www.amazon.com%2FLumineux-Teeth-Whitening-Strips-Treatments-Enamel-Safe%2Fdp%2FB082TPDTM2%2F&js_render=true";
  6.         String response = Request.get(apiUrl)
  7.                 .execute().returnContent().asString();
  8.  
  9.         System.out.println(response);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement