Is there any API for fetch city and state data?

I didn’t find from documentation city and state API that can provide me data, there mention in documentation ( Check the state and district codes from LGD directory). so my team has to develop a new API for that? or there is another way?