FreetierapisFree APIs you can call right now

Transport for Spain API

Public trains of Spain

Docs link checked Measured by usFrom the public-apis list
Our call
Not called yet
Key
No key
Docs link
Server error

We haven't called Transport for Spain ourselves, so this is the public-apis listing plus our check of its docs link. Show Transportation APIs we did call

Transport for Spain docsMore Transportation APIs

Come back to see anything that changed: answers, keys, browser access, rate limits.

We haven't called Transport for Spain ourselves. Below is what the public-apis list says, plus our check of its docs link. See the APIs we tested in the finder.

Change log Measured by us

No changes seen since we started tracking on 2026-11-06. Each check compares the answer, the key requirement, the browser (CORS) header and the rate limit with the run before.

What the list says From the public-apis list

Auth
No key
CORS
Not recorded
Docs link
data.renfe.com returned a server error (500) on 2026-11-06 Measured

Transport for Spain is listed in Transportation. Transport for Spain needs no key: you can call it without signing up. The list doesn't record whether it allows browser calls (CORS), so test that before building a browser-only app on it.

The list has 75 Transportation APIs: 33 need no key, 34 need an API key and 8 use OAuth, and 19 of them are marked as allowing browser calls. 17 others have the same setup, such as airportsapi, Community Transit and facha.

Transport for Spain and other Transportation APIs

FactTransport for Spain (this page)adsbdbairportsapiAviation Safety DataBC Ferries
Key needed From the public-apis listNo keyNo keyNo keyNo keyNo key
CORS, as listed From the public-apis listNot recordedYesNot recordedYesYes
Our test call Measured by usNot testedNot testedNot testedNot testedNot tested
Browser call Measured by us—————
Docs link Measured by usserver errorAnsweredAnsweredAnsweredAnswered

All 75 Transportation APIs

Questions

Does Transport for Spain need an API key?

Transport for Spain needs no key: you can call it without signing up.

Can I call Transport for Spain from JavaScript in the browser?

It isn't recorded. Try a request from the browser console before relying on it.

Where are the Transport for Spain docs?

At https://data.renfe.com/api/1/util/snippet/api_info.html. When we checked, the link returned a server error (500).

What are some alternatives to Transport for Spain?

Other Transportation APIs in the list include airportsapi, Community Transit, facha and Icelandic APIs.

Listing from public-apis (github.com/marcelscruz/public-apis), MIT. Measurements are ours: how we check.

Report a problem with this page