{“apikey”:“5fa94781-8c63-48dd-908b-73aba89914dc”,“data”:{“id”:“21bed356-0b9a-4643-8b93-c528d2904e0c”,“name”:“New Zealand vs India, 1st ODI”,“matchType”:“odi”,“status”:“New Zealand won by 7 wkts”,“venue”:“Eden Park, Auckland”,“date”:“2022-11-25”,“dateTimeGMT”:“2022-11-25T01:30:00”,“teams”:[“New Zealand”,“India”],“teamInfo”:[{“name”:“India”,“shortname”:“IND”,“img”:“https://g.cricapi.com/img/teams/31-637877061080567215.webp"},{“name”:"New Zealand”,“shortname”:“NZ”,“img”:“https://g.cricapi.com/img/teams/57-637877076980737903.webp"}],“score”:[{“r”:306,“w”:7,“o”:50,“inning”:"India Inning 1”},{“r”:309,“w”:3,“o”:47.1,“inning”:“New Zealand Inning 1”}],“tossWinner”:“New Zealand”,“tossChoice”:“bowl”,“matchWinner”:“New Zealand”,“series_id”:“9f39bdef-28d1-4d93-8dae-2032e5cd1b2e”,“fantasyEnabled”:true,“bbbEnabled”:true,“hasSquad”:true,“matchStarted”:true,“matchEnded”:true},“status”:“success”,“info”:{“hitsToday”:9,“hitsUsed”:1,“hitsLimit”:100,“credits”:0,“server”:15,“queryTime”:11.0679,“s”:0,“cache”:0}} how to get the name value and the venue value from that json string
Try this.
your struture is incorrect, design like this
first read your data struture
visit here to parse your json https://jsonformatter.org/ simple work
Send me the full blocks it’s my humble request
oh sorry man… I have used only that blocks… also i deleted that screen once i got values… What are the values you want to retrieve from that response? Did you read the above blocks?
Try it, else send me the sample aia i will fix it if possible
I have only one doubt I have retrieve one team name but I don’t know how to get second team name block only
Can you show us the documentation page? because the api retrievs all the game schedule
{“apikey”:“063255de-8259-4f73-9b0c-a052ff7d0c8d”,“data”:{“id”:“3e9ebfbb-17d9-4d28-b73e-9295436f9179”,“name”:“Saurashtra vs Maharashtra, Final”,“matchType”:“odi”,“status”:“Saurashtra won by 5 wkts”,“venue”:“Narendra Modi Stadium, Ahmedabad”,“date”:“2022-12-02”,“dateTimeGMT”:“2022-12-02T03:30:00”,“teams”:[“Saurashtra”,“Maharashtra”],“teamInfo”:[{“name”:“Maharashtra”,“shortname”:“MAH”,“img”:“https://g.cricapi.com/img/teams/45-637897797960178569.png"},{“name”:“Saurashtra”,“shortname”:“SAUR”,“img”:“https://g.cricapi.com/img/teams/78-637897803602821716.png”}],“score”:[{“r”:248,“w”:9,“o”:50,“inning”:"Maharashtra Inning 1”},{“r”:249,“w”:5,“o”:46.3,“inning”:“Saurashtra Inning 1”}],“tossWinner”:“Saurashtra”,“tossChoice”:“bowl”,“matchWinner”:“Saurashtra”,“series_id”:“069215c9-f279-4c85-bf8f-bd560c8faac9”,“fantasyEnabled”:true,“bbbEnabled”:true,“hasSquad”:true,“matchStarted”:true,“matchEnded”:true},“status”:“success”,“info”:{“hitsToday”:12,“hitsUsed”:1,“hitsLimit”:100,“credits”:0,“server”:12,“queryTime”:13.8406,“s”:0,“cache”:0}}
This is not readable one, pls after pasting the respose , select all and click this option so that it can be readable json
but this respon having only one match… then how can you get another one?
I want this match detail only
Like
Team 1name
Team 2 name
Team 1 image link
Team 2 image link
From this data
send me proper json then i will show you as i said above process…
This is the Json link
{"apikey":"063255de-8259-4f73-9b0c-a052ff7d0c8d","data":{"id":"3e9ebfbb-17d9-4d28-b73e-9295436f9179","name":"Saurashtra vs Maharashtra, Final","matchType":"odi","status":"Saurashtra won by 5 wkts","venue":"Narendra Modi Stadium, Ahmedabad","date":"2022-12-02","dateTimeGMT":"2022-12-02T03:30:00","teams":["Saurashtra","Maharashtra"],"teamInfo":[{"name":"Maharashtra","shortname":"MAH","img":"https://g.cricapi.com/img/teams/45-637897797960178569.png"},{"name":"Saurashtra","shortname":"SAUR","img":"https://g.cricapi.com/img/teams/78-637897803602821716.png"}],"score":[{"r":248,"w":9,"o":50,"inning":"Maharashtra Inning 1"},{"r":249,"w":5,"o":46.3,"inning":"Saurashtra Inning 1"}],"tossWinner":"Saurashtra","tossChoice":"bowl","matchWinner":"Saurashtra","series_id":"069215c9-f279-4c85-bf8f-bd560c8faac9","fantasyEnabled":true,"bbbEnabled":true,"hasSquad":true,"matchStarted":true,"matchEnded":true},"status":"success","info":{"hitsToday":18,"hitsUsed":1,"hitsLimit":100,"credits":0,"server":9,"queryTime":22.3121,"s":0,"cache":0}}
Great working
{"apikey":"063255de-8259-4f73-9b0c-a052ff7d0c8d","data":[{"teamName":"Maharashtra","players":[{"id":"c0d9c81d-3cf2-4536-a7ac-1e2f110e0ef2","name":"Azim Kazi","role":"Bowler","battingStyle":"Left Handed Bat","bowlingStyle":"Left-arm orthodox","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"54d1e49d-3770-47d5-8a3d-1e9df66e42e5","name":"Ankit Bawne","role":"Batting Allrounder","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm offbreak","country":"India","playerImg":"https://h.cricapi.com/img/players/54d1e49d-3770-47d5-8a3d-1e9df66e42e5.jpg"},{"id":"4137e400-2429-4f05-aa86-20e8f4ee7992","name":"Pavan Shah","role":"--","battingStyle":"Right Handed Bat","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"4d066db8-b202-45a4-8408-28b335c5a767","name":"Rajvardhan Hangargekar","role":"Bowler","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm fast-medium","country":"India","playerImg":"https://h.cricapi.com/img/players/4d066db8-b202-45a4-8408-28b335c5a767.jpg"},{"id":"d2d5e0f2-991a-4797-adb9-2c0d04d3e5ac","name":"Manoj Ingale","role":"Bowler","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm medium","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"bfcac290-d9bd-4b5e-9dfd-334791c667d2","name":"Divyang Hinganekar","role":"--","battingStyle":"Left Handed Bat","bowlingStyle":"Left-arm medium","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"b9701b53-3b9e-4eda-93b1-3543809674d4","name":"Vicky Ostwal","role":"Bowler","battingStyle":"Right Handed Bat","bowlingStyle":"Left-arm orthodox","country":"India","playerImg":"https://h.cricapi.com/img/players/b9701b53-3b9e-4eda-93b1-3543809674d4.jpg"},{"id":"23be4cc6-31fc-4728-9a76-53b0c8b08f80","name":"Satyajeet Bachhav","role":"Bowler","battingStyle":"Left Handed Bat","bowlingStyle":"Left-arm orthodox","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"e46058cb-f0d9-439f-b5ef-687835b89719","name":"Shamshuzama Kazi","role":"Bowler","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm offbreak","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"b9c9e1c5-a89d-4c3b-8a8c-69c50659e234","name":"Naushad Shaikh","role":"Batsman","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm offbreak","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"fb313a9a-0a14-499d-a8d1-7561bccea8cb","name":"Rahul Tripathi","role":"Batsman","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm medium","country":"India","playerImg":"https://h.cricapi.com/img/players/fb313a9a-0a14-499d-a8d1-7561bccea8cb.jpg"},{"id":"dc2f7f59-ce15-48aa-b7d9-793314961076","name":"Mukesh Choudhary","role":"Bowler","battingStyle":"Left Handed Bat","bowlingStyle":"Left-arm medium","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"0f0b4eb6-a923-4c3a-acfd-8880e187af9b","name":"Taranjitsingh Dhillon","role":"--","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm offbreak","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"795e2efc-1b2e-4a81-b7c1-95973156e687","name":"Saurabh Navale","role":"WK-Batsman","battingStyle":"Right Handed Bat","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"232392e7-2740-4a76-9646-a69c18330b4c","name":"Kedar Jadhav","role":"Batting Allrounder","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm offbreak","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"50b70c71-1535-41c0-87fd-c12883105ede","name":"Ruturaj Gaikwad","role":"Batsman","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm offbreak","country":"India","playerImg":"https://h.cricapi.com/img/players/50b70c71-1535-41c0-87fd-c12883105ede.jpg"},{"id":"b8b1c4f5-4ae5-4f29-a3af-cd27ffab8e41","name":"Kaushal Tambe","role":"Batting Allrounder","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm offbreak","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"29fda6e4-158b-41ae-bd08-f1dbd0136074","name":"Nikit Dhumal","role":"Bowler","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm medium","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"}]},{"teamName":"Saurashtra","players":[{"id":"c1795d85-fa6b-48ab-aef2-0c671e4af352","name":"Dharmendrasinh Jadeja","role":"Bowler","battingStyle":"Left Handed Bat","bowlingStyle":"Left-arm orthodox","country":"India","playerImg":"https://h.cricapi.com/img/players/c1795d85-fa6b-48ab-aef2-0c671e4af352.jpg"},{"id":"1861447f-dd2b-416d-98e3-0f1f9079db43","name":"Arpit Vasavada","role":"Batsman","battingStyle":"Left Handed Bat","bowlingStyle":"Left-arm orthodox","country":"India","playerImg":"https://h.cricapi.com/img/players/1861447f-dd2b-416d-98e3-0f1f9079db43.jpg"},{"id":"6674d60a-2449-4be7-a2fc-2ac116b5e6d1","name":"Samarth Vyas","role":"Batsman","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm legbreak","country":"India","playerImg":"https://h.cricapi.com/img/players/6674d60a-2449-4be7-a2fc-2ac116b5e6d1.jpg"},{"id":"cab10f4a-2da5-4114-9970-5ae63aa23e19","name":"Navneet Vora","role":"--","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm fast-medium","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"945e8c51-deba-44c0-b3bb-619392161755","name":"Vishvaraj Jadeja","role":"Bowler","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm medium","country":"India","playerImg":"https://h.cricapi.com/img/players/945e8c51-deba-44c0-b3bb-619392161755.jpg"},{"id":"ba4ccd66-8c2f-406d-aa4f-85316615524e","name":"Harvik Desai","role":"WK-Batsman","battingStyle":"Right Handed Bat","country":"India","playerImg":"https://h.cricapi.com/img/players/ba4ccd66-8c2f-406d-aa4f-85316615524e.jpg"},{"id":"3e1b6a65-e330-47cb-9fad-8570d6ad1b87","name":"Kushang Patel","role":"Bowler","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm medium","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"87106e17-5c42-4000-bf01-8727145f5dd5","name":"Sheldon Jackson","role":"WK-Batsman","battingStyle":"Right Handed Bat","country":"India","playerImg":"https://h.cricapi.com/img/players/87106e17-5c42-4000-bf01-8727145f5dd5.jpg"},{"id":"34045340-2dab-4ef2-9a78-913298847e46","name":"Cheteshwar Pujara","role":"Batsman","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm legbreak","country":"India","playerImg":"https://h.cricapi.com/img/players/34045340-2dab-4ef2-9a78-913298847e46.jpg"},{"id":"c1ea1382-3991-447f-8d82-9beb91c371fb","name":"Parth Bhut ","role":"Bowling Allrounder","battingStyle":"Right Handed Bat","bowlingStyle":"Left-arm orthodox","country":"India","playerImg":"https://h.cricapi.com/img/players/c1ea1382-3991-447f-8d82-9beb91c371fb.jpg"},{"id":"a25036dd-87e6-4038-b98f-b2f20ea6fb06","name":"Chetan Sakariya","role":"Bowler","battingStyle":"Left Handed Bat","bowlingStyle":"Left-arm fast-medium","country":"India","playerImg":"https://h.cricapi.com/img/players/a25036dd-87e6-4038-b98f-b2f20ea6fb06.jpg"},{"id":"f589d2a9-4e44-464d-9741-e224354a1370","name":"Jaydev Unadkat","role":"Bowler","battingStyle":"Right Handed Bat","bowlingStyle":"Left-arm fast-medium","country":"India","playerImg":"https://h.cricapi.com/img/players/f589d2a9-4e44-464d-9741-e224354a1370.jpg"},{"id":"549a68d8-93e3-45a2-a3e5-eb5beb27e503","name":"Yuvraj Chudasama","role":"Bowler","battingStyle":"Left Handed Bat","bowlingStyle":"Right-arm legbreak","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"e52a3651-3d1c-4797-89e0-f1716e50ea3c","name":"Jay Gohil","role":"--","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm offbreak","country":"India","playerImg":"https://h.cricapi.com/img/icon512.png"},{"id":"ee9ffd53-c57d-4808-8d29-f3798b221338","name":"Prerak Mankad","role":"Batsman","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm medium","country":"India","playerImg":"https://h.cricapi.com/img/players/ee9ffd53-c57d-4808-8d29-f3798b221338.jpg"},{"id":"579d1bb1-824d-4cfb-8ba0-f39c3d811341","name":"Chirag Jani","role":"Batting Allrounder","battingStyle":"Right Handed Bat","bowlingStyle":"Right-arm medium","country":"India","playerImg":"https://h.cricapi.com/img/players/579d1bb1-824d-4cfb-8ba0-f39c3d811341.jpg"}]}],"status":"success","info":{"hitsToday":61,"hitsUsed":10,"hitsLimit":100,"credits":0,"server":9,"queryTime":47.2861,"s":0,"cache":0}}
How to get each team players in each list to create team players list