BagelStatus

The Most Accurate Bagel Arrival Checker

Overview


Datacenter

Bagel Status

DC1/DC2    

Bagels/donuts not currently available.

DC3

Bagels/donuts not currently available.

API

The BagelStatus API will return a JSON array containing results for whichever date that you enter. You can use things like "today", "last tuesday", or a particular date like "20160105".
Please note that you must properly encode your URL string -- spaces become %20s for example.

Basic Usage

The request will return null for dc2 or dc3 if the bagels haven't been delivered yet; otherwise, it will return the unix timestamp for the time that the bagel delivery entry was created.
Valid request:

GET https://api.bagelstat.us/today

HTTP/1.1 200 OK

{
 "bagelID": "1";
 "bagelDate":"2016-01-05 10:10:28",
 "dc2":"1452006877",
 "dc3":"1452006894",
 "status":"ok",
 "info":"ok"
}

When no results are found:

GET https://api.bagelstat.us/next%20tuesday

HTTP/1.1 200 OK

{
 "status":"error",
 "info":"There is no bagel data for this date."
}

When you send an invalid date/time:

GET https://api.bagelstat.us/gibberish

HTTP/1.1 400 Bad Request

{
 "status":"error",
 "info":"An invalid or empty date was provided."
}

About

Bagels are yummy. Don't miss them.


Created by Austin Burk
You might be interested in my site, Sudomemo -- a recreated Flipnote Hatena, fully compatible with the Nintendo DSi.