Skip to content

Basic Usage

To get information of a station make a GET request to this endpoint:

http://vtapi.floscodes.net/?station=<NAME>
Replace <NAME> with your station name. You will get a JSON response.


Get started with some code snippets

Give the API a try with some easy boilerplate code snippets. Here are some examples.


JavaScript

Fetch

fetch('http://vtapi.floscodes.net/?station=<NAME>')
  .then(response => response.json())
  .then(data => console.log(data));

Axios (NodeJS)

const axios = require('axios');
const request = async (url) => await (await axios.get("http://vtapi.floscodes.net/?station=<NAME>"));
let response = request(URL).then(resp => console.log(resp.data));


Python

Requests

import requests
res = requests.get('http://vtapi.floscodes.net/?station=<NAME>')

if res:
    print('Success!')
    resJSON = response.json()
    print(resJSON)
else:
    print('An error has occurred.')