# viator.tours

The tours and activities Viator lists for a destination, a page at a time: name, price from, rating, number of reviews and photo.

Viator tours, one of the Viator scrapers.

| | |
| --- | --- |
| Id | `viator.tours` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/viator.tours/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The address of a destination's list of things to do on Viator, e.g. `https://www.viator.com/Paris/d479-ttd`: the page Viator opens for a city, a region or a country. Limit: at least 1 characters, at most 500 characters. |
| `page` | integer | no | The page of the list, from 1; 24 tours a page. Limit: 1 to 40. Default: `1`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `position` | integer | The tour's place on this page of the list, from 1. Limit: at least 1. |
| `page` | integer | The page of the list the tour was on. Limit: at least 1. |
| `product_code` | string or null | Viator's code of the tour, e.g. `67584P2`: the last part of its page's address. |
| `name` | string | The tour's name. |
| `url` | string | The tour's page on viator.com. `viator.tour` takes it. |
| `price_from` | number or null | The lowest price a person, as the list states it, in `currency`. |
| `currency` | string or null | The ISO currency code of the price, e.g. `USD`. |
| `rating` | number or null | The average rating, 1 to 5. Null for a tour without reviews. |
| `review_count` | integer or null | The number of reviews. |
| `image` | string or null | The tour's main photo. |
| `destination` | string or null | The destination whose list this is, e.g. `Paris`. |
| `fetched_at` | string (date-time) | When the page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/viator.tours/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://www.viator.com/Rome/d511-ttd"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "viator.tours",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "url": "https://www.viator.com/Rome/d511-ttd"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "position": 1,
      "page": 1,
      "product_code": "62416P17",
      "name": "Rome: Colosseum, Roman Forum, and Palatine Hill 3-Hour Tour",
      "url": "https://www.viator.com/tours/Rome/Colosseum-Forum-and-Palatine-Hill-Tour/d511-62416P17",
      "price_from": 43.67,
      "currency": "USD",
      "rating": 4.5,
      "review_count": 3067,
      "image": "https://dynamic-media.tacdn.com/media/photo-o/2f/60/03/d9/caption.jpg?w=800&h=600&s=1",
      "destination": "Rome",
      "fetched_at": "2026-11-19T18:07:41.722341Z"
    }
  ],
  "next_cursor": null
}
```

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Viator scrapers](https://docs.enrichednow.com/results-and-statuses.md#viator) are in their own section there.
