INDIA-HOTEL

India Hotel Info Retrieval Script Documentation

GET https://api.kosontechnology.com/india-hotel.php

This API script is designed to retrieve information from the India Hotel info database using provided parameters.

Path Parameters

NameTypeDescription

State

String

To specify the desired state within India.

City

String

To specify the desired city within India.

Category

String

To specify the desired hotel category.

download

-

To download the json file

This API script is designed to retrieve information from the India hotel info database using provided parameters. The script constructs the appropriate URL based on the parameters provided and then fetches data from the API. Please follow the instructions below to use this script effectively.

Usage

  1. Making an HTTP request via a web browser or API Platform etc. Postman.

  2. The following parameters are accepted:

NameDescriptionFormat

State

To specify the desired state within India.

  • State Name. Etc. Delhi

City

To specify the desired city within India.

  • City Name. Etc. New Delhi

Category

To specify the desired hotel category.

  • Hotel Category. Etc. 5 Star

download

To download the JSON output

  • This parameter does not require the content, Leave empty or Type anything is acceptable.

  1. Depending on the parameters provided, the script will construct a URL to fetch information from the India hotel database.

Parameter Guidelines.

  • State Parameter:

    • If you provide a state parameter of India state name etc. 'Delhi', the script will retrieve all hotel information within the selected state.

  • City Parameter:

    • If you provide a city parameter of India city name etc. 'New Delhi', the script will retrieve all hotel information within the selected city.

  • Category Parameter:

    • If you provide a Category parameter of hotel category etc. '5 Star', the script will retrieve all hotel information that matches the selected category.

  • download Parameter:

    • If you want to download the JSON output of these parameter, define the parameter with empty or any input will able you to auto download it. See the download sample at here.

List of India States and Cities

Refer this wikipedia to have India's States and Cities List.

List of Hotel Category

  • 1 to 5 Star

Demo

Download

Add download at the back of the link to download the database in json format.

Last updated