Hi to all, I’ve wondering if there is a way or a proper way to use the PokeApi in Julia, specifically in Pluto. If there is, can you give me some hints to investigate. Thanks!
RESTful API is pretty straight forward to use, and Pluto adds/subtracts nothing from this.
julia> using HTTP, JSON3
julia> j = JSON3.read(HTTP.get("https://pokeapi.co/api/v2/type/3").body)
JSON3.Object{Vector{UInt8}, Vector{UInt64}} with 9 entries:
julia> all_type3_pokemon_names = [x["pokemon"]["name"] for x in j[:pokemon]]
135-element Vector{String}:
"charizard"
"butterfree"
"pidgey"
"pidgeotto"
"pidgeot"
"spearow"
"fearow"
"zubat"
"golbat"
"farfetchd"
"doduo"
"dodrio"
"scyther"
"gyarados"
"aerodactyl"
"articuno"
"zapdos"
Great. Thanks,
I was messing all up thinking in use PyCall but i really a better way!