# Tennis Abstract rankings and leaderboards API

Get Tennis Abstract Rankings & Reports data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, raw, and retrieve structured data including selected source report, source report rows, and next result offset to report viewers, and paged comparisons, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/tennis-abstract/tennis-abstract-rankings-and-leaderboards-api/b0783399-c2c5-4ca4-87c6-3358ac455100/
API ID: b0783399-c2c5-4ca4-87c6-3358ac455100
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/tennisabstract/v1/report
Page update time: 2026-12-03T02:47:57.034Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:47:55.799Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Tennis Abstract Rankings & Reports API

Pass a supported report name. span=last52 or career applies to Match Charting Project and winners/errors reports. q filters rows mentioning the text; limit is at most 1000.

## What You Can Build

- **Report viewers**: Render each source report with its supplied column labels.
- **Paged comparisons**: Compare rows inside the same report, tour and applicable span.

## Returned Data

| Field | Meaning |
| --- | --- |
| `report` | Selected source report |
| `columns` | Column labels for this report |
| `rows` | Source report rows |
| `next_offset` | Next result offset |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Tennis Abstract rankings and leaderboards API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "report": {
          "type": "string",
          "description": "Report name.",
          "enum": [
            "rankings",
            "country-rankings",
            "lefty-rankings",
            "one-hand-backhand-rankings",
            "rankings-by-age",
            "ranking-milestones",
            "next-slam",
            "bakery",
            "lottery-matches",
            "challenger-lottery-matches",
            "best-who-havent",
            "surface-speed",
            "h2h-matrix",
            "birthdays",
            "mcp-serve",
            "mcp-return",
            "mcp-rally",
            "mcp-tactics",
            "winners-errors"
          ]
        },
        "tour": {
          "type": "string",
          "description": "atp (default) or wta.",
          "enum": [
            "atp",
            "wta"
          ]
        },
        "span": {
          "type": "string",
          "description": "Match Charting Project and winners/errors reports: last 52 weeks (default) or career.",
          "enum": [
            "last52",
            "career"
          ]
        },
        "q": {
          "type": "string",
          "description": "Only rows mentioning this text (e.g. a player or country)."
        },
        "limit": {
          "type": "integer",
          "description": "Rows per page (default 100, max 1000)."
        },
        "offset": {
          "type": "integer",
          "description": "Rows to skip."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "report"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "description": {
      "type": "string"
    },
    "fetched_at": {
      "type": "string"
    },
    "list_title": {
      "type": "string"
    },
    "next_offset": {
      "type": "integer"
    },
    "other_tables": {
      "type": "array",
      "items": {}
    },
    "report": {
      "type": "string"
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "Birthdate": {
            "type": "string"
          },
          "Country": {
            "type": "string"
          },
          "Player": {
            "type": "string"
          },
          "Rank": {
            "type": "integer"
          },
          "links": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "player_slug": {
            "type": "string"
          }
        }
      }
    },
    "source_url": {
      "type": "string"
    },
    "span": {
      "type": "null"
    },
    "title": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    },
    "tour": {
      "type": "string"
    },
    "updated": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/tennisabstract/v1/report?limit=1&output=json&raw=0&report=rankings' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "columns": [
    "Rank",
    "Player",
    "Country",
    "Birthdate"
  ],
  "count": 1,
  "credits_used": 1,
  "description": "A simple ranking report sortable by country and date of birth.",
  "fetched_at": "2026-11-19T12:23:23.741Z",
  "list_title": "Rank",
  "next_offset": 1,
  "other_tables": [],
  "report": "rankings",
  "rows": [
    {
      "Birthdate": "1997-04-20",
      "Country": "GER",
      "Player": "Alexander Zverev",
      "Rank": 1,
      "links": [
        "https://www.tennisabstract.com/cgi-bin/player.cgi?p=AlexanderZverev"
      ],
      "player_slug": "AlexanderZverev"
    }
  ],
  "source_url": "https://www.tennisabstract.com/reports/atpRankings.html",
  "span": null,
  "title": "2026 ATP and ITF Rankings",
  "total": 2315,
  "tour": "atp",
  "updated": "2026-11-16"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does span apply to every report?
It is documented for Match Charting Project and winners/errors reports, not as a universal date filter.

### How do I continue a report?
Use next_offset as offset; limit defaults to 100 and is at most 1000.

### Is every report a standard ATP or WTA ranking?
No. report also selects specialist statistical reports; keep the report title and columns with each row.

### Does q search every source page?
It retains report rows mentioning the supplied text, rather than performing a separate global search.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/tennis-abstract/tennis-abstract-rankings-and-leaderboards-api/b0783399-c2c5-4ca4-87c6-3358ac455100/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
