कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

mta

brianleach द्वारा

Transportation
309clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

NYC MTA transit — real-time subway arrivals, bus predictions, service alerts, and route info for the New York City.

विवरण

यह स्किल क्या करती है

Fetches real-time NYC MTA transit data including subway arrivals, bus predictions, service alerts, and route information. Subway feeds and alerts require no API key and update every 30 seconds. Bus predictions require a free key from MTA's developer portal.

Subway and alert feeds are open access with no signup, and the script handles GTFS-RT protobuf parsing automatically so you get structured arrival data without writing any feed-parsing code.

इसे कब इस्तेमाल करें

  • Checking the next uptown 1 train from Times Square
  • Getting live arrival times for the M15 bus on 2nd Ave
  • Looking up active service alerts before commuting on the A/C/E
  • Finding subway stops near a given set of coordinates
  • Checking which trains are currently running on the L line

उदाहरण वर्कफ़्लो

इनपुट

User asks: When is the next A train from Jay St-MetroTech heading toward Manhattan?

एजेंट
  1. 1

    Identifies the A line and resolves the station name to a northbound stop ID

  2. 2

    Fetches the ACE GTFS-RT protobuf feed

  3. 3

    Filters upcoming trips stopping at Jay St-MetroTech northbound

  4. 4

    Checks the subway alerts feed for any active A line disruptions

  5. 5

    Returns next arrivals with direction, track, and alert status

आउटपुट

A train toward Inwood-207 St arriving in 4 min. No active service alerts on the A line.

आवश्यकताएँ

  • MTA Bus API key (free) from register.developer.obanyc.com, set as MTA_BUS_API_KEY env var — required only for bus commands; subway and alert commands work without it

इंस्टॉलेशन

clawhub install brianleach/mta

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक