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
  • Setting up the Universal Scraper API
  • Getting Started
  • Send the First Request
  • Parameter Overview

Was this helpful?

  1. ADVANCED PROXY SOLUTIONS
  2. Universal Scraping API

Getting Started

PreviousUniversal Scraping APINextMaking Requests

Last updated 1 day ago

Was this helpful?

Setting up the Universal Scraper API


LunaProxy’s Universal Scraper API makes it quick, efficient, and easy to extract data from web pages. Whether you’re new or already experienced, LunaProxy can meet your needs and allow you to easily collect data from the web while overcoming common challenges brought by modern websites, including CAPTCHA and anti-bot mechanisms.

Getting Started


1.After logging in,click on the sidebar Universal Scraper API to enter the Request Configuration page.

2.Configure request parameters

LunaProxy’s API provides a simple way to scrape the web with only two key parameters:

  • API Token – a unique key used to authenticate requests.

Make sure to store your key securely and never share it publicly.

  • URL – the target URL you want to scrape.

Be sure to double-check that the URL you want to scrape is correct to avoid issues with special characters such as spaces, question marks, and & symbols. This will avoid common problems such as request interruptions or incorrect data parsing.

You can do the following:

  1. Select the API Token you want to use (to create a new token, click to jump to the sub-account page)

  2. Paste the target URL into the input box.

  3. Select the rendering method html or png.

  4. Enable other parameters such as: js rendering, blocking loading, country/region

  5. Select the programming language. For general use, please select "cURL" to generate a complete API endpoint that works with any HTTP client.

  6. Copy the generated code and integrate it into your own script.

Send the First Request


Take data crawling from https://www.google.com/ as an example. Please don’t forget to replace “token” with your API Token.

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

Parameter Overview


Customize your scraping requests using the following parameters:

PARAMETER
TYPE
DEFAULT
DESCRIPTION

token required

string

Your unique API key for authentication.

url required

string

The URL of the page you want to scrape.

js_render

boolean

false

Enable JavaScript rendering with a headless browser. Essential for modern web apps, SPAs, and sites with dynamic content.

proxy

string

Set the country of the IP used for the request (requires Premium Proxies).

block

string

Block specific resources (images, fonts, etc.) from loading to speed up scraping and reduce bandwidth usage.

type

string

The rendering type is html or png, the default is html.

(Click to jump to the create api token page)

Get Your Free API Token