apitennis_h2h
Compare two tennis players by retrieving their head-to-head history and recent match results, supporting pre-match analysis.
Instructions
Head-to-head history between two players, plus each one's recent form.
Returns: {success:1, result:{H2H:[{event_key, event_date, event_first_player, event_second_player, event_final_result, tournament_name}], firstPlayerResults:[…], secondPlayerResults:[…]}} — SHAPE FROM VENDOR DOCS. Note result here is an OBJECT, not a list like the other methods.
NOTE: this shape is from the vendor's documentation and has NOT been verified against a live response (we hold no key for this provider). Treat it as approximate — inspect the actual payload before relying on a field name.
Example: Two players' H2H {"method": "get_H2H", "first_player_key": 1905, "second_player_key": 1903}
Auth: needs your own key in API_TENNIS_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | Leave as-is (note the capital H2H). | get_H2H |
| first_player_key | Yes | First player key. | |
| second_player_key | Yes | Second player key. |