Guest Posted August 27, 2020 Share Posted August 27, 2020 Hi all, I'm building a site that requires some data from an external API. Is is possible to call an API from within Squarespace? Is there any documentation describing this? Link to comment
IXStudio Posted August 27, 2020 Share Posted August 27, 2020 Hi, You can use JS code via Code Injection. So develop your script on JS language to run it there. Please use the like button if it helps you! Best, Leopold Ninja Kit Extension: Upgrade your Squarespace website without coding.YouTube Preview - FREE DOWNLOAD Link to comment
Eldwelrick Posted November 22, 2020 Share Posted November 22, 2020 (edited) On 8/27/2020 at 7:28 PM, IXStudio said: Hi, You can use JS code via Code Injection. So develop your script on JS language to run it there. Please use the like button if it helps you! Best, Leopold Leopold, Can you point in the direction of some documentation on how to setup the initail link between my SQL server and squarespace? I have setup a postgres SQL server on the google cloud. Thanks Edited November 22, 2020 by Eldwelrick typo Link to comment
elderlyman Posted December 16, 2020 Share Posted December 16, 2020 (edited) Yes, it is definitely possible. However you may find that the limitations on what you can securely call from Squarespace present some major challenges. For example, if the API you are using to call some external data requires that you to keep the API key secure, that may not be possible. For more on this subject, see the answer provided in this question about hiding API keys. Basically, Squarespace is all front-end, so for non-approved API's, there is no access to the back end where you could securely stash an API key. If you want to call an API and the security of a key is not an issue, your goal can be achieved. But there is essentially no documentation (definitely zero within official Squarespace docs for non-approved APIs) for reasons mentioned above. Does your key need to remain secure? Edited December 16, 2020 by elderlyman typo Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment