VALUEODDSAPI / BUYER GUIDES
How do you join external event IDs to an odds API?
Resolve the provider’s fixture ID to the API event registry, follow merges and test the join on the competitions your product needs.
Published by ValueOddsAPI · 26 November 2026
In 30 seconds
- Use assigned IDs. Do not construct an event ID from team names or kickoff time.
- Resolve the provider pair.
GET /v2/id-mapacceptsproviderandid; the pair is the lookup key. - Handle merges. An older event ID remains usable but may point through
merged_intoto a current event. - Measure your joins. Count matched, missing and ambiguous customer fixtures in a scoped pilot before buying.
Why does event identity matter?
Your schedule, model and odds feed may each label the same fixture differently. Joining on a display name can merge unrelated matches or split one fixture into two. The v2 identifier reference says event IDs are assigned, opaque and never reused. It also documents merged_into and previous_ids for duplicate events that are later consolidated.
The published contract defines GET /v2/id-map for external IDs on events, teams, competitions and players, plus bookmaker event IDs. Use it to resolve an external ID to the API registry before joining prices or history. This guide concerns the event join; selection identity still needs the market-mapping checks.
Which identifiers should the integration keep?
| Field | Use | Failure if ignored |
|---|---|---|
provider + external id | Input to /v2/id-map; retain both as a pair. | The same text ID can mean a different entity in another provider. |
Assigned event_id | Persist as the odds-feed join key. | A name or time change creates a second local fixture. |
resolved_id / merged_into | Follow the current identity after a merge. | Old and current events remain duplicated in your product. |
previous_ids | Reconcile local references to earlier IDs. | Historical references appear orphaned. |
book_ref.event_id | Trace a price to its bookmaker event where present. | A source reference is mistaken for the assigned event ID. |
Field behavior comes from the identifier documentation, price-row reference and v2 contract. The handling rules are client recommendations.
How do you design a safe lookup?
Store the source system and its event ID alongside the assigned API event ID. Call GET /v2/id-map?provider=... with the provider and URL-encoded external ID. Treat a missing mapping as unresolved, not as permission to match on similar team names automatically. The contract says bookmaker event IDs are searched only for bookmakers in your plan and only entitled sports are returned. Check GET /v2/me before treating a denied or absent response as a data-quality failure.
After lookup, fetch GET /v2/events/ for the assigned ID. If the response reports merged_into, retain the old ID as an alias and use the current resolved ID for new joins. The documented endpoint keeps an old ID working, but a local database still needs to avoid displaying both aliases as separate events. This is a proposed client workflow, not a claim that a particular customer feed already matches.
How do you test a provider join before purchase?
Take a dated sample of fixtures from the provider you actually use. Keep its provider name, raw ID, competition, teams and start time as review evidence. Look up each provider-ID pair, follow merges, and manually check the returned fixture. Record matched, missing, wrongly matched and unverifiable rows separately. Do not count an unlicensed bookmaker lookup as missing event coverage.
For each matched event, verify one intended market and selection through the market-mapping pilot. Define an acceptance threshold for your own target competitions before sampling. Report the denominator, sample dates and provider; this article publishes no measured match rate.
Frequently asked questions
Can I join events by team names and kickoff?
Use those fields for human review, not as the primary key. The v2 assigned ID and documented external mapping are the safer join.
Does an old event ID stop working after a merge?
The identifier documentation says old IDs keep working. Follow merged_into or resolved_id so your own product has one current fixture.
Is a bookmaker event ID the same as event_id?
No. book_ref.event_id is the bookmaker’s source identifier; the assigned event_id is the v2 registry key.
Does a failed lookup prove a fixture is absent?
No. Check provider spelling, account scope, sport entitlement and the source ID before classifying the gap.
What source details remain after the join?
Keep the assigned event ID and any bookmaker source ID as separate fields. The bookmaker provenance guide shows how to audit source market names and optional deeplinks on the resulting price row.
ValueOddsAPI provides odds data, not betting advice. Betting involves risk of loss and is for adults (18+) only. If gambling stops being fun, contact your local support service, such as StopSpillet in Denmark.
Run an identity pilot
Start with the identifier reference and v2 contract. Use a fixture sample from your own provider, confirm the account scope with /v2/me, and discuss any unmatched critical competitions before rollout.