An API for Pizza
There is a Python API for ordering pizza from Domino’s. The code is a port of a node.js version, but I believe that code was reverse-engineered from their mobile app and isn’t officially supported by the company.
Below is a JSON data structure which is the result of invoking store =
address.closest_store()
to locate the store nearest me.
It’s interesting to see what fields are available. I wonder what UpSell
and
SaltWarningInfo
are for. This data structure could give clues as to future
plans if new fields suddenly appear.
{
"StoreID": "(removed)",
"Phone": "(removed)",
"StreetName": "(removed)",
"City": "(removed)",
"Region": "(removed)",
"PostalCode": "(removed)",
"AddressDescription": "(removed)",
"Hours": {
"Sun": [
{
"OpenTime": "00:00",
"CloseTime": "00:59"
},
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Mon": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Tue": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Wed": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Thu": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Fri": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Sat": [
{
"OpenTime": "00:00",
"CloseTime": "00:59"
},
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
]
},
"HoursDescription": "Su-Th 10:00am-12:00am\nFr-Sa 10:00am-1:00am",
"TimeZoneMinutes": -240,
"IsAffectedByDaylightSavingsTime": true,
"IsOnlineCapable": true,
"IsOnlineNow": true,
"Status": 0,
"CashLimit": 50,
"IsForceOffline": false,
"IsForceClose": false,
"IsOpen": true,
"OnlineStatusCode": "Ok",
"StoreAsOfTime": "2019-09-15 11:12:39",
"AsOfTime": "2019-09-15 11:12:39",
"IsNEONow": true,
"IsSpanish": true,
"AllowCarryoutOrders": true,
"AllowDeliveryOrders": true,
"BusinessDate": "2019-09-15",
"PulseVersion": "6.89.284",
"PulseVersionName": "3.89",
"PreferredLanguage": "en-US",
"PreferredCurrency": "USD",
"TimeZoneCode": "GMT-04:00",
"Holidays": {},
"HolidaysDescription": "",
"ServiceHours": {
"Carryout": {
"Sun": [
{
"OpenTime": "00:00",
"CloseTime": "00:59"
},
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Mon": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Tue": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Wed": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Thu": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Fri": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Sat": [
{
"OpenTime": "00:00",
"CloseTime": "00:59"
},
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
]
},
"Delivery": {
"Sun": [
{
"OpenTime": "00:00",
"CloseTime": "00:59"
},
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Mon": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Tue": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Wed": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Thu": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Fri": [
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
],
"Sat": [
{
"OpenTime": "00:00",
"CloseTime": "00:59"
},
{
"OpenTime": "10:00",
"CloseTime": "23:59"
}
]
}
},
"ServiceHoursDescription": {
"Carryout": "Su-Th 10:00am-12:00am\nFr-Sa 10:00am-1:00am",
"Delivery": "Su-Th 10:00am-12:00am\nFr-Sa 10:00am-1:00am"
},
"CustomerCloseWarningMinutes": 30,
"AcceptablePaymentTypes": [
"Cash",
"Check",
"GiftCard",
"CreditCard"
],
"AcceptableCreditCards": [
"American Express",
"Discover Card",
"Mastercard",
"Visa"
],
"LocationInfo": null,
"LanguageLocationInfo": {
"es": null
},
"MinimumDeliveryOrderAmount": 10,
"AcceptableWalletTypes": [
"Google"
],
"SocialReviewLinks": {
"yelp": "http://www.yelp.com/biz/"
"gmb": "http://search.google.com/local/writereview?",
"plus": "https://plus.google.com/",
},
"IsAVSEnabled": true,
"Pop": true,
"LanguageTranslations": {
"es": {}
},
"StoreLocation": {
"Latitude": "(removed)",
"Longitude": "(removed)",
},
"DriverTrackingSupported": "true",
"IsCookingInstructionsEnabled": false,
"IsSaltWarningEnabled": false,
"DriverTrackingSupportMode": "NOLO_HIDDEN",
"StoreName": null,
"StoreCoordinates": {
"StoreLatitude": "(removed)",
"StoreLongitude": "(removed)",
},
"AllowDineInOrders": false,
"EstimatedWaitMinutes": "14-24",
"Upsell": {},
"AcceptableTipPaymentTypes": [
"CreditCard"
],
"FutureOrderDelayInHours": 1,
"FutureOrderBlackoutBusinessDate": "2019-02-03",
"StoreEndTimeEvenSpansToNextBusinessDay": "2019-09-15 23:59:00",
"ecomActive": true,
"AllowSmsNotification": true,
"HasKiosk": true,
"IsTippingAllowedAtCheckout": true,
"AlternatePaymentProcess": false,
"AcceptAnonymousCreditCards": true,
"Tokenization": true,
"AcceptGiftCards": true,
"AcceptSavedCreditCard": true,
"AllowCardSaving": true,
"IsAllergenWarningEnabled": false,
"AllowPickupWindowOrders": false,
"AllowAutonomousDelivery": false,
"AllowDriverPooling": false,
"AdvDelDash": false,
"SaltWarningInfo": null,
"MarketPaymentTypes": [],
"CarryoutWaitTimeReason": null,
"DeliveryWaitTimeReason": null,
"RawPaymentGateway": "1",
"AllowDuc": false,
"ServiceMethodEstimatedWaitMinutes": {
"Delivery": {
"Min": 14,
"Max": 24
},
"Carryout": {
"Min": 10,
"Max": 15
}
}
}