INE Tourist Accommodation Scraper (Spain Hotels & Apartments) avatar

INE Tourist Accommodation Scraper (Spain Hotels & Apartments)

Pricing

from $2.00 / 1,000 result delivereds

Go to Apify Store
INE Tourist Accommodation Scraper (Spain Hotels & Apartments)

INE Tourist Accommodation Scraper (Spain Hotels & Apartments)

Monthly INE figures for tourist apartments and hotels in Spain by municipality: travellers and overnight stays by residence, bed places, occupancy, average stay, ADR and RevPAR. One validated JSON row per municipality, month and indicator. Official INE API, no login.

Pricing

from $2.00 / 1,000 result delivereds

Rating

0.0

(0)

Developer

Steadfetch

Steadfetch

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Categories

Features

Limited permissions

Share

This Actor returns the monthly tourist accommodation statistics of Spain's national statistics office (INE) as one validated dataset row per municipality, month and indicator: travellers and overnight stays by residence, capacity, occupancy, average stay, average daily rate (ADR) and revenue per available room (RevPAR), for tourist apartments and for hotels.

Tested daily. Last verified: 2026-11-16

What it does

The INE publishes its occupancy surveys by tourist point ("punto turistico"), not by municipality, and its API (Tempus) returns each figure as a series whose name mixes the point, the indicator and the residence in one text. The Actor downloads eight INE tables, reads those names, turns every tourist point into its five-digit INE municipality code and emits one row per figure:

SurveyINE tableIndicators
Tourist apartments75191travellers, overnight_stays, each by residence (spain or abroad)
Tourist apartments75193bed_places, establishments (number of apartments), occupancy_rate_bed_places, occupancy_rate_units
Tourist apartments2081average_stay
Hotels2078travellers, overnight_stays, each by residence
Hotels2076bed_places, establishments (open hotels), occupancy_rate_bed_places, occupancy_rate_units (rooms)
Hotels2077average_stay
Hotels46298adr (EUR)
Hotels46301revpar (EUR)

Every row carries breakdown.accommodationType (apartments or hotels); travellers and overnight stays also carry breakdown.residence.

Limits you should know:

  • Coverage is by tourist point, not by every municipality. The apartment survey covers 107 points and the hotel survey 138, 181 municipalities in all. A municipality that is not a point of a survey has no rows for it (Calp, for example, is an apartment point and not a hotel point), and the run logs one line per table that holds none of the municipalities you asked for.
  • Statistical secrecy. When the INE hides a value it sends no number. The Actor still emits the row, with value: null and valueNote: "secret"; it never replaces a hidden value with 0.
  • One month per run. The latest published month by default, or the month in period. Asking for a month the INE has not published fails the run and names the latest available month; it is never replaced by another one.
  • If you ask for a month that one of the surveys has not published yet, the run fails naming the table and the latest month available. To avoid depending on a survey that lags, ask for a single accommodation type with accommodationTypes (apartments or hotels).
  • Weekend occupancy, staff and room counts are published by the INE too but are not part of this Actor.

How to use

  1. Open the Actor in the Apify Console and start a run. Empty input returns the latest month for every tourist point, apartments and hotels (about 2,400 rows).
  2. Or choose municipalities, a month and the accommodation type.
  3. Or call it from the CLI:
$apify call steadfetch/ine-alojamiento-turistico-extractor --input='{"municipalityCodes":["03047"],"accommodationTypes":["apartments"]}'
  1. Read the results from the dataset.

Input

Input fields

FieldTypeRequiredDefault/PrefillDescriptionExample
municipalityCodesarray of stringNodefault [] (every municipality), prefill ["03047"]Five-digit INE municipality codes. A code without its leading zero, a number or an unknown code fails the run before anything is downloaded.["03047"]
periodstringNoempty (latest published month)Month in YYYY-MM format.2026-09
accommodationTypesarray of stringNodefault ["apartments","hotels"], prefill ["apartments"]apartments, hotels, or both.["apartments"]

Example input

Matches the declared exampleRunInput exactly:

{
"municipalityCodes": ["03047"],
"accommodationTypes": ["apartments"]
}

Output

Example output

Calp, tourist apartments, September 2026 (nine rows: four from table 75191, four from 75193, one from 2081):

{
"url": "https://servicios.ine.es/wstempus/js/ES/DATOS_TABLA/75191?nult=1",
"title": "Calp: travellers (spain), apartments, 2026-09",
"scrapedAt": "2026-11-16T14:12:14.635Z",
"municipalityCode": "03047",
"municipalityName": "Calp",
"source": "INE table 75191",
"period": "2026-09",
"indicator": "travellers",
"value": 2831,
"valueNote": null,
"unit": "persons",
"breakdown": { "accommodationType": "apartments", "residence": "spain" }
}

A value the INE hides under statistical secrecy:

{
"municipalityCode": "38003",
"municipalityName": "Alajero",
"period": "2026-09",
"indicator": "travellers",
"value": null,
"valueNote": "secret",
"unit": "persons",
"breakdown": { "accommodationType": "apartments", "residence": "abroad" }
}

Output fields

FieldTypeDescription
urlstring (uri)INE Tempus API URL the figure was read from.
titlestringShort label: municipality, indicator, accommodation type and month.
scrapedAtstring (date-time)ISO 8601 UTC timestamp of the run.
municipalityCodestringFive-digit INE municipality code.
municipalityNamestringOfficial INE name of the municipality.
sourcestringThe INE table the figure comes from.
periodstringMonth, YYYY-MM.
indicatorstringtravellers, overnight_stays, bed_places, establishments, occupancy_rate_bed_places, occupancy_rate_units, average_stay, adr or revpar.
valuenumber or nullThe figure; null when the INE hides it.
valueNotestring or nullsecret when the INE hides the value, not_available when it sends neither a value nor a secrecy flag, otherwise null.
unitstringpersons, nights, places, units, percent, eur or nights_per_stay.
breakdownobjectaccommodationType on every row; residence on travellers and overnight stays.

Pricing

Pay-per-event, the two synthetic events declared in .actor/pay_per_event.json:

  • apify-actor-start: 0.00005 USD per run. The Apify-recommended default, which includes the first 5 seconds of compute per run for free.
  • apify-default-dataset-item: 0.002 USD per row = 2 USD per 1,000 results.

There is no custom per-item event, so a row is never billed twice. Measured on the Calp input: 9 rows, 3 INE requests, about 10 seconds including the one-second pauses between requests, peak memory 166 MB with the local TypeScript runner. A run with an empty input downloads the eight tables and returns about 2,400 rows.

Works on the Apify free plan - about 2,499 rows for the $5 monthly credit ((5.00 USD - 0.00005 USD run start) / 0.002 USD per row).

Other Steadfetch Actors

FAQ

Does it need an API key, a login or a proxy? No. The INE Tempus API is public. The Actor uses plain HTTPS, one request per table, with a one-second pause between requests. If the INE answers 401, 403, 429 or 451, or answers 200 with no data, the run fails with an error that names the INE and delivers nothing.

Why does a municipality I asked for have no rows? The INE measures tourist points. Calp, for example, has tourist apartment figures and no hotel figures; Benidorm has both. The run log lists the tables that hold none of the municipalities you asked for.

Why is value null? The INE hides figures that would reveal individual businesses (statistical secrecy). The row is kept so you can see that the figure exists but is hidden; it is never turned into 0.

Why does the INE name differ from the municipality name? The INE writes tourist points in its own spelling ("Calpe/Calp", "Alfas Del Pi (L )"). The Actor matches them to the official INE municipality names and codes; a point that matches no municipality is omitted and the run logs a warning.

Can I get older months? Yes: set period to any earlier month the INE holds. The Actor then asks the INE for that month.

Does it collect personal data? No. Only aggregate tourism statistics are read.

Data source and licence

Source: INE, www.ine.es (its occupancy statistics for tourist apartments and for hotels, by tourist point). The INE legal notice sets Creative Commons Reconocimiento 4.0 (CC BY 4.0) for the statistical information of its website, including commercial reuse with attribution; citation used here: "Elaboracion propia con datos extraidos del sitio web del INE: www.ine.es". Municipality codes and names come from the INE municipality list of 1 January 2026 (same licence). See docs/legal-gate.md.

Support

Report bugs through the Actor's Apify Store page (Issues tab) or the steadfetch actors repository issues. Please include the run ID and the exact input you used.

Maintenance

Tested daily: daily catalog QA runs the default input once the Actor is published. npm test, npm run publish:check and apify-cli validate-schema run in CI on every push.