Jump to content

Calling external API from Squarespace

Recommended Posts

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
  • Replies 3
  • Views 6.1k
  • Created
  • Last Reply
  • 2 months later...
On 8/27/2020 at 7:28 PM, IXStudio said:

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!



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.


Link to comment
  • 4 weeks later...

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?

Link to comment


This topic is now archived and is closed to further replies.

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.