# Google Hotel Scraper (by URLs)

Extract data from Google Travel by URLs.

- Template page: [https://www.octoparse.com/template/google-hotel-scraper-by-urls](https://www.octoparse.com/template/google-hotel-scraper-by-urls)
- 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 `From`, `Hotel_details_URL`, `Hotel_name`, `Image1`, `Label_1`, `Label_2`, `Offer`, `Page_URL`, `Price`, `Rating`, `Services`, `Tab`, `To`, `Totol_result`, `image2`.

## 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 URLs of listing page (up to 10,000) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### URLs of listing page (up to 10,000)

Required. URLs of listing page (up to 10,000) Constraints: minItems=1; maxItems=10000; items.minLength=1; items.maxLength=5000.

## How to Use

# Google Hotel Scraper (by URLs)

## Input

- **URLs of listing page** (Required) — Up to 10,000 entries per run. Provide URLs of Google Hotels listing pages.

## Output Fields

- `Page_URL`
- `Tab`
- `Totol_result`
- `From`
- `To`
- `Hotel_name`
- `Hotel_details_URL`
- `Price`
- `Rating`
- `Label_1`
- `Label_2`
- `Offer`
- `Services`
- `Image1`
- `image2`

JSON structure:

```json
{
  "Page_URL": null,
  "Tab": null,
  "Totol_result": null,
  "From": null,
  "To": null,
  "Hotel_name": null,
  "Hotel_details_URL": null,
  "Price": null,
  "Rating": null,
  "Label_1": null,
  "Label_2": null,
  "Offer": null,
  "Services": null,
  "Image1": null,
  "image2": null
}
```

## How to Use

1. Open the template in Octoparse and click **Try it!**.
2. Enter listing page URLs in the **URLs of listing page** field (up to 10,000).
3. Run locally or in the cloud.
4. Export the data. Fields include `Hotel_name`, `Page_URL`, `Price`, and `Tab`.

## Notes

- Test one URL before running a large batch.
- Keep `Page_URL` in the export to trace each row back to its source.
- This template is free; no per-line fee. Octoparse plan or resource limits may still apply.

## 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

- [Google Maps Listings Scraper (by URLs)](https://www.octoparse.com/template/google-maps-scraper-listing-page-by-url)
- [Google Maps Email Finder (by URLs)](https://www.octoparse.com/template/google-maps-email-finder-by-urls)
- [Gelbe Seiten Scraper (by URLs with circles)](https://www.octoparse.com/template/gelbe-seiten-scraper-nach-urls)
- [Gelbe Seiten Details Scraper (Cloud by URLs)](https://www.octoparse.com/template/gelbe-seiten-details-scraper-cloud)
- [Google Ads Scraper (by Urls)](https://www.octoparse.com/template/google-ads-scraper)

## Input Schema

```json
{
  "title": "Google Hotel Scraper (by URLs) input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "uRLs_of_listing_page": {
      "title": "URLs of listing page (up to 10,000)",
      "description": "URLs of listing page (up to 10,000)",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "uRLs_of_listing_page"
  ]
}
```

## Input JSON Example

No verified real input/output examples are currently available.


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "From": {
      "type": "string",
      "description": ""
    },
    "Hotel_details_URL": {
      "type": "string",
      "description": ""
    },
    "Hotel_name": {
      "type": "string",
      "description": ""
    },
    "Image1": {
      "type": "string",
      "description": ""
    },
    "Label_1": {
      "type": "string",
      "description": ""
    },
    "Label_2": {
      "type": "string",
      "description": ""
    },
    "Offer": {
      "type": "string",
      "description": ""
    },
    "Page_URL": {
      "type": "string",
      "description": ""
    },
    "Price": {
      "type": "string",
      "description": ""
    },
    "Rating": {
      "type": "string",
      "description": ""
    },
    "Services": {
      "type": "string",
      "description": ""
    },
    "Tab": {
      "type": "string",
      "description": ""
    },
    "To": {
      "type": "string",
      "description": ""
    },
    "Totol_result": {
      "type": "string",
      "description": ""
    },
    "image2": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Google Hotel Scraper (by URLs) 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

No verified real input/output examples are currently available.

## 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`.

No verified real input/output examples are currently available.

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `google-hotel-scraper-by-urls`, 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/google-hotel-scraper-by-urls.json)
- [Manifest](https://www.octoparse.com/templates/google-hotel-scraper-by-urls-manifest.json)
