AnkiWeb doesn’t have a public API and you’re recommended to use AnkiConnect instead.
Related: Anki public API