# Pulling data from a website. is it possible?

**URL:** <https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719>\
**Category:** Questions about Thunkable X\
**Created:** [June 23, 2019, 4:10pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719 "2019-06-23T16:10:16Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 23, 2019, 4:10pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/1 "2019-06-23T16:10:16Z")

</div>

I need to pull text data from a website. Is this possible?

Thanks

---

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [June 23, 2019, 4:32pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/2 "2019-06-23T16:32:24Z")

</div>

A WordPress website or what sort of site?

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 23, 2019, 4:32pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/3 "2019-06-23T16:32:45Z")

</div>

I believe it is a WordPress site yes

---

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [June 23, 2019, 4:33pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/4 "2019-06-23T16:33:14Z")

</div>

can you paste link to site so I show you how to?

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 23, 2019, 4:33pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/5 "2019-06-23T16:33:51Z")

</div>

yes i will send you a message now with the link

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [June 24, 2019, 1:55pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/6 "2019-06-24T13:55:42Z")

</div>

Have you checked out the [WordPress API](https://developer.wordpress.org/rest-api/)?

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 24, 2019, 7:33pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/7 "2019-06-24T19:33:21Z")

</div>

Does this have to be installed like a plugin or is it standard for every wordpress website. Thanks

---

<div class="post-metadata">

**Author:** ![aniolpages](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aniolpages/32/62948_2.png) [@aniolpages](https://community.thunkable.com/u/aniolpages)\
**Post date:** [June 24, 2019, 9:31pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/8 "2019-06-24T21:31:57Z")

</div>

It’s a standard for every WordPress website. You can use the component ‘Web API’ from Thunkable to make requests.  
Check the reference page of the API [https://developer.wordpress.org/rest-api/reference/](https://developer.wordpress.org/rest-api/reference/)

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 24, 2019, 10:34pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/9 "2019-06-24T22:34:32Z")

</div>

So in the base route which is **[www.domain.com/wp-json/wp/v2/posts](http://www.domain.com/wp-json/wp/v2/posts)**, how would i go about making a list of the posts. There is a lot of data on the json page, and I am struggling to find out how to place the blocks to find the data.

Could you maybe give me an example?

Thanks for your help, I really appreciate it!

(edit)

I download the json and imported it into firebase because the website link was just a nightmare to find the paths. It appears to be a list from 0 to 9, and in each number is data relating to the titles, So now i must find a way to get the id of the data and when opened in a new page to display the data such as images etc.

if you know anything more on this, that would be fantastic

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 24, 2019, 11:57pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/10 "2019-06-24T23:57:04Z")

</div>

I am having trouble retrieving the images. I found the api for the media but the list items (which are items 0 to 9) do not correspond with the items from the posts api. I have got the posts api working great for a total of 10 posts. I will try and find a way to get a list of every post, to form a list. For the 10 recent posts I am making out columns for each item as there will only be 10, and adding a more posts button at the bottom.

But back to what i was asking there 😛 how would i retrieve the images? I have the image ID but i am unsure of the API on which to call from.

Thanks again.

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 25, 2019, 2:53am UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/11 "2019-06-25T02:53:02Z")

</div>

I do apologise for all the replies, but I thought its best to update how I get on here.

I found a way to pull the data from a 10 item long list.

From this list i got the title and description data and the photo ID. I then used the following url to use the photo id to get the embedded link.

[www.domain.com/wp-json/wp/v2/media/[MediaIDHere]](http://www.domain.com/wp-json/wp/v2/media/%5BMediaIDHere%5D)

I then used this api to retrieve the link 🙂

So this so far has required me to use 2 API’s. One for getting the text as such and one to get the photo.

Now i need to work on a way to pull the entire “description” as right now I can only pull so many characters until I get the […] at the end of my sentence.

I also had to make html replacement text blocks for apostrophes etc.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:13pm UTC](https://community.thunkable.com/t/pulling-data-from-a-website-is-it-possible/117719/12 "2024-11-08T12:13:19Z")

</div>


