{"repo":"ZenRows/zenrows-node-sdk","free":true,"listed":false,"github":"https://github.com/ZenRows/zenrows-node-sdk","clone":"git clone https://github.com/ZenRows/zenrows-node-sdk.git","description":"SDK to access ZenRows API directly from Node.js. We handle proxies rotation, headless browsers and CAPTCHAs for you.","language":"TypeScript","stars":17,"topics":["scraping","rotating-proxy","scraper","javascript","nodejs","proxies","proxy","sdk","sdk-js","webscraping"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"ZenRows Node.js SDK SDK to access ZenRows API directly from Node.js. ZenRows handles proxies rotation, headless browsers, and CAPTCHAs for you. Installation Install the SDK with your package manager of choice. Usage Start using the API by creating your API Key. The SDK uses the official fetch api for HTTP requests. The client's response will be a Response . It also uses fetch-retry to automatically retry failed requests (status code 429 and 5XX). Retries are not active by default; you need to specify the number of retries, as shown below. It already includes an exponential back-off retry delay between failed requests. You can also pass optional parameters and headers; the list above is a reference. For more info, check out the documentation page. Sending headers to the target URL will overwrite our defaults. Be careful when doing it and contact us if there is any problem. POST Requests The SDK also offers POST requests by calling the client.post method. It can receive a new parameter data that represents the data sent in, for example, a form. Concurrency To limit the concurrency, it uses fastq, which will simultaneously send a maximum of requests. The concurrency is determined by the plan you are in, so take a look at the pricing and set it accordingly. Take into account that each client instance will have its own limit, meaning that two different scripts will not share it, and 429 (Too Many Requests) errors might arise. We use Promise.allSettled() in the example below, avail","default_branch":null,"files":null,"tree":[],"storefront":"/r/ZenRows","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ZenRows/zenrows-node-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}