This is the API that I am Using but It is giving only District name and State Name only not giving the name as per postal code. is there any another API to get exact City name. Kindly help me out from this issue.
A bit of a tricky one:
postcode_localities is only present when the result is a postal code that contains multiple localities. However, 506366 (India) only overlaps with those localities, it does not contain any of them. That's why you won't have a
locality in the address.
At the same time, there is no postal code that fully contains those locality, so you won't get a
postal_code in their addresses either:
Here's an example where
postcode_localities is returned: 13100 (France):