Sports odds data in a simple API. Covering bookmakers from around the globe for NFL, NBA, EPL and much more.
Retrieve the current odds for a specific sport or match. See the documentation
Delay the execution of your workflow for a specific amount of time (does not count against your compute time).
Get a list of upcoming sports events available on The Odds API. See the documentation
With The Odds API on Pipedream, you can access a range of bookmakers and exchanges to get live and upcoming sports odds. This integration allows you to create workflows for odds comparison, betting opportunities, or even to power a custom alerting system for when odds reach a certain threshold. The data provided by The Odds API can be used to inform decisions or feed into other apps for enhanced functionality.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
the_odds_api: {
type: "app",
app: "the_odds_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.the-odds-api.com/v4/sports/basketball_nba/scores/`,
params: {
daysFrom: `1`,
apiKey: `${this.the_odds_api.$auth.api_key}`,
},
})
},
})
The Delay API in Pipedream is a built-in function that allows you to pause a workflow for a specified amount of time. This can be incredibly useful when you need to stagger API calls to avoid rate limits, wait for an external process to complete, or simply introduce a delay between actions in a sequence. With precision up to milliseconds, the Delay API provides a simple yet powerful tool for managing timing in automation workflows.
export default defineComponent({
async run({steps, $}) {
// Specify the amount of time to delay your workflow in milliseconds
return $.flow.delay(5000)
},
})