Guide: How to get JSON data from an Api using dictionaries (and show it on a dynamic cardview)

thanks for the help

1 Like

Hey i am getting this error while following this method


please help me
here is my code

You need to pay in order to use newsapi.org. If you check response code and it is 403 that indicates that requests from the browser are not allowed on the Developer plan, except from localhost.

This post was flagged by the community and is temporarily hidden.

Either pay newsapi .org or find another free api

This post was flagged by the community and is temporarily hidden.

This post was flagged by the community and is temporarily hidden.

This post was flagged by the community and is temporarily hidden.

In that case it loads all the API content from the beginning to the end

How can I do the reverse thing? from the end to the beginning??

Thank you :slight_smile:


Taifun

Thank you :slight_smile:

I try to make what you make and it’s the same as your block then why would I find a mistake like this? The operation convert an alist to a dictionary cannot accept the arguments: , [<!DOCTYPE]

It means you didn’t get the result as json, instead HTML code you are receiving

1 Like

Did You check your headers block ?

Accept': 'application/json',

Show us your blocks.

Or…

can you help me pls

this is the api link
https://programming-quotes-api.herokuapp.com/quotes/random

And what do you want to retrieve id? author? quote?

ohh, i have a practice about consume APIs. i try to consume the Json from the url but i can’t do it. can u helpme or explain me please. :slight_smile:

i try this

kodular give me this error

The operation select list item cannot accept the arguments: , [5a9d2eb2607c5100044dff75], [1]

Simply remove select list item list block

1 Like

Greetings and success koders… I have been reading and testing all the codes posted here for a long time and none gives me a list of one of a complete field…

this is my json database…

I want to create variables that have the content of each field. For example, the product_name variable, the 31 product_name, the description variable, the 31 description data, but every time I try it, it only gives me the first value of all the compos or a single value of a field… this drives me crazy …

I need the entire list complete each field in a variable, can someone help me with a block to see and understand it.

this is my blocks… thanks for all…