SFMTA (San Francisco Municipal Transportation Agency) API provides access to real-time transit data, schedules, and route information for San Francisco’s public transportation system.

Overview

Create Account

Sign up for an SFMTA developer account

Get API Key

Generate your SFMTA API key

Copy into Create

Add your API key to Create’s secrets

Account Creation

1

Visit SFMTA Developer Portal

Go to https://511.org/open-data and click “Request a Token”

2

Register for an Account

  • Fill in your developer information
  • Describe your intended API usage
  • Complete the verification process

Generate API Key

1

Copy Your API Key

  1. The requested token will be found in the sent email
  2. Copy the token found in the email

Keep your API key secure - it grants access to your SFMTA API quota

Add to Create Project

1

Add the integration

  1. In your Create project, type / in the chat
  2. Select “SFMTA” from the menu
2

Add your API key

  1. Paste your API key into the “SFMTA_API_KEY” field

Need a new key? Generate one in your SFMTA developer dashboard.

3

Use it

You can now use prompts with the integration to access transit data.

Some examples:

  • Get real-time bus arrivals using /SFMTA
  • Show transit routes with /SFMTA
  • Create a transit tracker using /SFMTA

API has rate limits - implement caching for frequently accessed data.

Example prompt for optimization:

When using /SFMTA, cache the transit schedules in my database

Your SFMTA integration is now ready! Use the /SFMTA command in chat to access San Francisco transit data.