Hey, it is possible to code a custom integration that takes data from an API and display it on the website? For instance, I would like to display the players count from my server on the website, and that could be accomplished by using a REST API. After a quick look, I’ve noticed that integrations are event based and can send data to weebhooks but couldn’t find anything for what I want.
Anything dynamic needs to be done with client-side JS because Ghost serves static content. There’s no Ghost-specific integration needed to do that, you can use the same html+js that you’d use to embed your content on any other site.
Is Js the only way to do this? What about server-side languages like PHP.
You can use a server side element to generate some content completely outside of Ghost but you’d need client-side JS to pull that content onto your site.
1 Like