api.tomrudick.com

This is an API for me. It is used to power my personal website but I will probably find other interesting ways to use it.

All data is aggregated from various external APIs and merged together to provide a single view into my digital life. Most of the data is in real-time or with very slight delays. More endpoints will be added as I can find the time. Additional feeds that I want to add are Github activity, daily step counts, sleep data, and time spent commuting per day.

Endpoints

All endpoints will return JSON data regardless of any request headers and are completely public.

/v1/music

The total number of songs that I have listened to each day for the last 30 days.

[
  {
    "timestamp": 1369281600,
    "songs": 7
  },
  {
    "timestamp": 1369368000,
    "songs": 22
  }
]

/v1/distance

Distance (in miles) that I have walked for the last 30 days.

[
  {
    "timestamp": 1368072000,
    "distance": 3.3
  },
  {
    "timestamp": 1368158400,
    "distance": 4.14
  }
]

/v1/weight

My weight (in US pounds) every day for the last 30 days.

[
  {
    "timestamp": 1382745600000,
    "weight": 152.6
  },
  {
    "timestamp": 1382832000000,
    "weight": 151.8
  }
]

/v1/bmi

My body mass index every day for the last 30 days.

[
  {
    "timestamp": 1382832000000,
    "bmi": 22.42
  },
  {
    "timestamp": 1382918400000,
    "bmi": 22.5
  }
]

/v1/email/traffic

Aggregated count of the number of emails that I have sent and received for the last 14 days.

[
  {
    "timestamp": 1369972800,
    "received": 39,
    "sent": 1
  },
  {
    "timestamp": 1370059200,
    "received": 34,
    "sent": 4
  }
]

/v1/email/inbox

Number of emails (read and unread) in my inbox for the last 30 days.

[
  {
    "timestamp": 1383019200,
    "emails": 0
  },
  {
    "timestamp": 1383105600,
    "emails": 5
  }
]

/v1/checkins

Checkin and location data for the last 7 days.

[
  {
    "name": "Spotify",
    "location": {
      "address": "76 9th Ave",
      "crossStreet": "btwn W 15th & W 16th St.",
      "lat": 40.74185966827,
      "lng": -74.004292488098,
      "postalCode": "10011",
      "city": "New York",
      "state": "NY",
      "country": "United States",
      "cc": "US"
    },
    "timestamp": 1370655923000,
    "url": "https:\/\/foursquare.com\/v\/spotify\/4bc8903115a7ef3bc2507bda"
  },
  {
    "name": "Blue Bottle Coffee",
    "location": {
      "address": "450 W 15th St.",
      "crossStreet": "btwn 9th & 10th Ave.",
      "lat": 40.742477453095,
      "lng": -74.00684595108,
      "postalCode": "10011",
      "city": "New York",
      "state": "NY",
      "country": "United States",
      "cc": "US"
    },
    "timestamp": 1370491200000,
    "url": "http:\/\/www.bluebottlecoffee.net"
  }
]

Data is currently aggregated from the following services: Spotify, Facebook, Foursquare, Fitbit, and GMail.

tomrudick | built with tonic