CarbonClick 0 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 post
1 IXStudio 184 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 post
0 Eldwelrick 0 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 post
0 elderlyman 1 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 post
Question
CarbonClick 0
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 post
Top Posters For This Question
1
1
1
1
Popular Days
Aug 27
2
Nov 22
1
Dec 16
1
Top Posters For This Question
CarbonClick 1 post
IXStudio 1 post
Eldwelrick 1 post
elderlyman 1 post
Popular Days
Aug 27 2020
2 posts
Nov 22 2020
1 post
Dec 16 2020
1 post
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment