# Agoda Hotel Scraper

Scrape hotel booking information(hotel, rating, review volume, price, etc.) by keyword.

- Template page: [https://www.octoparse.com/template/agoda-hotel-scraper](https://www.octoparse.com/template/agoda-hotel-scraper)
- Categories: Travel
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from general web pages.

## Output

The current workflow extracts 15 fields, including `리뷰별점`, `리뷰평가`, `매력포인트`, `숙소링크`, `숙소이름`, `시작시간`, `여행지`, `예약가능한숙소`, `예약취소`, `요금시작가`, `위치_및_거리`, `이용후기수`, `인수_및_객실수`, `종료시간`, `최근예약`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete URL and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### URL

Optional. web page URL Constraints: minItems=1; maxItems=100; items.minLength=1; items.maxLength=5000.

## How to Use

# Agoda Hotel Scraper

Collects hotel booking information (hotel, rating, review volume, price) by keyword from [Agoda](https://www.agoda.com/).

## Pricing

This template currently has no per-line charge.

## Output

Returns detail-page fields including:

- `여행지`
- `예약가능한숙소`
- `시작시간`
- `종료시간`
- `인수_및_객실수`
- `숙소이름`
- `숙소링크`
- `위치_및_거리`
- `리뷰평가`
- `리뷰별점`
- `이용후기수`
- `매력포인트`
- `최근예약`
- `요금시작가`
- `예약취소`

Fields such as `최근예약`, `요금시작가`, and `예약취소` can be empty when the source record does not provide them.

## Input

- **URL** (optional): Enter one or more values, one per line.

## How to Use

1. Open the template and select **Try it** or **Start**.
2. Complete the input fields.
3. Choose a local or cloud run.
4. Review the output rows and export or process the structured data.

## Scheduling and API Access

- You can schedule recurring runs locally or in the cloud and export collected data through Octoparse OpenAPI or the [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates).
- Scheduling and API access may require a paid Octoparse plan.
- For local scheduled runs, keep your computer and Octoparse open.

## Limitations

- Collects only the fields listed in Output from detail pages; it does not add data that Agoda does not display.
- Does not collect a complete review or comment history.

## Tips

- Start with one or a few inputs and review the returned rows before scaling.
- Use the most specific valid URL to reduce unrelated or duplicate records.
- Use a stable URL or identifier from the output fields as the deduplication key when available.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Booking.com Hotel Listing Scraper](https://www.octoparse.com/template/booking-com-scraper)
- [TripAdvisor Hotel Reviews Scraper](https://www.octoparse.com/template/tripadvisor-hotel-reviews-scraper)
- [Tripadvisor Hotel Details Scraper](https://www.octoparse.com/template/tripadvisor-hotel-detalles-scraper)
- [Jalan Hotel Listings Scraper](https://www.octoparse.com/template/jalan-hotel-listings-scraper)
- [Airbnb.fr Hotel Info Scraper](https://www.octoparse.com/template/airbnb-fr-hotel-info-scraper)

## Input Schema

```json
{
  "title": "Agoda Hotel Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "uRL": {
      "title": "URL",
      "description": "web page URL",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      },
      "minItems": 1,
      "maxItems": 100,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": []
}
```

## Input JSON Example

Example 1

```json
{
  "uRL": [
    "https://www.agoda.com/ja-jp/search?area=57506&locale=ja-jp&ckuid=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&prid=0&currency=JPY&correlationId=59bc1f20-da84-42d1-9208-34799d98a2f4&analyticsSessionId=2938522237287211812&pageTypeId=7&realLanguageId=6&languageId=6&origin=JP&cid=1891462&tag=b5642155-2a83-0f39-449b-50efc3770fb8&userId=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&whitelabelid=1&loginLvl=0&storefrontId=3&currencyId=11&currencyCode=JPY&htmlLanguage=ja-jp&cultureInfoName=ja-jp&memberId=366625537&machineName=hk-pc-2g-acm-web-user-c559f64df-xzd8v&trafficGroupId=5&sessionId=r4t0x0rllvuwtmuoanwuv4ya&trafficSubGroupId=122&aid=82361&useFullPageLogin=true&cttp=4&isRealUser=true&mode=production&browserFamily=Chrome&cdnDomain=agoda.net&checkIn=2024-05-30&checkOut=2024-06-03&rooms=1&adults=2&childs=0&priceCur=JPY&los=4&textToSearch=%E6%9D%B1%E5%A4%A7%E9%96%80%EF%BC%88%E3%83%88%E3%83%B3%E3%83%87%E3%83%A0%E3%83%B3%EF%BC%89%2C+%E3%82%BD%E3%82%A6%E3%83%AB&travellerType=1&familyMode=off&ds=biZWVyrpc%2FzPnak%2B&groupedBedTypes=1&productType=-1"
  ]
}
```

Example 2

```json
{
  "uRL": [
    "https://www.agoda.com/ja-jp/search?area=57506&locale=ja-jp&ckuid=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&prid=0&currency=JPY&correlationId=59bc1f20-da84-42d1-9208-34799d98a2f4&analyticsSessionId=2938522237287211812&pageTypeId=7&realLanguageId=6&languageId=6&origin=JP&cid=1891462&tag=b5642155-2a83-0f39-449b-50efc3770fb8&userId=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&whitelabelid=1&loginLvl=0&storefrontId=3&currencyId=11&currencyCode=JPY&htmlLanguage=ja-jp&cultureInfoName=ja-jp&memberId=366625537&machineName=hk-pc-2g-acm-web-user-c559f64df-xzd8v&trafficGroupId=5&sessionId=r4t0x0rllvuwtmuoanwuv4ya&trafficSubGroupId=122&aid=82361&useFullPageLogin=true&cttp=4&isRealUser=true&mode=production&browserFamily=Chrome&cdnDomain=agoda.net&checkIn=2024-05-30&checkOut=2024-06-03&rooms=1&adults=2&childs=0&priceCur=JPY&los=4&textToSearch=%E6%9D%B1%E5%A4%A7%E9%96%80%EF%BC%88%E3%83%88%E3%83%B3%E3%83%87%E3%83%A0%E3%83%B3%EF%BC%89%2C+%E3%82%BD%E3%82%A6%E3%83%AB&travellerType=1&familyMode=off&ds=biZWVyrpc%2FzPnak%2B&groupedBedTypes=1&productType=-1"
  ]
}
```

Example 3

```json
{
  "uRL": [
    "https://www.agoda.com/ja-jp/search?area=57506&locale=ja-jp&ckuid=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&prid=0&currency=JPY&correlationId=59bc1f20-da84-42d1-9208-34799d98a2f4&analyticsSessionId=2938522237287211812&pageTypeId=7&realLanguageId=6&languageId=6&origin=JP&cid=1891462&tag=b5642155-2a83-0f39-449b-50efc3770fb8&userId=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&whitelabelid=1&loginLvl=0&storefrontId=3&currencyId=11&currencyCode=JPY&htmlLanguage=ja-jp&cultureInfoName=ja-jp&memberId=366625537&machineName=hk-pc-2g-acm-web-user-c559f64df-xzd8v&trafficGroupId=5&sessionId=r4t0x0rllvuwtmuoanwuv4ya&trafficSubGroupId=122&aid=82361&useFullPageLogin=true&cttp=4&isRealUser=true&mode=production&browserFamily=Chrome&cdnDomain=agoda.net&checkIn=2024-05-30&checkOut=2024-06-03&rooms=1&adults=2&childs=0&priceCur=JPY&los=4&textToSearch=%E6%9D%B1%E5%A4%A7%E9%96%80%EF%BC%88%E3%83%88%E3%83%B3%E3%83%87%E3%83%A0%E3%83%B3%EF%BC%89%2C+%E3%82%BD%E3%82%A6%E3%83%AB&travellerType=1&familyMode=off&ds=biZWVyrpc%2FzPnak%2B&groupedBedTypes=1&productType=-1"
  ]
}
```

Example 4

```json
{
  "uRL": [
    "https://www.agoda.com/ko-kr/search?city=16901&checkIn=2023-11-27&los=2&rooms=1&adults=2&children=1&childages=9&cid=1755781&locale=ko-kr&ckuid=c382a2ff-cf41-44de-b35c-6ad13bb86306&prid=0&currency=KRW&correlationId=c23cd61c-fa6a-4ca9-8c15-0155ccb90692&analyticsSessionId=-8309531373744668901&pageTypeId=1&realLanguageId=9&languageId=9&origin=KR&tag=b6b2d42c-aa03-4b92-97ab-c4f8dc7d016e&userId=c382a2ff-cf41-44de-b35c-6ad13bb86306&whitelabelid=1&loginLvl=0&storefrontId=3&currencyId=26&currencyCode=KRW&htmlLanguage=ko-kr&cultureInfoName=ko-kr&machineName=hk-pc-2g-acm-web-user-bb4bfd9b5-xf8j5&trafficGroupId=5&sessionId=veyd24bnslhtz1qjzk1y5has&trafficSubGroupId=48&aid=103944&useFullPageLogin=true&cttp=4&isRealUser=true&mode=production&utm_medium=cpc&utm_source=naver&utm_campaign=m.competitive&utm_content=c_gnric&utm_term=%EC%88%99%EB%B0%95%EC%98%88%EC%95%BD&browserFamily=Edge+%28Chromium%29+for+Windows&cdnDomain=agoda.net&checkOut=2023-11-29&priceCur=KRW&textToSearch=%EC%A0%9C%EC%A3%BC&travellerType=2&familyMode=off&ds=bkVVaMmo%2Fiwow9v%2B&productType=-1"
  ]
}
```

Example 5

```json
{
  "uRL": [
    "https://www.agoda.com/ko-kr/search?city=16901&checkIn=2023-11-27&los=2&rooms=1&adults=2&children=1&childages=9&cid=1755781&locale=ko-kr&ckuid=c382a2ff-cf41-44de-b35c-6ad13bb86306&prid=0&currency=KRW&correlationId=c23cd61c-fa6a-4ca9-8c15-0155ccb90692&analyticsSessionId=-8309531373744668901&pageTypeId=1&realLanguageId=9&languageId=9&origin=KR&tag=b6b2d42c-aa03-4b92-97ab-c4f8dc7d016e&userId=c382a2ff-cf41-44de-b35c-6ad13bb86306&whitelabelid=1&loginLvl=0&storefrontId=3&currencyId=26&currencyCode=KRW&htmlLanguage=ko-kr&cultureInfoName=ko-kr&machineName=hk-pc-2g-acm-web-user-bb4bfd9b5-xf8j5&trafficGroupId=5&sessionId=veyd24bnslhtz1qjzk1y5has&trafficSubGroupId=48&aid=103944&useFullPageLogin=true&cttp=4&isRealUser=true&mode=production&utm_medium=cpc&utm_source=naver&utm_campaign=m.competitive&utm_content=c_gnric&utm_term=%EC%88%99%EB%B0%95%EC%98%88%EC%95%BD&browserFamily=Edge+%28Chromium%29+for+Windows&cdnDomain=agoda.net&checkOut=2023-11-29&priceCur=KRW&textToSearch=%EC%A0%9C%EC%A3%BC&travellerType=2&familyMode=off&ds=bkVVaMmo%2Fiwow9v%2B&productType=-1"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "리뷰별점": {
      "type": "string",
      "description": ""
    },
    "리뷰평가": {
      "type": "string",
      "description": ""
    },
    "매력포인트": {
      "type": "string",
      "description": ""
    },
    "숙소링크": {
      "type": "string",
      "description": ""
    },
    "숙소이름": {
      "type": "string",
      "description": ""
    },
    "시작시간": {
      "type": "string",
      "description": ""
    },
    "여행지": {
      "type": "string",
      "description": ""
    },
    "예약가능한숙소": {
      "type": "string",
      "description": ""
    },
    "예약취소": {
      "type": "string",
      "description": ""
    },
    "요금시작가": {
      "type": "string",
      "description": ""
    },
    "위치_및_거리": {
      "type": "string",
      "description": ""
    },
    "이용후기수": {
      "type": "string",
      "description": ""
    },
    "인수_및_객실수": {
      "type": "string",
      "description": ""
    },
    "종료시간": {
      "type": "string",
      "description": ""
    },
    "최근예약": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Agoda Hotel Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "리뷰별점": "星評価、最高5の内4",
  "리뷰평가": "",
  "매력포인트": "",
  "숙소링크": "https://www.agoda.com/ja-jp/accom/property?propertyId=1242580&countryId=0&finalPriceView=1&isShowMobileAppPrice=false&cid=1891462&numberOfBedrooms=&familyMode=false&adults=2&children=0&rooms=1&maxRooms=0&checkIn=2026-11-24&isCalendarCallout=false&childAges=&numberOfGuest=0&missingChildAges=false&travellerType=1&showReviewSubmissionEntry=false&currencyCode=JPY&isFreeOccSearch=false&tag=b5642155-2a83-0f39-449b-50efc3770fb8&tspTypes=8&los=4&searchrequestid=793e19a6-fefc-428b-8365-0e6aa867eca5",
  "숙소이름": "ホテル スカイパーク キングスタウン トンデムン",
  "시작시간": "2026年11月24日, 火曜日",
  "여행지": "2026年11月24日",
  "예약가능한숙소": "",
  "예약취소": "",
  "요금시작가": "",
  "위치_및_거리": "東大門（トンデムン）, ソウル - 市内中心まで1.4 km",
  "이용후기수": "",
  "인수_및_객실수": "大人2 名, 1 部屋",
  "종료시간": "2026年11月28日, 土曜日",
  "최근예약": ""
}
```

Example 2

```json
{
  "리뷰별점": "星評価、最高5の内2",
  "리뷰평가": "",
  "매력포인트": "",
  "숙소링크": "https://www.agoda.com/ja-jp/accom/property?propertyId=76698725&countryId=0&finalPriceView=1&isShowMobileAppPrice=false&cid=1891462&numberOfBedrooms=&familyMode=false&adults=2&children=0&rooms=1&maxRooms=0&checkIn=2026-11-14&isCalendarCallout=false&childAges=&numberOfGuest=0&missingChildAges=false&travellerType=1&showReviewSubmissionEntry=false&currencyCode=JPY&isFreeOccSearch=false&tag=b5642155-2a83-0f39-449b-50efc3770fb8&tspTypes=2&los=4&searchrequestid=9402b9f5-2bd1-462b-9ba2-e1b1e3254fd4",
  "숙소이름": "トンデムン ツーリスト ホテル",
  "시작시간": "2026年11月14日, 土曜日",
  "여행지": "2026年11月14日",
  "예약가능한숙소": "",
  "예약취소": "キャンセル無料",
  "요금시작가": "28,920",
  "위치_및_거리": "東大門（トンデムン）, ソウル - 市内中心まで1.6 km",
  "이용후기수": "",
  "인수_및_객실수": "大人2 名, 1 部屋",
  "종료시간": "2026年11月18日, 水曜日",
  "최근예약": ""
}
```

Example 3

```json
{
  "리뷰별점": "星評価、最高5の内4",
  "리뷰평가": "",
  "매력포인트": "",
  "숙소링크": "https://www.agoda.com/ja-jp/hotel-skypark-kingstown-dongdaemun/hotel/seoul-kr.html?countryId=0&finalPriceView=1&isShowMobileAppPrice=false&cid=1891462&numberOfBedrooms=&familyMode=false&adults=2&children=0&rooms=1&maxRooms=0&checkIn=2026-11-3&isCalendarCallout=false&childAges=&numberOfGuest=0&missingChildAges=false&travellerType=1&showReviewSubmissionEntry=false&currencyCode=JPY&isFreeOccSearch=false&tag=b5642155-2a83-0f39-449b-50efc3770fb8&tspTypes=7,2,8&los=4&searchrequestid=1d7c748e-fe6e-47b1-b783-e3ff58423589",
  "숙소이름": "ホテル スカイパーク キングスタウン トンデムン",
  "시작시간": "2026年11月3日, 火曜日",
  "여행지": "2026年11月3日",
  "예약가능한숙소": "",
  "예약취소": "",
  "요금시작가": "37,969",
  "위치_및_거리": "東大門（トンデムン）, ソウル - 市内中心まで1.4 km",
  "이용후기수": "",
  "인수_및_객실수": "大人2 名, 1 部屋",
  "종료시간": "2026年11月7日, 土曜日",
  "최근예약": "本日93件の予約"
}
```

Example 4

```json
{
  "리뷰별점": "4성급",
  "리뷰평가": "8.8",
  "매력포인트": "\r\n마운틴뷰",
  "숙소링크": "https://www.agoda.com/ko-kr/lotte-city-hotel-jeju/hotel/jeju-island-kr.html?countryId=212&finalPriceView=1&isShowMobileAppPrice=false&cid=1755781&numberOfBedrooms=&familyMode=false&adults=2&children=1&rooms=1&maxRooms=0&checkIn=2026-10-15&isCalendarCallout=false&childAges=9&numberOfGuest=0&missingChildAges=false&travellerType=2&showReviewSubmissionEntry=false&currencyCode=KRW&isFreeOccSearch=false&tag=b6b2d42c-aa03-4b92-97ab-c4f8dc7d016e&tspTypes=8&los=2&searchrequestid=36c35cae-ab76-4bc7-b0ff-edc431a82b88&utm_medium=cpc&utm_source=naver&utm_campaign=m.competitive&utm_content=c_gnric&utm_term=숙박예약",
  "숙소이름": "롯데시티호텔 제주공항",
  "시작시간": "2026년 10월 15일, 목요일",
  "여행지": "2026년 10월 15일",
  "예약가능한숙소": "",
  "예약취소": "",
  "요금시작가": "455,000",
  "위치_및_거리": "제주 시내, 제주 - 도심까지 35m",
  "이용후기수": "17,524",
  "인수_및_객실수": "성인 2명,아동 1명, 객실 1개",
  "종료시간": "2026년 10월 17일, 토요일",
  "최근예약": "오늘 26회 예약됨"
}
```

Example 5

```json
{
  "리뷰별점": "5성급",
  "리뷰평가": "8.9",
  "매력포인트": "\r\n마운틴뷰",
  "숙소링크": "https://www.agoda.com/ko-kr/haevichi-hotel-jeju/hotel/jeju-island-kr.html?countryId=212&finalPriceView=1&isShowMobileAppPrice=false&cid=1755781&numberOfBedrooms=&familyMode=false&adults=2&children=1&rooms=1&maxRooms=0&checkIn=2026-10-10&isCalendarCallout=false&childAges=9&numberOfGuest=0&missingChildAges=false&travellerType=2&showReviewSubmissionEntry=false&currencyCode=KRW&isFreeOccSearch=false&tag=b6b2d42c-aa03-4b92-97ab-c4f8dc7d016e&los=2&searchrequestid=0752a19b-82a2-45c7-a21a-df9e22f875d5&utm_medium=cpc&utm_source=naver&utm_campaign=m.competitive&utm_content=c_gnric&utm_term=숙박예약",
  "숙소이름": "해비치 호텔 앤 리조트 제주",
  "시작시간": "2026년 10월 10일, 토요일",
  "여행지": "2026년 10월 10일",
  "예약가능한숙소": "",
  "예약취소": "",
  "요금시작가": "463,891",
  "위치_및_거리": "성산, 제주 - 도심까지 34.9km",
  "이용후기수": "10,528",
  "인수_및_객실수": "성인 2명,아동 1명, 객실 1개",
  "종료시간": "2026년 10월 12일, 월요일",
  "최근예약": "오늘 17회 예약됨"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "agoda-hotel-scraper",
  "taskName": "Agoda Hotel Scraper",
  "parameters": "{\"uRL\":[\"https://www.agoda.com/ja-jp/search?area=57506&locale=ja-jp&ckuid=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&prid=0&currency=JPY&correlationId=59bc1f20-da84-42d1-9208-34799d98a2f4&analyticsSessionId=2938522237287211812&pageTypeId=7&realLanguageId=6&languageId=6&origin=JP&cid=1891462&tag=b5642155-2a83-0f39-449b-50efc3770fb8&userId=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&whitelabelid=1&loginLvl=0&storefrontId=3&currencyId=11&currencyCode=JPY&htmlLanguage=ja-jp&cultureInfoName=ja-jp&memberId=366625537&machineName=hk-pc-2g-acm-web-user-c559f64df-xzd8v&trafficGroupId=5&sessionId=r4t0x0rllvuwtmuoanwuv4ya&trafficSubGroupId=122&aid=82361&useFullPageLogin=true&cttp=4&isRealUser=true&mode=production&browserFamily=Chrome&cdnDomain=agoda.net&checkIn=2024-05-30&checkOut=2024-06-03&rooms=1&adults=2&childs=0&priceCur=JPY&los=4&textToSearch=%E6%9D%B1%E5%A4%A7%E9%96%80%EF%BC%88%E3%83%88%E3%83%B3%E3%83%87%E3%83%A0%E3%83%B3%EF%BC%89%2C+%E3%82%BD%E3%82%A6%E3%83%AB&travellerType=1&familyMode=off&ds=biZWVyrpc%2FzPnak%2B&groupedBedTypes=1&productType=-1\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"uRL\":[\"https://www.agoda.com/ja-jp/search?area=57506&locale=ja-jp&ckuid=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&prid=0&currency=JPY&correlationId=59bc1f20-da84-42d1-9208-34799d98a2f4&analyticsSessionId=2938522237287211812&pageTypeId=7&realLanguageId=6&languageId=6&origin=JP&cid=1891462&tag=b5642155-2a83-0f39-449b-50efc3770fb8&userId=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&whitelabelid=1&loginLvl=0&storefrontId=3&currencyId=11&currencyCode=JPY&htmlLanguage=ja-jp&cultureInfoName=ja-jp&memberId=366625537&machineName=hk-pc-2g-acm-web-user-c559f64df-xzd8v&trafficGroupId=5&sessionId=r4t0x0rllvuwtmuoanwuv4ya&trafficSubGroupId=122&aid=82361&useFullPageLogin=true&cttp=4&isRealUser=true&mode=production&browserFamily=Chrome&cdnDomain=agoda.net&checkIn=2024-05-30&checkOut=2024-06-03&rooms=1&adults=2&childs=0&priceCur=JPY&los=4&textToSearch=%E6%9D%B1%E5%A4%A7%E9%96%80%EF%BC%88%E3%83%88%E3%83%B3%E3%83%87%E3%83%A0%E3%83%B3%EF%BC%89%2C+%E3%82%BD%E3%82%A6%E3%83%AB&travellerType=1&familyMode=off&ds=biZWVyrpc%2FzPnak%2B&groupedBedTypes=1&productType=-1\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "agoda-hotel-scraper",
        "taskName": "Agoda Hotel Scraper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "agoda-hotel-scraper",
  "taskName": "Agoda Hotel Scraper",
  "parameters": "{\"uRL\":[\"https://www.agoda.com/ja-jp/search?area=57506&locale=ja-jp&ckuid=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&prid=0&currency=JPY&correlationId=59bc1f20-da84-42d1-9208-34799d98a2f4&analyticsSessionId=2938522237287211812&pageTypeId=7&realLanguageId=6&languageId=6&origin=JP&cid=1891462&tag=b5642155-2a83-0f39-449b-50efc3770fb8&userId=afc39a69-5b8c-4a84-bbb1-e5d5198dbc57&whitelabelid=1&loginLvl=0&storefrontId=3&currencyId=11&currencyCode=JPY&htmlLanguage=ja-jp&cultureInfoName=ja-jp&memberId=366625537&machineName=hk-pc-2g-acm-web-user-c559f64df-xzd8v&trafficGroupId=5&sessionId=r4t0x0rllvuwtmuoanwuv4ya&trafficSubGroupId=122&aid=82361&useFullPageLogin=true&cttp=4&isRealUser=true&mode=production&browserFamily=Chrome&cdnDomain=agoda.net&checkIn=2024-05-30&checkOut=2024-06-03&rooms=1&adults=2&childs=0&priceCur=JPY&los=4&textToSearch=%E6%9D%B1%E5%A4%A7%E9%96%80%EF%BC%88%E3%83%88%E3%83%B3%E3%83%87%E3%83%A0%E3%83%B3%EF%BC%89%2C+%E3%82%BD%E3%82%A6%E3%83%AB&travellerType=1&familyMode=off&ds=biZWVyrpc%2FzPnak%2B&groupedBedTypes=1&productType=-1\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `agoda-hotel-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/agoda-hotel-scraper.json)
- [Manifest](https://www.octoparse.com/templates/agoda-hotel-scraper-manifest.json)
