# Upcoming matches with form and head-to-head

**Use case:** 

ATP and WTA singles matches scheduled for the next 3 days, each with the head-to-head record and both players' last 10 matches, overall and on the surface. At most $0.15 at the base price.

## Input

```json
{
  "targets": [
    "Wimbledon 2025"
  ],
  "dayRange": "next-3-days",
  "maxResults": 100,
  "tours": [
    "atp",
    "wta"
  ],
  "matchType": "singles",
  "statuses": [
    "scheduled"
  ],
  "seasons": 1,
  "includeQualifying": true,
  "statistics": false,
  "setDetails": false,
  "pointByPoint": false,
  "formAndH2H": true,
  "formMatches": 10
}
```

## Output

```json
{
  "startTime": {
    "label": "Start (UTC)",
    "format": "date"
  },
  "tournament": {
    "label": "Tournament",
    "format": "text"
  },
  "round": {
    "label": "Round",
    "format": "text"
  },
  "surface": {
    "label": "Surface",
    "format": "text"
  },
  "homePlayer": {
    "label": "Home player",
    "format": "text"
  },
  "awayPlayer": {
    "label": "Away player",
    "format": "text"
  },
  "h2hHomeWins": {
    "label": "Head-to-head wins (home)",
    "format": "number"
  },
  "h2hAwayWins": {
    "label": "Head-to-head wins (away)",
    "format": "number"
  },
  "homeFormWon": {
    "label": "Recent wins (home)",
    "format": "number"
  },
  "homeFormPlayed": {
    "label": "Recent matches (home)",
    "format": "number"
  },
  "awayFormWon": {
    "label": "Recent wins (away)",
    "format": "number"
  },
  "awayFormPlayed": {
    "label": "Recent matches (away)",
    "format": "number"
  },
  "homeSurfaceFormWon": {
    "label": "Wins on this surface (home)",
    "format": "number"
  },
  "homeSurfaceFormPlayed": {
    "label": "Matches on this surface (home)",
    "format": "number"
  },
  "awaySurfaceFormWon": {
    "label": "Wins on this surface (away)",
    "format": "number"
  },
  "awaySurfaceFormPlayed": {
    "label": "Matches on this surface (away)",
    "format": "number"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "score": {
    "label": "Score",
    "format": "text"
  },
  "matchUrl": {
    "label": "Match link",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Tennis Scraper API](https://apify.com/cleanscrape/tennis-match-data.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/cleanscrape/tennis-match-data.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/cleanscrape/tennis-match-data.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
