API reference

This section contains all the information required to effectively use and integrate Scraper APIs. It includes details about integration methods, authentication, global parameter values, rate limits, response codes, cloud integration, usage statistics, billing information as well as download images.

Getting started

  1. Register to the Oxylabs dashboard to get started.

  2. Try Scraper APIs for free for 1 week or choose a subscription plan.

You can also test out our scrapers and parsers through the Scraper APIs Playground, which is accessible via our dashboard.

Creating a job

To start scraping with one of our Scraper APIs, follow the simple steps below:

  1. Select the target you want to scrape under the Scraper API you are using.

    • E.g., if you are trying out our SERP Scraper API, you can choose to scrape Google, Baidu, or any other search engine. Our Scraper APIs are on the left-hand side menu.

  2. Choose your preferred page type under the chosen target.

    • E.g., if you want to scrape Google, you can scrape it by providing a URL to your target page or a few input parameters via specifically built page types (e.g., Search, Ads, and other) so we can form the URL on our end.

  3. Put together a query and send it to our API.

    • Under the chosen page type, you will find code examples in different programming languages. Use them to build your query and make sure always to include the following elements:

IMPORTANT: Always replace USERNAME and PASSWORD in the provided code examples with your API user credentials. Check out the authentication section for more information.

Tools for manual testing

If you want to try our API manually before using it at scale, we recommend using Postman. Every scraper API, has its own Postman collection, which you can import to Postman and start scraping right away. The collections contain request templates for various sources and integration methods. More information can be found here:

pagePostman
  • At any point you can check out your all-time usage statistics by querying the following endpoint: GET https://data.oxylabs.io/v2/stats. It's also possible to return your monthly or daily numbers. Visit the below section for more information.

pageUsage Statistics
  • Employ the Headless Browser for efficient scraping of JavaScript-heavy websites, enabling the execution of diverse browser instructions including clicks, scrolls, inputs, waits, and more.

pageHeadless Browser
  • Discover the Custom Parser feature, which empowers you to define your own parsing and data processing logic to be executed on raw scraping results.

pageCustom Parser
  • Try out Web Crawler - a Scraper APIs feature that lets you crawl any site, select useful content and have it delivered to you in bulk.

pageWeb Crawler
  • Check out our Scraper APIs Scheduler functionality. It can be used for recurring scraping and parsing jobs.

pageScheduler
  • Check out Oxylabs GitHub for tutorials on how to scrape websites, use our tools, implement products or integrate them using the most popular programming languages (e.g., C#, Java, NodeJs, PHP, Python, etc.).

  • Explore our Scraping expert lessons to delve deeper into the most relevant scraping topics presented by industry experts.

If you need any assistance in making your query, feel free to contact us at support@oxylabs.io or via the 24/7 available live chat.

All information herein is provided on an “as is” basis and for informational purposes only. We make no representation and disclaim all liability with respect to your use of any information contained on this page. Before engaging in scraping activities of any kind you should consult your legal advisors and carefully read the particular website’s terms of service or receive a scraping license.

Last updated