$url = ‘https://maps.googleapis.com/maps/api/place/details/json?placeid=YOUR_PLACE_ID&fields=opening_hours&key= ChIJr7rquM_UxkcRnTTExtN9uM0’; $hours_raw = @file_get_contents($url); if (!empty($hours_raw)) { $hours_json = json_decode($hours_raw, true); if (!empty($hours_json[‘result’][‘opening_hours’])) { $business_hours = $hours_json[‘result’][‘opening_hours’][‘weekday_text’]; } } // $business_hours is an array you can use however you like e.g. echo ‘ ‘; foreach ($business_hours as $weekday) { echo ‘ ‘ . $weekday . ‘ ‘; } echo ‘ ‘;