
Agoda Scraper
Pay $8.00 for 1,000 results
This Actor may be unreliable while under maintenance. Would you like to try a similar Actor instead?
See alternative Actors
Agoda Scraper
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.
Actor Metrics
10 monthly users
No reviews yet
3 bookmarks
>99% runs succeeded
Created in May 2024
Modified 4 days ago
You can access the Agoda Scraper programmatically from your own 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.
1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {
9 "urls": [{ "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" }],
10 "maxConcurrency": 1,
11 "maxNumberOfResults": 90,
12 "proxyConfiguration": { "useApifyProxy": True },
13}
14
15# Run the Actor and wait for it to finish
16run = client.actor("ivanvs/fast-agoda-scraper").call(run_input=run_input)
17
18# Fetch and print Actor results from the run's dataset (if there are any)
19print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
20for item in client.dataset(run["defaultDatasetId"]).iterate_items():
21 print(item)
22
23# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Agoda Scraper API in Python
The Apify API client for Python is the official library that allows you to use Agoda Scraper API in Python, providing convenience functions and automatic retries on errors.
Install the apify-client
pip install apify-client
Other API clients include: