PrompTugal.news· Data
Version v0.1.151data read 2026-11-21 09:20 UTCPay for what you read · free here

Tourist nights by where guests live: Portugal, Algarve, Lisbon, London (Eurostat)

Nights spent at tourist accommodation (hotels, short-stay accommodation and camping) by the guest's residence, for Portugal, the Algarve (PT15), the Lisbon metropolitan area (PT17) and London (UKI): annual for the last 10 years and monthly for Portugal for 36 months. Regions are split into domestic, foreign and total guests; Portugal as a whole is also split by named country (United Kingdom, Germany, France, Spain, the Netherlands, the United States). Lisbon is PT17 to 2022 and Grande Lisboa (PT1A) plus Península de Setúbal (PT1B) from 2023, as Eurostat changed the regions. Eurostat's London data stops in 2016.

Three layers: the source (who publishes it, the terms, when it was read), the raw data as the publisher served it, and the processed data, what this site makes of it. The processing is where the value is: named fields, places joined, gaps marked, every value kept with its source and time.

1. The source

At a glance

FieldValue
PublisherEurostat (European Commission)
Sourcehttps://ec.europa.eu/eurostat/web/tourism/database
Reader pagehttps://ec.europa.eu/eurostat/databrowser/view/tour_occ_nin2/default/table
Scheduleevery 6 hours: the Pages workflow (.github/workflows/pages.yml) at 00, 06, 12 and 18 UTC; three requests a run, 2.5 seconds apart (about 14 KB in all); every other run keeps the last read, copied from the live site. Eurostat updates these tables a few times a year.
Ownerdata.b@PrompTugal.dinis
Collectorsources/eurostat-tourism/collect.mjs
Since2026-11-18
Last read2026-11-21 07:06 UTC
Last runok: 3 requests ok, 0 failed
Now280 rows
LicenceThe data: Eurostat reuse policy (Commission Decision of 12 December 2011) (Eurostat). This page, the card and the records we add: CC BY 4.0.

Reuse terms

Reuse of statistical data is authorised for commercial or non-commercial purposes provided the source is acknowledged (Commission Decision of 12 December 2011); no key. Acknowledge with "Source: Eurostat" and the dataset code. Not reviewed by a person. Reuse: yes, with the source acknowledged ("Source: Eurostat", dataset code and link).

Reuse of statistical data, metadata, publications, and other dissemination tools published on this website for commercial or non-commercial purposes is authorised provided the source is acknowledged. The reuse policy of the European Commission is implemented by the Decision of 12 December 2011.

Open question: The page named in the brief (https://ec.europa.eu/eurostat/about-us/policies/copyright) answers 404 now; the notice was read at the address above. The notice says individual documents may carry their own conditions; none was seen on these tables. security@PrompTugal.dinis to review.

2. The raw data

As Eurostat (European Commission) served it at the latest read (2026-11-21 07:06 UTC), unprocessed. The files: tour_occ_nim.json, tour_occ_nin2.json, tour_occ_ninraw.json.

Eurostat's own JSON-stat answers, as served: nights by region, by country of residence, and by month. The data.

3. The processed data

The collector asks Eurostat's dissemination API for three tables (tour_occ_nin2, tour_occ_ninraw, tour_occ_nim), reads each value with its dimension codes, keeps the last 10 years (36 months for the monthly table) and drops a value that does not decode. Regions are split only into domestic, foreign and total guests; named countries exist for Portugal as a whole. Lisbon is PT17 to 2022 and Grande Lisboa and Setubal from 2023, as Eurostat changed the regions. Eurostat has no London value after 2016. Source: Eurostat (tour_occ_nin2, tour_occ_ninraw, tour_occ_nim), reuse notice. The result: latest.json.

Nights spent at tourist accommodation by where the guest lives: Portugal, the Algarve, Lisbon and London, with the United Kingdom, Germany, France, Spain, the Netherlands and the United States for Portugal as a whole. The data: /api/v1/eurostat-tourism/latest.json.

More about this source

What runs by code, by agents and by people

Code

Agents

People

Cost

FieldValue
per run tokens0
per run model cost usd0
runnerGitHub Actions on a public repository: no charge; three requests a run (about 14 KB)
build tokensnot measured
noteCode only: no model is called when the data is collected.

API addresses

These addresses stay for the life of v1 (the contract).

FileAddress
Latest readhttps://data.promptugal.news/api/v1/eurostat-tourism/latest.json
Every readhttps://data.promptugal.news/api/v1/eurostat-tourism/reads.json
Cardhttps://data.promptugal.news/api/v1/eurostat-tourism/card.json
OpenAPIhttps://data.promptugal.news/api/v1/eurostat-tourism/openapi.json
curl -s https://data.promptugal.news/api/v1/eurostat-tourism/latest.json
curl -s https://data.promptugal.news/api/v1/eurostat-tourism/reads.json | head -c 600

Vault

Vault not yet created. The collector writes the bytes of each read to a vault copy; until the vault exists they are not kept.

Last runs

Time (UTC)Requests okRequests failedReads with changed bytes
2026-11-21 07:06 UTC300 of 3
2026-11-20 18:06 UTC300 of 3
2026-11-20 07:07 UTC300 of 3
2026-11-19 13:06 UTC300 of 3
2026-11-19 07:05 UTC300 of 3
2026-11-19 01:30 UTC300 of 3
2026-11-18 23:43 UTC300 of 3
2026-11-18 23:35 UTC300 of 3
2026-11-18 23:28 UTC300 of 3
2026-11-18 23:22 UTC300 of 3
2026-11-18 22:52 UTC300 of 3
2026-11-18 22:43 UTC303 of 3

Showing 12 of 12 runs kept. Full detail with sha256: reads.json.

Preview of the values

The first 3 of 3 entries in datasets, as read 2026-11-21 07:06 UTC. Source: https://ec.europa.eu/eurostat/web/tourism/database. Long values are shortened here; the file has them whole.

datasetoktitleupdatedrowsapiSource
tour_occ_nin2trueNights spent at tourist accommodation establishments by NUTS 3 region2026-10-20T23:00:00102https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/tour_occ_...source
tour_occ_ninrawtrueNights spent at tourist accommodation establishments by country of origin of ...2026-10-12T23:00:0070https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/tour_occ_...source
tour_occ_nimtrueNights spent at tourist accommodation establishments - monthly data2026-11-16T11:00:00108https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/tour_occ_nimsource