# Changelog of AI Travel Agent (`scrapeai/ai-travel-agent`) Actor

- **URL**: https://apify.com/scrapeai/ai-travel-agent/changelog.md
- **Full Actor documentation**: https://apify.com/scrapeai/ai-travel-agent.md

## Changelog

### 1.0.0

- Added target-aware live extraction.
- Added actor-specific startUrls, endUrls, and query defaults.
- Removed the former reference-site extraction implementation.

### 1.1.0

- Rows now come from Google Search results (`site:booking.com/hotel "<destination>"`) fetched through the Apify Proxy group `GOOGLE_SERP`. booking.com is no longer requested: it answers honest datacenter (US) and residential (NL) proxy requests with an AWS WAF JavaScript challenge (HTTP 202).
- Each row carries `dataOrigin: google-serp`, the Booking.com property URL as `sourceUrl`, and name, city, area, rating and review count only where Google's result shows them.
- No Gemini or other API key is needed. Airbnb and AI filtering are not part of this version.
- Removed the generic page fetcher, the headless-browser fallback and its spoofed browser User-Agent, and the hard-coded datacenter proxy group.

### 1.1.1

- Stopped asking Google's redirect service (`google.com/goto`) where result links point: Google's `robots.txt` disallows `/goto?`. Results whose link is an opaque redirect are now skipped (counted as `opaque-google-link` in `RUN_SUMMARY`), so a run can return fewer rows, or fail with a message that explains why.

### 1.2.0 (2026-11-14)

- New input `resultSource`: `images` (default) reads Google Images results, `web` keeps the earlier Google web results. Google often writes web result links as opaque redirects that this Actor does not open (Google's `robots.txt` disallows `/goto?`), so many destinations returned few rows or none. In Google Images results every landing page URL is written in plain text (`data-lpage`), so images mode returns rows for those destinations.
- Images mode rows: `dataOrigin: google-serp-images`; property path (`country/slug`) and URL from the page URL (without query string), name and city from the image title `<name>, <city> (updated prices <year>)`. No rating, review count or price is returned in this mode because the image results do not show them.
- `maxSearchPages` in images mode: a further page (`start=10`, `20`, ...) is requested only while fewer than `maxItems` rows were found, the previous page was full (100 image results, a shorter page is the last one) and it still brought new pages. Measured 2026-11-14: `start=` returns overlapping further images.
- The Google client now makes one retry after a timeout or connection error (no HTTP status received); an HTTP error status or a verification page is never retried. It refuses every URL except `http://www.google.com/search` and sends default headers only.
- Dataset schema: `dataOrigin` also allows `google-serp-images`.
- Tests: fixtures of a real Google Images page, request rules against a local fake proxy, dataset-schema check of every row.
