The API endpoints do not change, no.
But depending on how old your hosted site was the authentication method may have changed; check the documentation to ensure it is still correct.
And if you’re hosted with us, you can email us for support with your specific site.
Either way, glad to hear you’ve been using Discourse for this long!