Menu

Post image 1
Post image 2
1 / 2
0

Webhooks for Country Data Changes — Get Notified When ISO Codes Update

DEV Community·ApogeoAPI·28 days ago
#3FNr9T8x
Reading 0:00
15s threshold

Most apps using country / state / city data cache it locally for performance. The downside: when a country splits, an ISO code changes, or a state gets renamed, your cache goes stale until the next manual refresh. ApogeoAPI's webhook system pushes those events to your endpoint as soon as the underlying data changes. This tutorial covers the full setup with HMAC signature verification. Available events Event Fired when country.created A new country is added to the database (rare — average ~1/year) country.updated Any field on a country changes (capital, currency, name, region) country.deleted A country is removed (extremely rare) state.updated A state/province record changes currency_rate.updated Live FX refresh — fires every 4 hours per currency Register the webhook From your dashboard at app.apogeoapi.com → Webhooks → Add endpoint. Paste your URL, choose which events to subscribe to, and copy the secret.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More