API Collection
Koson Technology
  • COUNTRY-STATE-CITY
  • INDIA-RAILWAY-TRAIN
  • SHANGHAI METRO API
    • All Line Number
    • All Line Timetable
    • Last Line Timetable
    • Line History
    • Line Colour
    • All Station Information
    • Search Station With Line
    • Search Station With Station ID
    • Search Station With Station Name
    • Last Station Timetable
    • Estimate Arrival Time
    • Check Price
    • Check Route
  • AIRPORT-INFO
  • INDIA-HOTEL
  • HK-FERRY-ROUTE
  • FLIGHT-TRACK
  • MALAYSIA-STATES
  • SINGAPORE-BUS
Powered by GitBook
On this page
  • Usage
  • Parameter Guidelines.
  • List of India States and Cities
  • List of Hotel Category
  • Demo
  • Download

INDIA-HOTEL

India Hotel Info Retrieval Script Documentation

PreviousAIRPORT-INFONextHK-FERRY-ROUTE

Last updated 1 year ago

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

Name
Type
Description

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. .

  2. The following parameters are accepted:

Name
Description
Format

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:

List of India States and Cities

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.

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 .

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

Postman
wikipedia
here
https://api.kosontechnology.com/india-hotel.php
Retrieve all hotel data from database.
https://api.kosontechnology.com/india-hotel.php?State=Delhi
all hotel data from Delhi State
https://api.kosontechnology.com/india-hotel.php?City=Delhi
all hotel data from Delhi City
https://api.kosontechnology.com/india-hotel.php?Category=1%20Star
all hotel data with 1 Star Category
https://api.kosontechnology.com/india-hotel.php?Category=1%20Star&downloadapi.kosontechnology.com
download all hotel data with 1 Star Category