Cant fetch json data

try this

EDIT:

Dictionaries are in the block section:

1 Like

Here what i made.
0
But the screen is blank

Why don’t you take a good look at the image I sent you?

You’re using the same blocks to get everything.

If you have a Json like that:

1 - You must obtain the data within the article array.

2 - You get the data for “title”

3 - You get the data for “urlToImage”

4 - You get the data for "content

Each of these variables is a list.

LOOK WELL!!
This block
imagen

is not the same as this

imagen

It seems to me that you’re not paying attention because you’re not even copying the blocks properly.

ok. just one last thing. if you want to fetch name from your json data from source array. then which block you would use and how??
please give me a small block example.

I’ve already given you an example, with pictures, of a Json and the blocks you’d need to use.

I’ve numbered them so you know which blocks get which data.

You just have to adapt it to your Json

my data is different from yours

Show your data

This is my data:

I want this data, How can i get it

Man, you’re gonna have to buy me a beer! jaja

Your Json has a little mistake. The quotes it has are not simple quotes and it gives error.

If you look at your Json, you’ll see It has opening and closing quotes.

“api”: {
“results”: 380,
“fixtures”

And on the Json it has single quotes:

"string"

If all the Json you get, has those quotes you can solve it with these blocks:

So all the blocks would be like this:

((I can’t do it with the web component, so I put the response content in a variable, so don’t copy it. hehe!))

The result:

3 Likes

Thanx alot for your help. I apreciate it. and sorry if i disturb you.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.