instaelse
(instaelse)
June 29, 2022, 4:36pm
#1
I have this json api
{
“images”: [
{
“file”: “d854ba2d3e9683de”,
“extension”: “.png”,
“image_id”: 1986
But I cant go past through the “images” . I want to get the image id number. Have seen some posts but cant quite understand them. Can you help me by showing me how I could get that? Thanks in advance. Here some images
share us complete json… this is incomplete struture
instaelse
(instaelse)
June 29, 2022, 4:49pm
#3
{
“images”: [
{
“file”: “c1384aaf68b8cbf5”,
“extension”: “.png”,
“image_id”: 1809,
“favourites”: 5,
“dominant_color”: “#8a7c82 ”,
“source”: “https://reddit.com/j9uv67/ ”,
“uploaded_at”: “2021-11-02T11:16:19.048684+00:00”,
“is_nsfw”: false,
“width”: 2250,
“height”: 4000,
“url”: “https://cdn.waifu.im/c1384aaf68b8cbf5.png ”,
“preview_url”: “Preview ”,
“tags”: [
{
“tag_id”: 12,
“name”: “waifu”,
“description”: “A female anime/manga character.”,
“is_nsfw”: false
}
]
}
]
}
Here is the api link actually. Could manage to do it with simpler ones. https://api.waifu.im/random/?selected_tags=waifu
what are the values you want to take?
sample
instaelse:
image_id and the url.
taken …
instaelse
(instaelse)
June 29, 2022, 4:54pm
#5
The image_id and the url.
instaelse
(instaelse)
June 29, 2022, 5:07pm
#7
I see. Missed a lot of things. Now its more clear. Thanks a lot
instaelse
(instaelse)
June 29, 2022, 5:18pm
#9
I tried to get the url in a label But i get the url into ()
instaelse
(instaelse)
June 29, 2022, 5:25pm
#10
I figured it out. Replaced [ and ] to (). Thanks for everything!
1 Like
dora_paz
(Dora)
June 30, 2022, 4:56am
#11
No needto use so many replace - use [Free] Json To Dictionary Extension
2 Likes
instaelse
(instaelse)
June 30, 2022, 11:38am
#12
oo I see. I am gonna try that thanks!
system
(system)
Closed
July 30, 2022, 11:39am
#13
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.