Find a race
find_racesUse this when the user is looking for a race to enter, for example "which 70.3 can I do in South America next spring", "marathons in Europe in April" or "a HYROX near Riga". It lists races from Phorme's verified race listings that fit the kind of race, the place (a country, city or region) and the months asked, by date only, each with its city, date, its own page, its registration as the organiser last showed it, and whether Phorme has a plan that counts back to it. When the organiser has given them, the race's own logistics are included: where to pick up the race packet, the nearest airport, getting there and the official hotels the organiser lists, with the page they came from. It reads only and changes nothing. Only races in Phorme's listings are returned, with the dates the listings give.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | The kind of race, for example "70.3", "triathlon", "marathon", "half marathon" or "HYROX". Leave out for any. | |
| where | No | A country, city or region, for example "Colombia", "Barranquilla" or "South America". Leave out for anywhere. | |
| to_month | No | Last month, YYYY-MM, only if the user gave a window. | |
| from_month | No | First month, YYYY-MM, only if the user gave a window. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| races | Yes | Races by date: name, city, country, on (YYYY-MM-DD or null), url (the race's own page), registration (status open, sold_out, opening_soon or closed, its url and checked_on, or null), has_plan, and logistics (the race's own venue, packet pickup, airport, official hotels and guide links as the organiser listed them, with source_url and checked_on; null when not given). | |
| limits | Yes | Where the dates come from and what to check. Tell the user. |