Skip to content
API reference / Tennis
GET/tennis/leagues

Get tennis categories

Returns a list of all available tennis categories with optional filtering

In the plans that cover this sportNo charge per call without a key (x402)

Parameters

  • futurestring · query

    Filter to categories with future matches (true)

  • tourstring · query

    Filter by tour

  • disciplinestring · query

    Filter by discipline

  • stagestring · query

    Filter by stage

  • surfacestring · query

    Filter by surface

Response

JSON with success, the result in data, and where the endpoint pages its results meta.

  • dataarray of object
  • category_idinteger
  • category_namestring
  • disciplinestring
  • stagestring
  • surfacestring
  • tourstring
  • errorobject
  • codestring
  • messagestring
  • metaobject
  • attributionstring

    Attribution a data source's licence asks for (Cricsheet's history).

  • limitinteger
  • offsetinteger
  • totalinteger
  • successboolean

Errors

StatusCodeWhen
401UNAUTHORIZEDThe key is missing, mistyped or was rotated.
403FORBIDDENThe sport or feature is not in your plan (FEATURE_NOT_IN_PLAN for Insights and other plan features).
500INTERNAL_ERROROur side. Try again after a few seconds and check the status page.

All errors have the shape described in Errors and limits.

Generated from the OpenAPI file, version 1.0. See it as JSON

Was this page helpful?