States of every country request - installation

This request can be used to simply retrieve all of the state/province information from a given country. You can use it to return an array of values or you can even retrieve them as options for a form select field (demo) with the current users state/province preselected.

This request can be used on its own, or even in conjunction with our countries list as you can see from our demo.

Download our example jQuery code, it comes with JavaScript and PHP libraries that make connecting to our API a breeze. Your API key can be found in your air-port-codes.com account and is necessary to be granted access privileges to any of our API's.

Use our interactive REST tool (Swagger) to help you test the api and build your queries the right way. You'll need to login before you can use it with your API key.

Quick start

First login to your air-port-codes.com account and update your account settings by adding any domains that might need to access the API. Also make a note of your API Key as you will need it for all requests to the API.

Need assistance?

If you need assistance getting our feed to work or simply have a suggestion, feel free to fill out our contact form.