← Back to marketplace

Goal

Fast JSON API for Goal football data - live scores, fixtures, match details, lineups, statistics, predictions, competitions, teams and players.

other
by Mark823 endpoints100% uptime101ms avg

Includes 100 free calls per month

After the free quota, standard per-request pricing applies via x402 (USDC on Base).

Endpoints

GET/v1/competition/details
$0.0010/req

Returns the competition overview (competition info, standings snapshot, recent/upcoming matches, seasons and teams).

Request schema

competition_idstringrequired

Response schema

idstring
namestring
imageobject
areaobject
formatstring
GET/v1/competition/details/gamesets
$0.0010/req

Returns the competition game weeks / rounds (gamesets). Each gameset provides the game_set_type_id and round id required to load its matches.

Request schema

competition_idstringrequired

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string"
      },
      "active": {
        "type": "boolean"
      },
      "gameSetTypeId": {
        "type": "string"
      },
      "matches": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "startDate": {
              "type": "string"
            },
            "lastUpdatedAt": {
              "type": "string"
            },
            "cachedAt": {
              "type": "string"
            },
            "competition": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              }
            },
            "round": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "display": {
                  "type": "boolean"
                }
              }
            },
            "period": {
              "type": "null"
            },
            "status": {
              "type": "string"
            },
            "teamA": {
              "$ref": "#/$defs/Def1"
            },
            "teamB": {
              "$ref": "#/$defs/Def1"
            },
            "redCards": {
              "type": "object",
              "properties": {
                "teamA": {
                  "type": "integer"
                },
                "teamB": {
                  "type": "integer"
                }
              }
            },
            "score": {
              "type": "null"
            },
            "aggregateScore": {
              "type": "null"
            },
            "penaltyScore": {
              "type": "null"
            },
            "link": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                },
                "pageType": {
                  "type": "string"
                },
                "newTab": {
                  "type": "null"
                },
                "url": {
                  "type": "null"
                },
                "follow": {
                  "type": "boolean"
                },
                "hubPath": {
                  "type": "null"
                },
                "__typename": {
                  "type": "string"
                }
              }
            },
            "tvChannels": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "urlLink": {
                    "type": "object",
                    "properties": {
                      "follow": {
                        "type": "boolean"
                      },
                      "sponsored": {
                        "type": "boolean"
                      },
                      "url": {
                        "type": "string"
                      },
                      "wrapperProvider": {
                        "type": "string"
                      }
                    }
                  },
                  "logo": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "alt": {
                        "type": "null"
                      },
                      "width": {
                        "type": "null"
                      },
                      "height": {
                        "type": "null"
                      },
                      "credit": {
                        "type": "null"
                      }
                    }
                  }
                }
              }
            },
            "bettingOddsDetailsList": {
              "type": "array"
            },
            "venue": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "rounds": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            }
          }
        }
      }
    }
  },
  "$defs": {
    "Def1": {
      "properties": {
        "codeName": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "image": {
          "properties": {
            "alt": {
              "type": "null"
            },
            "credit": {
              "type": "null"
            },
            "height": {
              "type": "null"
            },
            "url": {
              "type": "string"
            },
            "width": {
              "type": "null"
            }
          },
          "type": "object"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}
GET/v1/competition/details/knockout
$0.0010/req

Returns the knockout bracket for cup competitions (e.g. World Cup). Empty for league competitions.

Request schema

competition_idstringrequired

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "matches": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "match": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "startDate": {
                  "type": "string"
                },
                "link": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "pageType": {
                      "type": "string"
                    },
                    "newTab": {
                      "type": "null"
                    },
                    "url": {
                      "type": "null"
                    },
                    "follow": {
                      "type": "boolean"
                    },
                    "hubPath": {
                      "type": "null"
                    },
                    "__typename": {
                      "type": "string"
                    }
                  }
                },
                "venue": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    }
                  }
                },
                "period": {
                  "type": "null"
                },
                "status": {
                  "type": "string"
                },
                "teamA": {
                  "$ref": "#/$defs/Def1"
                },
                "teamB": {
                  "$ref": "#/$defs/Def1"
                },
                "score": {
                  "type": "object",
                  "properties": {
                    "teamA": {
                      "type": "integer"
                    },
                    "teamB": {
                      "type": "integer"
                    }
                  }
                },
                "agg": {
                  "type": "null"
                },
                "penalty": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "teamA": {
                      "type": "integer"
                    },
                    "teamB": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "phase": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "Def1": {
      "properties": {
        "code": {
          "type": "string"
        },
        "colors": {
          "items": {
            "properties": {
              "mode": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "image": {
          "properties": {
            "alt": {
              "type": "null"
            },
            "url": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "long": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}
GET/v1/competition/details/matches
$0.0010/req

Returns the matches of a single game week. Pass a game_set_type_id taken from a gameset returned by the gamesets endpoint; when it is omitted the currently active game week is returned.

Request schema

competition_idstringrequired
game_set_type_idstring

Game week id taken from the gamesets endpoint. Game set ids change every season, so leave it empty to get the currently active game week.

round_idsstring

A game week can span several rounds. Pass multiple round ids as a comma-separated string (round_ids=a,b,c).

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "startDate": {
        "type": "string"
      },
      "lastUpdatedAt": {
        "type": "string"
      },
      "cachedAt": {
        "type": "string"
      },
      "competition": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "round": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "display": {
            "type": "boolean"
          }
        }
      },
      "period": {
        "type": "null"
      },
      "status": {
        "type": "string"
      },
      "teamA": {
        "$ref": "#/$defs/Def1"
      },
      "teamB": {
        "$ref": "#/$defs/Def1"
      },
      "redCards": {
        "type": "object",
        "properties": {
          "teamA": {
            "type": "integer"
          },
          "teamB": {
            "type": "integer"
          }
        }
      },
      "score": {
        "type": "null"
      },
      "aggregateScore": {
        "type": "null"
      },
      "penaltyScore": {
        "type": "null"
      },
      "link": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "pageType": {
            "type": "string"
          },
          "newTab": {
            "type": "null"
          },
          "url": {
            "type": "null"
          },
          "follow": {
            "type": "boolean"
          },
          "hubPath": {
            "type": "null"
          },
          "__typename": {
            "type": "string"
          }
        }
      },
      "tvChannels": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "urlLink": {
              "type": "object",
              "properties": {
                "follow": {
                  "type": "boolean"
                },
                "sponsored": {
                  "type": "boolean"
                },
                "url": {
                  "type": "string"
                },
                "wrapperProvider": {
                  "type": "string"
                }
              }
            },
            "logo": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "alt": {
                  "type": "null"
                },
                "width": {
                  "type": "null"
                },
                "height": {
                  "type": "null"
                },
                "credit": {
                  "type": "null"
                }
              }
            }
          }
        }
      },
      "bettingOddsDetailsList": {
        "type": "array"
      },
      "venue": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        }
      }
    }
  },
  "$defs": {
    "Def1": {
      "properties": {
        "codeName": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "image": {
          "properties": {
            "alt": {
              "type": "null"
            },
            "credit": {
              "type": "null"
            },
            "height": {
              "type": "null"
            },
            "url": {
              "type": "string"
            },
            "width": {
              "type": "null"
            }
          },
          "type": "object"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}
GET/v1/competition/details/standings
$0.0010/req

Returns the competition standings (overall, home and away).

Request schema

competition_idstringrequired

Response schema

standingsobject
homeStandingsunknown
awayStandingsunknown
GET/v1/competition/details/top-players
$0.0010/req

Returns the competition top players by stat (goals, assists, cards, shots on target, fouls, tackles, offsides). Empty for competitions whose current season has no player stats yet.

Request schema

competition_idstringrequired

Response schema

goalsarray
assistsarray
redCardsarray
yellowCardsarray
shotsOnTargetarray
foulsCommittedarray
foulsWonarray
tacklesarray
offsidesarray

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call -X GET "https://proxy.apihub.io/goal/v1/competition/details?competition_id=34pl8szyvrbwcmfkuocjm3r6t" \
  -d '{"competition_id":"34pl8szyvrbwcmfkuocjm3r6t"}'

Or call the proxy directly (curl / any HTTP client):

curl https://proxy.apihub.io/goal/v1/competition/details?competition_id=34pl8szyvrbwcmfkuocjm3r6t \
  -H "Authorization: Bearer ahk_your_key"

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Goal.

GET /v1/competition/details$0.0010/req
-
GET /v1/competition/details/gamesets$0.0010/req
-
GET /v1/competition/details/knockout$0.0010/req
-
GET /v1/competition/details/matches$0.0010/req
-
GET /v1/competition/details/standings$0.0010/req
-
GET /v1/competition/details/top-players$0.0010/req
-
GET /v1/match/details$0.0010/req
-
GET /v1/match/details/events$0.0010/req
-
GET /v1/match/details/h2h$0.0010/req
-
GET /v1/match/details/lineups$0.0010/req
-
GET /v1/match/details/predictions$0.0010/req
-
GET /v1/match/details/standings$0.0010/req
-
GET /v1/match/details/stats$0.0010/req
-
GET /v1/match/details/top-players-ratings$0.0010/req
-
GET /v1/match/list$0.0010/req
-
GET /v1/match/live$0.0010/req
-
GET /v1/player/details$0.0010/req
-
GET /v1/player/details/career$0.0010/req
-
GET /v1/team/details$0.0010/req
-
GET /v1/team/details/matches$0.0010/req
-
GET /v1/team/details/squad$0.0010/req
-
GET /v1/team/details/standings$0.0010/req
-
GET /v1/team/details/top-players$0.0010/req
-