swagger: '2.0' info: description: 'This is Genius Sports Services Fixture API.

Changelog resume

Authentication

You need to provide two tokens in every API call. The access_token for Auth0 client AND your API key

What is new in Fixtures API v2.

Fixture Tree Structure

Examples

I am interested in round 2 fixtures for the English Premier League


I am interested in Arsenal and their players

' version: 2.0.280 title: Fixtures-v2 Competitions Sports API contact: email: sbonboarding@geniussports.com license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html host: fixtures.api.geniussports.com basePath: /v2 schemes: - https tags: - name: Sports paths: /sports: options: consumes: - application/json produces: - application/json responses: '200': description: 200 response schema: $ref: '#/definitions/Empty' headers: Access-Control-Allow-Origin: type: string Access-Control-Allow-Methods: type: string Access-Control-Allow-Headers: type: string tags: - Sports get: tags: - Sports summary: Retrieve sports by ID/s. MAX 200 per page. description: Returns sports wrapped inside a HATEOAS model produces: - application/json parameters: - name: page in: query description: The number of page to be returned. The default value is 1. required: false type: string - name: pageSize in: query description: The size of the page to be returned. The default value is 10. required: false type: string - name: sortBy in: query description: 'The field to ''order by'' by. Descending ordering also allowed. Fields to order by for this endpoint: (id, name)' required: false type: string - name: x-api-key in: header required: true type: string - name: filter in: query description: 'The field to ''filter'' by. Check main description for filter comparators. Fields to filter by for this endpoint: (id, name)' required: false type: string responses: '200': description: successful operation schema: $ref: '#/definitions/SportResponseModelHATEOASReponseModel' headers: Access-Control-Allow-Origin: type: string '520': description: Unknown error schema: $ref: '#/definitions/ErrorModel' '400': description: Bad request schema: $ref: '#/definitions/BadRequestModel' '500': description: Internal Server Error schema: $ref: '#/definitions/ErrorModel' '401': description: Unauthorized schema: $ref: '#/definitions/ErrorModel' '413': description: Payload Too Large schema: $ref: '#/definitions/ErrorModel' '403': description: Forbidden schema: $ref: '#/definitions/ErrorModel' '415': description: Unsupported Media Type schema: $ref: '#/definitions/ErrorModel' '404': description: Not found schema: $ref: '#/definitions/ErrorModel' '504': description: Gateway Timeout schema: $ref: '#/definitions/ErrorModel' '429': description: Too Many Requests OR Limit Exceeded - On reason = Too Many requests one should re-try, for Limit Exceeded that does not help you schema: $ref: '#/definitions/ErrorModel' security: - Auth0: [] - api_key: [] /sports/{id}/{entityType}/metadata: options: consumes: - application/json produces: - application/json parameters: - name: entityType in: path required: true type: string - name: id in: path required: true type: string responses: '200': description: 200 response schema: $ref: '#/definitions/Empty' headers: Access-Control-Allow-Origin: type: string Access-Control-Allow-Methods: type: string Access-Control-Allow-Headers: type: string tags: - Sports get: tags: - Sports summary: Retrieve allowed properties per entity type name and per sport. description: Retrieve allowed properties per entity type name and per sport. produces: - application/json parameters: - name: entityType in: path description: 'Entity type is the name of the entity for which the allowed properties will be retrieved. Entity types: competition, competitor, contract, fixture, round, season, venue, fixtureperson, player, team' required: true type: string - name: x-api-key in: header required: true type: string - name: id in: path description: The sport for which the allowed properties will be retrieved. required: true type: string responses: '200': description: successful operation schema: $ref: '#/definitions/ArrayOfMetadataPropertyTypesResponseModel' headers: Access-Control-Allow-Origin: type: string '520': description: Unknown error schema: $ref: '#/definitions/ErrorModel' '400': description: Bad request schema: $ref: '#/definitions/BadRequestModel' '500': description: Internal Server Error schema: $ref: '#/definitions/ErrorModel' '401': description: Unauthorized schema: $ref: '#/definitions/ErrorModel' '413': description: Payload Too Large schema: $ref: '#/definitions/ErrorModel' '403': description: Forbidden schema: $ref: '#/definitions/ErrorModel' '415': description: Unsupported Media Type schema: $ref: '#/definitions/ErrorModel' '404': description: Not found schema: $ref: '#/definitions/ErrorModel' '504': description: Gateway Timeout schema: $ref: '#/definitions/ErrorModel' '429': description: Too Many Requests OR Limit Exceeded - On reason = Too Many requests one should re-try, for Limit Exceeded that does not help you schema: $ref: '#/definitions/ErrorModel' security: - Auth0: [] - api_key: [] definitions: BadRequestModel: type: object properties: messages: type: array items: type: string Error: type: object required: - domain - message - reason properties: reason: type: string domain: type: string locationType: type: string location: type: string message: type: string Empty: type: object SportResponseModelHATEOASReponseModel: type: object properties: page: type: integer format: int32 pageSize: type: integer format: int32 totalItems: type: integer format: int64 items: type: array items: $ref: '#/definitions/SportResponseModel' self: type: string previous: type: string next: type: string first: type: string last: type: string ArrayOfMetadataPropertyTypesResponseModel: type: array items: $ref: '#/definitions/MetadataPropertyTypesResponseModel' ErrorModel: type: object properties: code: type: integer format: int32 message: type: string error: $ref: '#/definitions/Error' MetadataPropertyTypesResponseModel: type: object required: - allowNonPredefinedValues - id - isRequired - name properties: id: type: integer format: int64 title: Id of the property type name: type: string title: Name of the property type allowNonPredefinedValues: type: boolean title: True or false value. Defines whether you can use any value or you should use value from the list below. isRequired: type: boolean description: Is property required for the specific entity for the specific sport title: Is property required for the specific entity for the specific sport values: type: array items: type: string SportResponseModel: type: object required: - allowsDoubles - allowsPlayers - createdOn - id - name - updatesCount properties: id: type: integer format: int64 title: Id of the sport name: type: string title: Name of the sport allowsPlayers: type: boolean description: Whether players can be proposed for the specific sport. True when Players can be proposed title: Can Players be proposed for the specific sport allowsDoubles: type: boolean description: Whether players can be proposed for the specific sport. True when Doubles can be proposed title: Can Doubles be proposed for the specific sport maxNumberOfCompetitorsInFixture: type: integer format: int32 description: The maximum number of competitors which can take part in a fixture for the specific sport. The minimum is 2. The maximum depends on this number. The maximum is inclusive e.g. number of competitors <= maxNumberOfCompetitorsInFixture. When maxNumberOfCompetitorsInFixture is set to null this means that there is no upper limit of the number of competitors which can take part in the fixtures for the specific sport. title: The maximum number of competitors which can take part in a fixture for the specific sport createdOn: type: string format: date-time title: The date on which the sport was created modifiedOn: type: string format: date-time title: The date on which the sport was modified updatesCount: type: integer format: int32 title: The number of updates made to the sport securityDefinitions: Auth0: type: apiKey name: Authorization in: header x-amazon-apigateway-authtype: oauth2 api_key: type: apiKey name: x-api-key in: header x-amazon-apigateway-security-policy: TLS_1_0