{"baseUrl":"https, https://country-state-city.xcelet.com","endpoints":[{"name":"Countries","method":"GET","path":"/country/get","description":"List countries, newest first.","params":[{"name":"where","required":false,"description":"JSON filter on the fields listed below, e.g. {\"code\":\"IN\"}"},{"name":"page","required":false,"description":"Page number, default 1"},{"name":"limit","required":false,"description":"Items per page, default 25"}],"filterFields":["name","code"],"example":"https, https://country-state-city.xcelet.com/country/get?where={\"code\":\"IN\"}","response":{"data":["...records..."],"page":1,"totalPages":1,"totalItems":1}},{"name":"States","method":"GET","path":"/state/get","description":"List states. Filter by countryCode to get the states of one country.","params":[{"name":"where","required":false,"description":"JSON filter on the fields listed below, e.g. {\"code\":\"IN\"}"},{"name":"page","required":false,"description":"Page number, default 1"},{"name":"limit","required":false,"description":"Items per page, default 25"}],"filterFields":["name","code","countryCode","countryId"],"example":"https, https://country-state-city.xcelet.com/state/get?where={\"countryCode\":\"IN\"}&limit=50","response":{"data":["...records..."],"page":1,"totalPages":1,"totalItems":1}},{"name":"Cities","method":"GET","path":"/city/get","description":"List cities. Filter by countryCode and stateCode to get the cities of one state.","params":[{"name":"where","required":false,"description":"JSON filter on the fields listed below, e.g. {\"code\":\"IN\"}"},{"name":"page","required":false,"description":"Page number, default 1"},{"name":"limit","required":false,"description":"Items per page, default 25"}],"filterFields":["name","stateCode","countryCode","state","country"],"example":"https, https://country-state-city.xcelet.com/city/get?where={\"countryCode\":\"IN\",\"stateCode\":\"MH\"}","response":{"data":["...records..."],"page":1,"totalPages":1,"totalItems":1}},{"name":"Pincode","method":"GET","path":"/pincode/get","description":"Look up an Indian pincode. Returns the first post office found for it.","params":[{"name":"where","required":true,"description":"JSON with a 6 digit pincode, e.g. {\"pincode\":\"411033\"}"}],"filterFields":["pincode"],"example":"https, https://country-state-city.xcelet.com/pincode/get?where={\"pincode\":\"411033\"}","response":{"status":true,"message":"Pincode Fetched Successfully","data":{"Name":"Chinchwadgaon","BranchType":"Sub Post Office","DeliveryStatus":"Delivery","District":"Pune","State":"Maharashtra","Country":"India","Pincode":"411033"},"error":""},"errors":["400 - where is not valid JSON, or pincode is not 6 digits","404 - no post office found for the pincode","500 - the postal service could not be reached"]}]}