For golf shops · API

Ace inside your own assistant.

Your assistant keeps the conversation. When a customer needs a golf fit, it asks Ace which heads and shafts suit the golfer, the numbers behind them and how sure Ace is. Plain web requests, JSON back.

  1. Your customer asks your assistant

    “I swing about 85 and I slice it. What driver should I look at?”

  2. Your assistant asks Ace

    It sends what the golfer said as a few details, in one request.

  3. Your assistant replies

    It chooses from Ace’s shortlist in your own words and style, and shows the products you sell.

Three calls

Plain web requests that return JSON, so your developer or your assistant provider can use them without special software.

Ask for a fit

A golfer who swings about 85 mph, slices it and has an 18 handicap. Drivers, fairway woods, hybrids and irons can be asked for.

RequestExample
# Example. Swap in your key, or try the test key ace_test_sandbox.
curl https://acegolf.ai/v1/fit \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "category": "drivers",
    "golfer": {
      "hand": "right",
      "handicap": 18,
      "driver_speed_mph": 85,
      "miss": "slice"
    },
    "limit": 1
  }'
AnswerExample
{
  "sandbox": true,
  "category": "drivers",
  "ready": false,
  "numbers": {
    "speed_mph": 85,
    "speed_source": "given",
    "flex_band": "regular",
    "flex_band_speed": "75 to under 95 mph",
    "shaft_speed_mph": 85,
    "shaft_weight_g": [50, 70],
    "first_mark": null,
    "shaft_maker_wish": "none"
  },
  "heads": {
    "total": 1,
    "by_type": {
      "Forgiving": 1
    },
    "items": [
      {
        "id": "example-maker-example-driver",
        "maker": "Example Maker",
        "model": "Example Driver",
        "category": "drivers",
        "kind": "driver",
        "year": "2026",
        "status": "current",
        "head_type": "Forgiving",
        "launch": "Mid-High",
        "spin": "Mid",
        "forgiveness": null,
        "workability": null,
        "lofts_deg": "9, 10.5, 12",
        "lofts_left_hand_deg": "10.5, 12",
        "seven_iron_loft_deg": null,
        "hand": null,
        "draw_fade_setting": false,
        "hosel": "Loft sleeve"
      }
    ],
    "order": "Example only."
  },
  "shafts": {
    "total": 1,
    "items": [
      {
        "line": "Example Shaft",
        "maker": "Example Shaft Maker",
        "used_for": ["drivers"],
        "rows": [
          {
            "id": "example-shaft-55-r",
            "weight_g": 55,
            "flex": "R",
            "launch": "Mid-High",
            "spin": "Mid",
            "kick_point": "Mid",
            "speed_range_mph": [75, 95]
          }
        ]
      }
    ],
    "order": "Example only."
  },
  "confidence": {
    "percent": 50,
    "level": "Medium",
    "built_on": ["swing speed", "usual miss", "handicap"],
    "would_sharpen": [
      {
        "detail": "Your driver now",
        "send_as": "current_club",
        "ask": "What driver do you play now?"
      }
    ]
  }
}

This is what the test key returns: the same example for any valid request, with made-up clubs. A real key returns real heads and shafts from Ace’s catalogue for the golfer you send.

What comes back

A shortlist and the facts behind it. Ace’s chat chooses between the heads using what the golfer says; this call does not choose for you, so your assistant picks in its own voice.

ready
True when nothing Ace must ask first is missing and its confidence is 60 or more. False means the shortlist is a starting point: ask the golfer for what is in would_sharpen and call again.
numbers
The golfer’s swing speed (given, or worked out from a carry), the flex band, and the shaft weight and speed the shafts were matched on.
heads
The heads that suit the golfer’s hand and swing, with launch, spin, lofts and hosel for each, how many there are of each head type, and a note that the order is not a ranking. Narrow with makers, head_type and status (current or previous).
shafts
Shaft lines matched to the golfer’s speed, best match first, with weight, flex, launch, spin and the speeds each suits. Not for irons yet; the answer says so.
confidence
How sure Ace is, what that is built on, and what the golfer could add to make it surer. Each item says which detail to send.

Look up a model

GET /v1/models?q=… takes a name the way a customer says it, with the words in any order, run together or split apart. Add category or type (head or shaft) to narrow it.

heads, shafts
What the catalogue holds on the club or shaft, with each shaft row’s weight, flex, launch and spin. Anything the catalogue does not state is null, never a guess.
listed_only
A real club that Ace knows by name but holds no specs for.
did_you_mean
The nearest names, when nothing was found.

Match your products

Send up to 200 lines from your product feed, each with your own id, and see which ones Ace knows. A pilot starts with the same check, on products from your website.

RequestExample
curl https://acegolf.ai/v1/match \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      { "id": "EX-1",
        "title": "Example Maker Example Driver 10.5°" },
      { "id": "EX-2",
        "title": "Acme Pro Driver" }
    ]
  }'
AnswerExample
{
  "sandbox": true,
  "of": 2,
  "matched": 1,
  "exact": 1,
  "edition": 0,
  "none": 1,
  "items": [
    {
      "id": "EX-1",
      "status": "exact",
      "model": {
        "id": "example-maker-example-driver",
        "maker": "Example Maker",
        "model": "Example Driver",
        "category": "drivers",
        "kind": "driver",
        "year": "2026",
        "status": "current",
        "head_type": "Forgiving",
        "launch": "Mid-High",
        "spin": "Mid",
        "forgiveness": null,
        "workability": null,
        "lofts_deg": "9, 10.5, 12",
        "lofts_left_hand_deg": "10.5, 12",
        "seven_iron_loft_deg": null,
        "hand": null,
        "draw_fade_setting": false,
        "hosel": "Loft sleeve"
      },
      "also_fits": [],
      "extra_words": []
    },
    {
      "id": "EX-2",
      "status": "none",
      "reason": "No model in the catalogue is named in the title."
    }
  ]
}

exact is the model itself; edition is the model with extra words in your title, such as a colour or a package. When the words fit more than one model, such as the same model in another year, the others are listed in also_fits. A title Ace is not sure of is none, with the reason: a wrong link is worse than none.

Keys, limits and errors

What your developer needs to know before the first call.

Your key
Send it as Authorization: Bearer YOUR_API_KEY. A key is issued to your shop and kept by us only as a hash. It is for your server: a call from a web page’s script is refused, so a key never sits in a visitor’s browser.
Test key
ace_test_sandbox answers every valid call with a fixed example in the real shape, with made-up clubs. It needs no account and has its own limit on calls a minute. Requests are still checked in full, so your developer meets the real errors.
Limits
Up to 64 KB a request, 200 products a match call and 20 heads or shafts a fit call. Each key has a limit on calls a minute, and can have a monthly cap agreed with you.
Errors
Every refusal is JSON, { "error": { "code", "message" } }. The codes are bad_request (400), unauthorized (401), server_only (403), not_found (404), method_not_allowed (405), payload_too_large (413), rate_limited and cap_reached (429, with Retry-After) and unavailable (503).
What Ace keeps
A count of calls for each key, by day and by call, and how long they took. Not the golfer’s details and not your product titles.

How a trial runs

The easiest test is to put Ace beside what you already have.

  1. Pick the questions

    Twenty real golf questions from your customers, from simple spec checks to full fits.

  2. Get a test key

    We set up a key for your developer. Nothing goes live on your site.

  3. Compare answers

    Your assistant and Ace answer the same questions, side by side.

  4. Decide

    If Ace answers better, we agree a price and connect it. If not, you have lost an afternoon.

Want a key for your developer?

Email us and say which assistant your shop uses. We will tell you what is possible and when.

Ace is an AI and can be wrong. This page describes the API as it is built for trials: the examples are made up, and nothing here is a price, an offer or a live service. See the terms and the privacy page.