LogoLogo
LunaProxy Dashboard
English
English
  • Overview
  • Proxies
    • Integration Guide
      • Dealer Guide
      • Residential Proxies Guide
        • Adspower
        • ClonBrowser
        • Hubstudio
        • Maskfog
        • BitBrowser
        • NestBroswer
        • Google
        • TigerAI browser
        • Edge browser
        • YunLark
        • SwitchyOmega
        • Insomniac
        • Opera
        • IE
        • Safari
        • Firefox
        • Chrome
        • iphone
        • Android
        • Another Nike Bot
        • YangTaoBrowser
        • Ximera
        • Mac
        • Surfinite
        • OctoBrowser
        • Windows 10
        • PVACreator
        • Alayu
        • Kameleo
        • Follow Liker
        • Antik
        • SENukeTNG
        • Undetectable
        • Ghost
        • ScrapeBox
        • Octoparse
        • Indigo
        • Apify
        • IXBrowser
        • Genlogin
        • Dolphin{anty}
        • Shadowrocket
        • FoxyProxy
        • Proxifier
        • Hidemium
        • Lalicat
        • VMMask
        • MBBrowser
        • XLogin
        • MoreLogin
        • linken sphere
        • Multilogin
        • Purple Bird Browser
        • adsvirgin browser
        • Sphere
        • Incogniton
        • MuLogin
        • GoLogin
        • VMLogin
        • Dicloak
        • Nstbrowser
      • Unlimited Residential Guide
        • Adspower
        • ClonBrowser
        • Hubstudio
        • Maskfog
        • BitBrowser
        • NestBroswer
        • Google
        • TigerAI browser
        • Edge browser
        • YunLark
        • SwitchyOmega
        • Insomniac
        • Opera
        • IE
        • Safari
        • Firefox
        • Chrome
        • iphone
        • Android
        • Another Nike Bot
        • YangTaoBrowser
        • Ximera
        • Mac
        • Surfinite
        • OctoBrowser
        • Windows 10
        • PVACreator
        • Alayu
        • Kameleo
        • Follow Liker
        • Antik
        • SENukeTNG
        • Undetectable
        • Ghost
        • ScrapeBox
        • Octoparse
        • Indigo
        • Apify
        • IXBrowser
        • Genlogin
        • Dolphin{anty}
        • Shadowrocket
        • FoxyProxy
        • Proxifier
        • Hidemium
        • Lalicat
        • VMMask
        • MBBrowser
        • XLogin
        • MoreLogin
        • linken sphere
        • Multilogin
        • Purple Bird Browser
        • adsvirgin browser
        • Sphere
        • Incogniton
        • MuLogin
        • GoLogin
        • VMLogin
        • Dicloak
        • Nstbrowser
      • Rotating ISP Guide
        • Adspower
        • ClonBrowser
        • Hubstudio
        • Maskfog
        • BitBrowser
        • NestBroswer
        • Google
        • TigerAI browser
        • Edge browser
        • YunLark
        • SwitchyOmega
        • Insomniac
        • Opera
        • IE
        • Safari
        • Firefox
        • Chrome
        • iphone
        • Android
        • Another Nike Bot
        • YangTaoBrowser
        • Ximera
        • Mac
        • Surfinite
        • OctoBrowser
        • Windows 10
        • PVACreator
        • Alayu
        • Kameleo
        • Follow Liker
        • Antik
        • SENukeTNG
        • Undetectable
        • Ghost
        • ScrapeBox
        • Octoparse
        • Indigo
        • Apify
        • IXBrowser
        • Genlogin
        • Dolphin{anty}
        • Shadowrocket
        • FoxyProxy
        • Proxifier
        • Hidemium
        • Lalicat
        • VMMask
        • MBBrowser
        • XLogin
        • MoreLogin
        • linken sphere
        • Multilogin
        • Purple Bird Browser
        • adsvirgin browser
        • Sphere
        • Incogniton
        • MuLogin
        • GoLogin
        • VMLogin
        • Dicloak
        • Nstbrowser
      • ISP Proxies Guide
        • Adspower
        • ClonBrowser
        • Hubstudio
        • Maskfog
        • BitBrowser
        • NestBroswer
        • Google
        • TigerAI browser
        • Edge browser
        • YunLark
        • SwitchyOmega
        • Insomniac
        • Opera
        • IE
        • Safari
        • Firefox
        • Chrome
        • iphone
        • Android
        • Another Nike Bot
        • YangTaoBrowser
        • Ximera
        • Mac
        • Surfinite
        • OctoBrowser
        • Windows 10
        • PVACreator
        • Alayu
        • Kameleo
        • Follow Liker
        • Antik
        • SENukeTNG
        • Undetectable
        • Ghost
        • ScrapeBox
        • Octoparse
        • Indigo
        • Apify
        • IXBrowser
        • Genlogin
        • Dolphin{anty}
        • Shadowrocket
        • FoxyProxy
        • Proxifier
        • Hidemium
        • Lalicat
        • VMMask
        • MBBrowser
        • XLogin
        • MoreLogin
        • linken sphere
        • Multilogin
        • Purple Bird Browser
        • adsvirgin browser
        • Sphere
        • Incogniton
        • MuLogin
        • GoLogin
        • VMLogin
        • Dicloak
        • Nstbrowser
      • Static Datacenter Proxies Guide
        • Adspower
        • ClonBrowser
        • Hubstudio
        • Maskfog
        • BitBrowser
        • NestBroswer
        • Google
        • TigerAI browser
        • Edge browser
        • YunLark
        • SwitchyOmega
        • Insomniac
        • Opera
        • IE
        • Safari
        • Firefox
        • Chrome
        • iphone
        • Android
        • Another Nike Bot
        • YangTaoBrowser
        • Ximera
        • Mac
        • Surfinite
        • OctoBrowser
        • Windows 10
        • PVACreator
        • Alayu
        • Kameleo
        • Follow Liker
        • Antik
        • SENukeTNG
        • Undetectable
        • Ghost
        • ScrapeBox
        • Octoparse
        • Indigo
        • Apify
        • IXBrowser
        • Genlogin
        • Dolphin{anty}
        • Shadowrocket
        • FoxyProxy
        • Proxifier
        • Hidemium
        • Lalicat
        • VMMask
        • MBBrowser
        • XLogin
        • MoreLogin
        • linken sphere
        • Multilogin
        • Purple Bird Browser
        • adsvirgin browser
        • Sphere
        • Incogniton
        • MuLogin
        • GoLogin
        • VMLogin
        • Dicloak
        • Nstbrowser
      • Getting Started Guide
        • Whitelist and Blacklist Guide
        • How to use luna wallet
        • How to change password
        • Purchase tutorial
        • Registration and login tutorial
        • Introduction to Proxy Manager
        • Luna S5 proxy function introduction
        • Tutorial on adding and using sub-accounts
        • IP whitelisting tutorial
        • How to earn and use points
    • Residential Proxies
      • Get Proxy
        • API
        • User & Pass Auth
        • Cache Proxy
          • How to install an SSL certificate
    • Unlimited Residential Proxies
      • Get Proxy
        • API
        • User & Pass Auth
    • Rotating ISP Proxies
      • Get Proxy
        • API
        • User & Pass Auth
    • ISP Proxies
      • Get Proxy
    • Datacenter Proxies
      • Get Proxy
    • FAQ
  • ADVANCED PROXY SOLUTIONS
    • Universal Scraping API
      • Getting Started
      • Making Requests
        • Geo-location
        • JavaScript rendering
        • Blocking Resource Loading
  • FREE TOOLS
    • Luna s5 Proxy
      • LunaS5 tutorial
      • Interface introduction
      • Integration Tutorial
        • Linux
        • Undetectable
        • VMLogin
        • Alayu
        • YTBrowser
        • Multilogin
        • YunLogin
        • MoreLogin
        • Incogniton
        • XLogin
        • ClonBrowser
        • Adspower
        • Vmmask
        • Mulogin
        • MaskFog
        • Dolphin{anty}
        • Lalicat
        • MBbrowser
        • BitBrowser
    • Proxy Manager
      • Proxy Manager usage tutorial
      • Proxy Manager Integration
      • Setting up the Proxy Manager
    • Google Extensions
  • TROUBLESHOOTING
    • Login abnormality
    • Account banned
    • Payment not received
    • SSL authentication error
    • Slow speed
    • IP location mismatch
    • IP cannot connect
      • Dynamic IP cannot connect
      • Static IP cannot connect
  • FAQ
    • Product Problem
      • Is there a way to trace the target site back to us?
      • The IP test result does not match the region where I purchased and extracted it.
      • How many threads / connections can your proxy use at the same time?
      • Query the number of countries and IPs covered by each package
      • What is the difference between a static planning proxy and any other planning proxy?
      • What does an unlimited package mean?
      • How to detect the local IP address?
      • Does LunaProxy's residential proxy support authentication by username and password?
      • About the IP location database, and how to view proxy IP information?
      • What types of IPs does LunaProxy offer?
      • What is a Proxy Server and How Does it Work?
      • Residential Certification Methods
      • What proxy packages does LunaProxy provide
      • Can unlimited proxies select countries
      • The difference between dynamic residential and unlimited residential
      • The difference between dynamic residential and long-acting ISP
      • What is the difference between static IP and dynamic IP
      • Do I need to purchase additional traffic for static IP
      • How to extend the validity period of the proxy
      • What authentication methods are supported? What is the difference
    • Buy Problem
      • Will the traffic record my balance immediately after paying on your website?
      • Do you provide a trial or payment refund?
      • I paid for the wrong account!what should I do?
      • How long does it take to receive the proxy balance or activate my account?
      • How to solve the problem of buying the wrong package
      • How to solve the problem of IP not being able to renew
      • How to get an invoice
      • How to solve the problem of not receiving the proxy after payment
      • What are the payment methods
Powered by GitBook
On this page
  • Rendering Type
  • Scrape the HTML of a website
  • Enable JavaScript rendering

Was this helpful?

  1. ADVANCED PROXY SOLUTIONS
  2. Universal Scraping API
  3. Making Requests

JavaScript rendering

We provide a complete solution that saves you from setting up proxies, browser fingerprinting, headless browsers, etc. Just set the render type in the header and you will receive a rendered result.

Rendering Type


You can choose between two rendering types:

  • png(raw bytes that can be saved as PNG)

  • html(The HTML of the rendered page)

Receives rendered page content in HTML format

curl --request POST --url https://unlocker-api.lunaproxy.com/request --header "Authorization: Bearer token" --header "content-type: application/json" --data "{\"url\":\"https://www.google.com/\",\"type\":\"html\",\"js_render\":\"False\"}" > google.html

Scrape the HTML of a website


In this example, we will render the YouTube homepage and scrape the page content. Typically, if the generic crawling API is used without JavaScript rendering, YouTube's homepage looks like this:

Enable Javascript rendering, and return the HTML of the rendered page:

curl --request POST --url https://unlocker-api.lunaproxy.com/request --header "Authorization: Bearer token" --header "content-type: application/json" --data "{\"url\":\"https://www.google.com/\",\"type\":\"html\",\"js_render\":\"True\"}" > google.html

Receive rendered page content in PNG format

The response will contain the raw bytes of an image that can be saved as a PNG format.

curl --request POST --url https://unlocker-api.lunaproxy.com/request --header "Authorization: Bearer token" --header "content-type: application/json" --data "{\"url\":\"https://www.google.com/\",\"type\":\"png\",\"js_render\":\"True\"}" > google.png

It can be saved in PNG format and opened as follows:

Enable JavaScript rendering


To activate JavaScript rendering, set js_render=true and we will use the browser to make the request.

To activate JavaScript rendering, set js_render=true and we will use the browser to make the request.

curl --request POST --url 
https://unlocker-api.lunaproxy.com/request
 --header "Authorization: Bearer token" --header "content-type: application/json" --data "{\"url\":\"
https://www.google.com/\",\"type\":\"png\",\"js_render\":\"True\"}"
 > google.png
PreviousGeo-locationNextBlocking Resource Loading

Last updated 1 day ago

Was this helpful?