Trigger workflows on an interval or cron schedule.
Trigger your workflow on one or more days each month at a specific time (with timezone support).
Emit new event when a new sports event is listed on The Odds API.
Trigger your workflow on one or more days each week at a specific time (with timezone support).
Retrieve the current odds for a specific sport or match. See the documentation
Get a list of upcoming sports events available on The Odds API. See the documentation
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.
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}`,
},
})
},
})