{"info":{"_postman_id":"e447c8de-f4c0-f994-df51-d29581ce3fa4","name":"hotels","description":"<html><head></head><body><p>This is an API endpoint for hotels available in Nigeria.</p>\n<p>Created by crawling <a href=\"https://hotels.ng\">hotels.ng</a> using\n<a href=\"https://github.com/kayslay/web-crawljs\">web-crawljs</a>.</p>\n<p>The API endpoint :\n<a href=\"https://hotels-apis.herokuapp.com/\">https://hotels-apis.herokuapp.com/</a></p>\n<p>This a play project. Read this medium post to know more\n<a href=\"https://medium.com/@badewakayode/how-i-scraped-8000-hotels-from-hotels-ng-abdc4fa2510f\">https://medium.com/@badewakayode/how-i-scraped-8000-hotels-from-hotels-ng-abdc4fa2510f</a></p>\n<h2 id=\"response\">Response</h2>\n<p>The <code>content-type</code> header of the response is <code>application/json</code>.</p>\n<p>The data returned is an array Objects that has the following attribute.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Atribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>_id</strong></td>\n<td>String</td>\n<td>The _id of the hotel</td>\n</tr>\n<tr>\n<td><strong>hotel_name</strong></td>\n<td>String</td>\n<td>The name of the hotel</td>\n</tr>\n<tr>\n<td><strong>location</strong></td>\n<td>String</td>\n<td>The location of the hotel</td>\n</tr>\n<tr>\n<td><strong>city</strong></td>\n<td>String</td>\n<td>The city of the hotel</td>\n</tr>\n<tr>\n<td><strong>state</strong></td>\n<td>String</td>\n<td>The state of the hotel</td>\n</tr>\n<tr>\n<td><strong>present_price</strong></td>\n<td>String</td>\n<td>The price of the hotel when it was last crawled <code>(not up to date)</code></td>\n</tr>\n<tr>\n<td><strong>hotelsNg_link</strong></td>\n<td>String</td>\n<td>The link to description on hotels.ng</td>\n</tr>\n<tr>\n<td><strong>features</strong></td>\n<td>String[]</td>\n<td>the list of features in the hotel</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"example-data-returned\">Example Data returned</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">[\n  {\n    _id: \"5a0075853438c300122bbda0\",\n    hotel_name: \"Arede Hotels Limited\",\n    location: \"87, Agbado Road, Iju Ishaga, Agege, Lagos\",\n    city: \"Agege\",\n    state: \"Lagos\",\n    present_price: \"₦4,000\",\n    hotelsNg_link: \"https://hotels.ng/hotel/47885-arede-hotels-limited-lagos\",\n    features: [\"Restaurant\", \"Bar\"]\n  },\n  {\n    _id: \"5a0075853438c300122bbda1\",\n    hotel_name: \"Offshoreroomz Hotel\",\n    location: \"1, Odumosu Street, Off Iju Road\",\n    city: \"Agege\",\n    state: \"Lagos\",\n    present_price: \"₦5,500\",\n    hotelsNg_link: \"https://hotels.ng/hotel/1006144-offshore-roomz-hotel-lagos\",\n    features: [\"Internet\", \"Restaurant\", \"Bar\"]\n  }\n];\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2909688","collectionId":"e447c8de-f4c0-f994-df51-d29581ce3fa4","publishedId":"77iaMwv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2017-11-06T18:41:13.000Z"},"item":[{"name":"API V1 Get Hotel List","id":"113c2ecf-3971-a4ba-22e2-364aeba72215","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://hotels-apis.herokuapp.com/","description":"<p>This endpoint responsd with a list of hotels.</p>\n<p><a href=\"https://hotels-apis.herokuapp.com/1\">https://hotels-apis.herokuapp.com/api/v1/:page</a></p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameter</th>\n<th>required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>page</strong></td>\n<td>false</td>\n<td>pagination of hotel</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":[""],"host":["hotels-apis","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"113c2ecf-3971-a4ba-22e2-364aeba72215"},{"name":"Search Hotels By Name","id":"9d507d27-d07a-ed3a-ac8f-dba12804a583","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://hotels-apis.herokuapp.com/name/hotel/","description":"<p>This endpoint returns an array of hotels that matches the name searched.</p>\n<p><a href=\"https://hotels-apis.herokuapp.com/name/ibis/1\">https://hotels-apis.herokuapp.com/name/:nameToSearch/:pageNum</a></p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameter</th>\n<th>required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>nameToSearch</strong></td>\n<td>true</td>\n<td>The name used to serch for the hotels</td>\n</tr>\n<tr>\n<td><strong>pageNum</strong></td>\n<td>false</td>\n<td>used to load the <code>nth</code> array of hotels</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["name","hotel",""],"host":["hotels-apis","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"c1c569cc-374b-76b6-94a9-71190d9de44b","name":"named hotels","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://hotels-apis.herokuapp.com/name/hotel/"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":""}],"_postman_id":"9d507d27-d07a-ed3a-ac8f-dba12804a583"},{"name":"Get Hotels In A City","id":"c432b59d-74ff-c5ed-264f-76cd1068d5f1","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://hotels-apis.herokuapp.com/city/ikoyi","description":"<p>This endpoint returns hotels in a particular city.</p>\n<p><a href=\"https://hotels-apis.herokuapp.com/city/ikeja/1\">https://hotels-apis.herokuapp.com/city/:city/:pageNum</a></p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameter</th>\n<th>required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>city</strong></td>\n<td>true</td>\n<td>The city to get the array of hotels from</td>\n</tr>\n<tr>\n<td><strong>pageNum</strong></td>\n<td>false</td>\n<td>used to load the <code>nth</code> array of hotels</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["city","ikoyi"],"host":["hotels-apis","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c432b59d-74ff-c5ed-264f-76cd1068d5f1"},{"name":"Get Hotels In a State","id":"573b8a8a-db00-d9d1-2577-2683312f2223","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://hotels-apis.herokuapp.com/state/lagos","description":"<p>This endpoint returns hotels in a particular state</p>\n<p><a href=\"https://hotels-apis.herokuapp.com/state/lagos/1\">https://hotels-apis.herokuapp.com/state/:state/:pageNum</a></p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>parameter</th>\n<th>required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>state</strong></td>\n<td>true</td>\n<td>The state to get the array of hotels from</td>\n</tr>\n<tr>\n<td><strong>pageNum</strong></td>\n<td>false</td>\n<td>used to load the <code>nth</code> array of hotels</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["state","lagos"],"host":["hotels-apis","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"573b8a8a-db00-d9d1-2577-2683312f2223"}]}