When Yelp API returns data for each day of the week, like the hours when business is open, the first day is 0 and the last one is 6. Is it safe to assume that 0 corresponds to Sunday?
"hours": [
{
"hours_type": "REGULAR",
"open": [
{
"is_overnight": false,
"end": "2200",
"day": 0,
"start": "1730"
},
{
"is_overnight": false,
"end": "2200",
"day": 1,
"start": "1730"
},
{
"is_overnight": false,
"end": "2200",
"day": 2,
"start": "1730"
},
{
"is_overnight": false,
"end": "2200",
"day": 3,
"start": "1730"
},
{
"is_overnight": false,
"end": "2200",
"day": 4,
"start": "1730"
},
{
"is_overnight": false,
"end": "2200",
"day": 5,
"start": "1730"
},
{
"is_overnight": false,
"end": "2200",
"day": 6,
"start": "1730"
}
],
"is_open_now": false
}
],
Hope you are using latest api version (v3). you can refer to the yelp api documentation https://www.yelp.com/developers/documentation/v3/business which clearly says days 0-6 should be considered as monday to sunday
From the documentaion