State and province codes (ISO 3166-2)
agentstall.padawanconsulting.com/v1/subdivision-codes
State and province codes (ISO 3166-2): every state, province, region, county and district code with its name, type and parent for 200 countries (5,046 codes), incl. Nigeria's 36 states and FCT, Kenya's 47 counties, India's states and union territories and all of Africa. List a country, look up codes (NG-LA) or find a code by name (Lagos). Source: Debian iso-codes (LGPL). For forms, tax, shipping a
GET
https://agentstall.padawanconsulting.com/v1/subdivision-codesUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agentstall.padawanconsulting.com/v1/subdivision-codes?code=NG-LA&country=NG&name=Lagos&top=true");
console.log(await res.json());Example input
{
"code": "NG-LA",
"country": "NG",
"name": "Lagos",
"top": "true"
}