Can I call APIs with this? #5031
Unanswered
wistfulglen
asked this question in
Q&A
Replies: 1 comment
-
If the API you want to call is callable from the browser, yes, definitely. We're already doing it when rendering the number of GitHub stars and forks. You can add your call via additional JavaScript, maybe something like:
fetch("https://api.github.com/repos/squidfunk/mkdocs-material")
.then(response => response.json())
.then(console.log)
.catch(console.error)
extra_javascript:
- javascripts/api.js |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Still very new to this whole thing, so apologies for the possibly obvious question. I'm curious if it's possible for Material to connect and call APIs?
Beta Was this translation helpful? Give feedback.
All reactions