Transport for Sao Paulo, Brazil

API

Real-time public bus transport data API for Sao Paulo, Brazil (SPTrans)

Visit Website

Overview

The Transport for Sao Paulo (SPTrans) API provides real-time and static data for public bus services in Sao Paulo. Key endpoints include route search, real-time bus positions by line, stop details (location and served routes), arrival time predictions at stops, and static schedule information. Responses are formatted in JSON, supporting RESTful requests. Use cases include building commuter apps for real-time tracking, integrating transit data into navigation tools, urban planning analytics, and accessibility solutions for users needing reliable bus arrival info.

Example Integration (JavaScript)

script.js JS

fetch('http://www.sptrans.com.br/desenvolvedores/api-do-olho-vivo-guia-de-referencia/documentacao-api/')
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

Key Features

  • RESTful API design
  • JSON response format
  • Real-time bus position tracking
  • Route and stop details
  • Arrival time predictions
  • Static schedule data

Frequently Asked Questions

? Is Transport for Sao Paulo, Brazil API free to use?

Yes, the API is free of charge, but you need to register on the SPTrans developer portal to obtain an API key for access.

? Does it require an API Key?

Yes, an API key is mandatory. You can get it by registering on the SPTrans developers' platform.

? What is the response format?

All endpoints return data in JSON format, which is widely compatible with most programming languages and applications.

Top Alternatives

Metro de Sao Paulo Developer API Search Google
Google Maps Transit API (Sao Paulo Region) Search Google

People Also Ask about Transport for Sao Paulo, Brazil

Transport for Sao Paulo, Brazil vs Metro de Sao Paulo Developer APITransport for Sao Paulo, Brazil vs Google Maps Transit API (Sao Paulo Region) Transport for Sao Paulo, Brazil 2025 review

Tool Info

Pricing Free (with API key registration)
Category Transportation
Platform Public API

Pros

  • Free access (requires registration)
  • Official SPTrans data (reliable)
  • Covers all bus lines in Sao Paulo
  • Supports multiple use cases for developers

Cons

  • Rate-limited requests
  • Documentation primarily in Portuguese
  • Covers only bus transport (excludes metro/trains)
  • Mandatory API key registration

More Transportation Tools