RESTFUL APIs FOR SPORTS DATA | FOOTBALL | BASKETBALL | BASEBALL | HOCKEY | RUGBY | FORMULA-1 | HANDBALL | VOLLEYBALL
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
api_sports: {
type: "app",
app: "api_sports",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.api_sports.$auth.api_name}.api-sports.io/countries`,
headers: {
"x-apisports-key": `${this.api_sports.$auth.api_key}`,
},
})
},
})
API Sports uses API keys for authentication. When you connect your API Sports account, Pipedream securely stores the keys so you can easily authenticate to API Sports APIs in both code and no-code steps.
To retrieve your API keys,