Restaurant listing with cuisine type, location, contact information, rating, price range, opening hours, delivery availability, and images. Used for restaurant discovery platforms, food delivery apps, and dining guides.
https://api.mockly.codes/restaurants?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/restaurantsGet a collection of restaurants
/travel/restaurants/restaurants/:idGet a single restaurant by ID
/travel/restaurants/:id/restaurants/metaGet resource metadata and schema
/travel/restaurants/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/restaurants?q=laptopGET https://api.mockly.codes/restaurants?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 restaurants
fetch('https://api.mockly.codes/restaurants?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/restaurants?count=10'
)
data = response.json()curl "https://api.mockly.codes/restaurants?count=10"fetch('https://api.mockly.codes/restaurants?nocache=true')idintegerUnique identifier for the restaurant
random_intnamestringRestaurant name
restaurant_namedescriptionstringDescription of the restaurant, cuisine, and dining experience
paragraphcuisinestringCuisine type (e.g., Italian, Japanese, Mexican, Indian, Fusion)
cuisineaddressstringStreet address of the restaurant
addresscitystringCity where the restaurant is located
citycountrystringCountry where the restaurant is located
countrylatitudenumberGeographic latitude coordinate of the restaurant
latitudelongitudenumberGeographic longitude coordinate of the restaurant
longitudephonestringRestaurant contact phone number
phoneemailstringRestaurant email address
emailemailwebsitestringRestaurant website URL
urluriratingnumberAverage customer rating, typically on a scale of 1-5
ratingprice_rangestringPrice range indicator (e.g., $, $$, $$$, $$$$)
price_rangeopening_hoursstringOpening hours or operating schedule
opening_hoursdeliverybooleanWhether the restaurant offers delivery service
booleanimagestringURL to the restaurant's main image
image_urluricountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request