Transport for Spain API
Public trains of Spain
- 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.
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
- Category
- Transportation
- 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
| Fact | Transport for Spain (this page) | adsbdb | airportsapi | Aviation Safety Data | BC Ferries |
|---|---|---|---|---|---|
| Key needed From the public-apis list | No key | No key | No key | No key | No key |
| CORS, as listed From the public-apis list | Not recorded | Yes | Not recorded | Yes | Yes |
| Our test call Measured by us | Not tested | Not tested | Not tested | Not tested | Not tested |
| Browser call Measured by us | — | — | — | — | — |
| Docs link Measured by us | server error | Answered | Answered | Answered | Answered |
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.