LogoLogo
OverviewRelease NotesDataPipelineFAQs
Python
Python
  • Make Requests with ScraperAPI in Python
    • Use ScraperAPI Endpoint in Python
    • Use ScraperAPI Proxy Port in Python
    • Use ScraperAPI SDK in Python
    • Make Async Requests with ScraperAPI in Python
      • How to Use ScraperAPI Async Web Scraping in Python
      • Use Async ScraperAPI Callbacks in Python
      • Configure ScraperAPI Parameters in Python
      • Request Async Batch Scraping with ScraperAPI in Python
      • Decode Base64 Async Responses in Python
    • ScraperAPI Structured Data Collection in Python
      • Amazon Product Page API: Structured Data in Python
      • Amazon Search API: Structured Data in Python
      • Amazon Offers API: Structured Data in Python
      • Amazon Reviews API: Structured Data in Python
      • Ebay Product Page API: Structured Data in Python
      • Ebay Search API: Structured Data in Python
      • Google SERP API: Structured Data in Python
      • Google News API: Structured Data in Python
      • Google Jobs API: Structured Data in Python
      • Google Shopping API: Structured Data in Python
      • Google Maps Search API: Structured Data in Python
      • Redfin Agent Details API: Structured Data in Python
      • Redfin 'For Rent' Listings API: Structured Data in Python
      • Redfin 'For Sale' Listings API: Structured Data in Python
      • Redfin Listing Search API: Structured Data in Python
      • Walmart Search API: Structured Data in Python
      • Walmart Category API: Structured Data in Python
      • Walmart Product API: Structured Data in Python
      • Walmart Reviews API: Structured Data in Python
    • ScraperAPI Async Structured Data Collection in Python
      • Amazon Product Page API: Async Structured Data in Python
      • Amazon Search API: Async Structured Data in Python
      • Amazon Offers API: Async Structured Data in Python
      • Amazon Reviews API: Async Structured Data in Python
      • Ebay Product Page API: Async Structured Data in Python
      • Ebay Search API: Async Structured Data in Python
      • Google SERP API: Async Structured Data in Python
      • Google News API: Async Structured Data in Python
      • Google Jobs API: Async Structured Data in Python
      • Google Shopping API: Async Structured Data in Python
      • Google Maps Search API: Async Structured Data in Python
      • Redfin Agent Details API: Async Structured Data in Python
      • Redfin 'For Rent' Listings API: Async Structured Data in Python
      • Redfin 'For Sale' Listings API: Async Structured Data in Python
      • Redfin Listing Search API: Async Structured Data in Python
      • Walmart Search API: Async Structured Data in Python
      • Walmart Category API: Async Structured Data in Python
      • Walmart Product API: Async Structured Data in Python
      • Walmart Reviews API: Async Structured Data in Python
    • Making POST/PUT Requests with ScraperAPI in Python
    • Customizing ScraperAPI Requests in Python
      • Customize Amazon Requests by ZIP Code via ScraperAPI in Python
      • Customize Cached Results via ScraperAPI in Python
      • Customize Control Costs with ScraperAPI Parameter in Python
      • Send Custom Headers with ScraperAPI in Python
      • Customize Device Type with ScraperAPI in Python
      • Customize Geotargeted Content Scrape via ScraperAPI in Python
      • Customize Premium Geotargeted Scrape via ScraperAPI in Python
      • Customize Header Parameter with ScraperAPI in Python
      • Customize Premium Residential/Mobile Proxies in Python
      • Customize JavaScript-Rendered Pages via ScraperAPI in Python
        • Use Render Instruction Set to Scrape Dynamic Pages in Python
        • Customize Taking a Website Screenshots via ScraperAPI in Python
      • Customize Scrape Session-Based Proxies via ScraperAPI in Python
  • Handle and Process Responses via ScraperAPI in Python
    • Use API Status Codes to Retry Failed Requests in Python
    • Customize Output Formats via ScraperAPI Parameters in Python
      • Request JSON Response via Autoparse Parameter in Python
      • Request LLM Output Formats with ScraperAPI in Python
    • Request Response Encoding and Content-Type via ScraperAPI in Python
  • Dashboard & Billing
    • API Key
    • Credit Usage
    • Delete Account
    • Invoice History
    • Billing Email
    • Billing Adress
    • VAT Number
    • Payment Method
    • Cancel Subscription
  • Credits and Requests
  • Monitor Your ScraperAPI Account Information in Python
  • Documentation Overview
Powered by GitBook

Quick links

  • Homepage
  • Dashboard
  • Pricing
  • Contact Sales

Resources

  • Developer Guides
  • Blog
  • Learning Hub
  • Contact Support
On this page

Was this helpful?

  1. Make Requests with ScraperAPI in Python

Make Async Requests with ScraperAPI in Python

Learn how to send async requests with ScraperAPI in Python. The async method works until success, making it perfect for difficult pages and periodic data collection.

To ensure a higher level of successful requests when using our scraper, we’ve built a new product, Async Scraper. Rather than making requests to our endpoint waiting for the response, this endpoint submits a job of scraping, in which you can later collect the data from using our status endpoint.

Scraping websites can be a difficult process; it takes numerous steps and significant effort to get through some sites’ protection which sometimes proves to be difficult with the timeout constraints of synchronous APIs. The Async Scraper will work on your requested URLs until we have achieved a 100% success rate (when applicable), returning the data to you.

Async Scraping is the recommended way to scrape pages when success rate on difficult sites is more important to you than response time (e.g. you need a set of data periodically).

Last updated 1 year ago

Was this helpful?