# How to use the url block

how to use the url block

To GET the contents of a url.

The only one i know of that supports cors(meaning GET), is the only one i have encountered: api.ipify.org/api64.ipify.org

it does not work

DO NOT INCLUDE THE SLASH!!
I mean, SEPARATELY, they are api...... and api64........ .
(Just writing this bc my sentence is unclear to the forum...)

all it says is a ip address?

That is its' purpose.
Now u know the use of the url block. Also, i once tried to use a cors proxy, but it didn't work.

And that ip is yours.

so it only goes to ip addresses? (and yes i know it is mine)

so it does not do anything?

Ummm.... waht

wdym?

ok so that does not explain what the url block is for

the url block gets the contents of a web page

Isk what u mean.

The url block returns the HTML content of a website. And it's not useless, take a look at this script:
[scratchblocks] split (url [snap.berkeley.edu/api/v1/users/your user]::sensing) by (json v)::operators reporter [/scratchblocks]