search_fixtures
¶
search_fixtures(
sport: DataSourceSport,
start_date: FixtureDate,
*,
config_overrides: Optional[ElementalInferenceClientConfig] = None,
end_date: Optional[FixtureDate] = None,
filters: Optional[SearchFilterList] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
) -> SearchFixturesResponse
Searches for the fixtures (sports events, such as a specific basketball game) that are available for a sport in a date window. Each fixture in the response includes a fixtureId that you specify in the clipping output of a feed, so that Elemental Inference maps the event data for that fixture onto the clipping metadata. This operation is paginated: if there are more fixtures than fit in one page, the response includes a nextToken that you pass in a subsequent request.
Parameters:
-
sport(DataSourceSport) –The sport to search for fixtures. Valid values: basketball (search for basketball fixtures), american-football (search for american-football fixtures).
-
start_date(FixtureDate) –The first day of the search window, in UTC. The search includes fixtures that are scheduled on this day.
Specify the date in ISO 8601 format, as
YYYY-MM-DD. For example, 2026-03-14. -
end_date(Optional[FixtureDate], default:None) –The last day of the search window, in UTC. The search includes fixtures that are scheduled on this day. Specify the date in ISO 8601 format, as
YYYY-MM-DD.If you omit this parameter, Elemental Inference searches only the day that you specified in startDate. The window from startDate through endDate must not exceed seven days.
-
filters(Optional[SearchFilterList], default:None) –An array of filters that narrow the results. Each filter applies to one dimension of a fixture, such as the competitor. You can specify up to 10 filters.
A fixture must satisfy every filter in the array in order to appear in the results. Within one filter, a fixture must match at least one of the values.
-
max_results(Optional[int], default:None) –The maximum number of fixtures to return for each API request.
The service might return fewer fixtures than the maxResults value. When more fixtures match the search, the response also includes a nextToken value that you can use to fetch the next batch of results.
-
next_token(Optional[str], default:None) –The token that identifies the batch of results that you want to see.
For example, you submit a SearchFixtures request with maxResults set at 5. The service returns the first batch of results (up to 5) and a nextToken value. To see the next batch of results, you submit the SearchFixtures request a second time, with the same search criteria, and specify the nextToken value.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
GatewayTimedOutException–The request timed out before the service returned a response. This is a temporary condition. Retry the request. If the problem persists, contact AWS Support.
-
InternalServerErrorException–An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
-
ServiceUnavailableException–The service is temporarily unable to handle the request. Retry the request. If the problem persists, contact AWS Support.
-
TooManyRequestException–The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
-
ValidationException–The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
-
UnknownServiceError–The service returned an error code this client does not model.