Agoda Scraper avatar

Agoda Scraper

Try for free

Pay $8.00 for 1,000 results

Go to Store
Agoda Scraper

Agoda Scraper

ivanvs/fast-agoda-scraper
Try for free

Pay $8.00 for 1,000 results

Scrape Agoda.com with this scraper and get data about accommodation on Agoda.com. Extract data by URLs for hotel prices, ratings, number of reviews, images. Scrape and download data from Agoda.com in JSON, Excel, HTML ,and CSV.

You can access the Agoda Scraper programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6    token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11    "urls": [
12        {
13            "url": "https://www.agoda.com/search?city=2002&checkIn=2024-11-17&los=4&rooms=1&adults=2&children=0&cid=1891458&locale=en-us&ckuid=b562286c-42e1-4863-9fcc-29fa62237d77&prid=0&gclid=Cj0KCQjw6auyBhDzARIsALIo6v8trlSwJ5PkogO2QVsRUyTvU15vNIqNeye_5TISy6-1DIfajcqACHkaAgw8EALw_wcB&currency=EUR&correlationId=679bfdad-f530-417c-b9a8-09977714401e&analyticsSessionId=-5159500142018198708&pageTypeId=1&realLanguageId=1&languageId=1&origin=RS&stateCode=06&tag=e6f69b67-c544-262c-b720-5f8f711bbe26&userId=b562286c-42e1-4863-9fcc-29fa62237d77&whitelabelid=1&loginLvl=0&storefrontId=3&currencyId=1&currencyCode=EUR&htmlLanguage=en-us&cultureInfoName=en-us&machineName=am-pc-4g-acm-web-user-8cf85f99c-zsddp&trafficGroupId=5&sessionId=njgc050c4jilhylc254hisdh&trafficSubGroupId=122&aid=82361&useFullPageLogin=true&cttp=4&isRealUser=true&mode=production&browserFamily=Firefox&cdnDomain=agoda.net&checkOut=2024-11-21&priceCur=EUR&textToSearch=Barcelona&travellerType=1&familyMode=off&productType=-1"
14        }
15    ],
16    "maxConcurrency": 1,
17    "maxNumberOfResults": 90,
18    "proxyConfiguration": {
19        "useApifyProxy": true
20    }
21};
22
23// Run the Actor and wait for it to finish
24const run = await client.actor("ivanvs/fast-agoda-scraper").call(input);
25
26// Fetch and print Actor results from the run's dataset (if any)
27console.log('Results from dataset');
28console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
29const { items } = await client.dataset(run.defaultDatasetId).listItems();
30items.forEach((item) => {
31    console.dir(item);
32});
33
34// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

Agoda Scraper API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use Agoda Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

npm install apify-client

Other API clients include:

Developer
Maintained by Community

Actor Metrics

  • 6 monthly users

  • 3 stars

  • >99% runs succeeded

  • Created in May 2024

  • Modified 2 days ago

Categories