This API is used to get country, state and city from raw data of https://countrystatecity.in/
$ bun install
# development
$ bun run dev
# production
$ bun run start
/source/locations
Name | Type | Description | Example | Required |
---|---|---|---|---|
countryId | string | ISO2 | AR | false |
stateId | string | Values from /src/app/source/data.json |
124 | false |
cityId | string | Values from /src/app/source/data.json |
124 | false |
/source/location
Name | Type | Description | Example | Required |
---|---|---|---|---|
countryId | string | ISO2 | AR | true |
stateId | string | Values from /src/app/source/data.json |
124 | false |
cityId | string | Values from /src/app/source/data.json |
124 | false |