Blog post from squarespace to thunkable

Hello,

I want to have my blog post in my thunkable app, I watched the videos of web api but don’t get it done.

Can anyone explain me or help please, how to get all posts and on click show all the other informations, I know how that works but what I don’t know is how to fetch the data.

https://developers.squarespace.com/view-json-data

This will be the page where the blog is on son view

https://cod-whale-gcy6.squarespace.com/pressroom/?format=json-pretty

All of the blog post data seems to be in HTML format with a lot of extra/unnecessary characters - is there any endpoint your can use to get it in plain text?

1 Like

Yes I can add a plein text to it

cool! can you do that? does it change the endpoint or does it just add an extra field to the JSON response?

It will be the same json
Just added a dummy text it to the first post Helloooo and the other 2 test of the blog
You should see this now in the json ->

( sqs-block-markdown" data-block-type=“44” id=“block-yui_3_17_2_1_1574084199394_18021”><div class=“sqs-block-content”>

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

If this io not okay I can add that what you need :slight_smile: just tell me what

Here is the sample app i will design it like on the site
https://x.thunkable.com/copy/711fe97e47e7feab8980b8dd10ac6550

All what I need is Thumbnail image url, Tags, Date, title, text from the blog, but I think if I now how I fetch 1-2 things I will learn how to fetch the rest I hope so hahah

you mentioned in a PM that you could use Airtable instead - do you need to use Square space at all?

I’m confused now by the different information.

no in the worst worst case only i will do it with airtable but there i know how to do it , But I want to do it with squarespace… if the squaresapce json don’t work to do what I want !!
If we can do it with Squarespace it would be nice like that I don’t have to add the information on two places !

It’s pretty easy to get the contents of the body here, but the issue yo have now is getting the text out if the HTML, and it’s not even valid HTML, so I’m not sure how you’d go about that.

And this one: https://cod-whale-gcy6.squarespace.com/pressroom/?format=json ?

I read that the first time you posted it…

sorry, just added this to my blog article with this id

id=“blogtext”

could that help ?

Bonjour leLorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. monde !

![35|690x388](upload://id8TxXnZySqB5e2Ao0UBHaxkzkH.jpeg)

there just doesn’t seem to be a straightforward way of doing this - you can pull out all the heading and paragraphs pretty easily, but there’s no way to tell how many headings, paragraphs, images, quotes, snippets etc are in any given blog post.

The best you could hope for here is to just display the posts in the WebViewer, but if you user has a web browser on their phone there’s little point in this.

It will be 1 text block and 1 images and 1 button, deleted everything from the first blog there is only one image one button and text blog now

could you show me only how I get the title and date and all that after that I will try my self please…

Should I give up ?

What have you tried so far?

all the videos from youtube from thunkable and from the docs … never got it done. Have only the design for the moment smile

squarespace is build with json… so i don’t really understand where the problem could be :confused:

So it’s easy why nobody in the coummunity or you helps me …thx

I don’t think you understand me - the content is not suitable to use in your app. it will have brackets and line breaks and escape characters all over the place and it won’t look nice on the screen.

Why are you sending me PMs with random characters? please do not send so many different messages it’s very difficult to follow the three threads that you have open at the moment.

Its the api key for the other problem in the other post …

and yeah normal that I write and ask everywhere for help if I get no return no where

Hello, I need help to connect my app with my blog api from sqaurespace. I have the design only need is that anyone add the api and the clones and all that, I will pay up to 200 euro, I will pay 50% amount directly thx.

What i need to fetch: Title, description, tags , date, blog text, image url …

For more informations ask me please need it for tomorrow

The json:
here the https://cod-whale-gcy6.squarespace.com/pressroom/?format=json-pretty

The page where the blog will be:
https://cod-whale-gcy6.squarespace.com/pressroom?noredirect