BlocosIA Wiki Editor

Web and JSON

Request data from internet APIs (HTTPS), get the answer in an event and read JSON safely.

Only https:// addresses of public sites. The first time a project reaches a site, you choose whether to allow it. No cookies and no account data; up to 2 MB per answer, 15 s timeout and 60 requests per minute. JSON paths: data.list[0].name

To use it: in the editor, click "Extensions" (bottom corner) and add "Web and JSON".

Stack

[GET] request to ( ) with body ( ) named ( )

Does an action. Snap it below another block.

Stack

[GET] request to ( ) with body ( ) named ( ) and wait

Does an action. Snap it below another block.

Hat

when the answer to [pedido1] arrives

Starts a script when this happens.

Hat

when request [pedido1] fails

Starts a script when this happens.

Reporter

answer of ( )

Gives a number or text. Put it inside a round slot.

Reporter

status code of ( )

Gives a number or text. Put it inside a round slot.

Boolean

request ( ) succeeded?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Reporter

error of ( )

Gives a number or text. Put it inside a round slot.

Boolean

waiting for the answer to ( ) ?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Stack

use header ( ) with value ( )

Does an action. Snap it below another block.

Stack

clear headers

Does an action. Snap it below another block.

Reporter

encode ( ) for a web address

Gives a number or text. Put it inside a round slot.

Reporter

value ( ) of JSON ( )

Gives a number or text. Put it inside a round slot.

Reporter

JSON ( ) with ( ) = ( )

Gives a number or text. Put it inside a round slot.

Reporter

JSON ( ) without ( )

Gives a number or text. Put it inside a round slot.

Reporter

number of items in JSON ( )

Gives a number or text. Put it inside a round slot.

Reporter

keys of JSON ( )

Gives a number or text. Put it inside a round slot.

Reporter

item ( ) of JSON list ( )

Gives a number or text. Put it inside a round slot.

Reporter

JSON list ( ) with ( ) at the end

Gives a number or text. Put it inside a round slot.

Boolean

JSON ( ) has ( ) ?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Boolean

( ) is valid JSON?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Reporter

new JSON [object]

Gives a number or text. Put it inside a round slot.

Reporter

JSON list from ( ) split by ( )

Gives a number or text. Put it inside a round slot.

Reporter

JSON ( ) formatted

Gives a number or text. Put it inside a round slot.