The result was not an array

We are successfully able to get this result but we are not able to access this data from our external API call.
The JSON has many fixtures which include the data I need to access. Any tips on how to fix this? Thanks


Error: Error:
The result was not an array. Maybe the data you’re looking for is inside one of the response object keys?

{
“get”: “fixtures”,
“parameters”: {
“league”: “39”,
“season”: “2020”
},
“errors”: [],
“results”: 380,
“paging”: {
“current”: 1,
“total”: 1
},
“response”: [
{
“fixture”: {
“id”: 592141,
“referee”: null,
“timezone”: “UTC”,
“date”: “2020-09-12T14:00:00+00:00”,
“timestamp”: 1599919200,
“periods”: {
“first”: null,
“second”: null
},
“venue”: {
“id”: 512,
“name”: “Turf Moor”,
“city”: “Burnley”
},
“status”: {
“long”: “Match Postponed”,
“short”: “PST”,
“elapsed”: null
}
},

In your GET COLLECTION configuration you need to put “response” where it says “Response key path”

3 Likes

Thank you so much! It worked!

1 Like

Is it possible to get the data that comes before the response too?

For anyone who’s curious about this, try using get record instead of get collection. That worked for me

1 Like