![Agoda Scraper avatar](https://images.apifyusercontent.com/NBjrHYxBvAkTxpyLiHkrTyVeXs2_3g1R9AVmDb-g-Qo/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vOGdQVzNmbzh1ZGVBVWJ5dWgvZXI1ZkVUWTBzYU1BQ2RBMVktYWdvZGEucG5n.webp)
Agoda Scraper
Try for free
Pay $8.00 for 1,000 results
View all Actors![Agoda Scraper](https://images.apifyusercontent.com/NBjrHYxBvAkTxpyLiHkrTyVeXs2_3g1R9AVmDb-g-Qo/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vOGdQVzNmbzh1ZGVBVWJ5dWgvZXI1ZkVUWTBzYU1BQ2RBMVktYWdvZGEucG5n.webp)
![Agoda Scraper](https://images.apifyusercontent.com/NBjrHYxBvAkTxpyLiHkrTyVeXs2_3g1R9AVmDb-g-Qo/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vOGdQVzNmbzh1ZGVBVWJ5dWgvZXI1ZkVUWTBzYU1BQ2RBMVktYWdvZGEucG5n.webp)
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.
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5 token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10 "urls": [
11 {
12 "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¤cy=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¤cyId=1¤cyCode=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"
13 }
14 ],
15 "maxConcurrency": 1,
16 "maxNumberOfResults": 100,
17 "proxyConfiguration": {
18 "useApifyProxy": true
19 }
20};
21
22(async () => {
23 // Run the Actor and wait for it to finish
24 const run = await client.actor("ivanvs/fast-agoda-scraper").call(input);
25
26 // Fetch and print Actor results from the run's dataset (if any)
27 console.log('Results from dataset');
28 console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
29 const { items } = await client.dataset(run.defaultDatasetId).listItems();
30 items.forEach((item) => {
31 console.dir(item);
32 });
33})();
34
35// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
- 6 monthly users
- 2 stars
- 97.1% runs succeeded
- Created in May 2024
- Modified 17 days ago