Results API

A separate API from the main odds feed for checking resulting post event

Introduction

API is currently on staging on https://api.golf-pricing.staging.imgarena.dev/arrow-up-right and will be on production on https://golf-resulting-api.services.imgarena.comarrow-up-right in due course.

The API requires authentication with "Basic Auth" and there is one global set of credentials for all as per below on staging.

  • user: resulting-api-user

  • password: WPsP^sFX#)RK4QUnBXzB8j9+ajTKU)jh

Available endpoints

Request

  1. GET /ping

Response

OK
  1. GET /event/{eventId}

Returns the leaderboard for the tournament eventId

Example: https://api.golf-pricing.staging.imgarena.dev/event/1113arrow-up-right request in attachment below

file-download
399KB
  1. GET /market/{marketId}

Returns the resulting for the market that has the id marketId

chevron-rightGET https://api.golf-pricing.staging.imgarena.dev/market/tid%3A1112%7Cmt%3ATOP_10%7Cr%3A4%7Ctopn%3A10arrow-up-righthashtag
  1. POST /markets

chevron-rightPOST https://api.golf-pricing.staging.imgarena.dev/marketsarrow-up-righthashtag

with Body

circle-info

Please note for the /market endpoint the syntax/path is /market/{marketId} but the market id looks like tid:1112|mt:TOP_10|r:4|topn:10 which contains colons and pipes which are not allowed in URLs so they must be encoded https://www.w3schools.com/tags/ref_urlencode.ASParrow-up-right

FAQ

Is there a limit on requests? Either rate limiting or number of markets per request? Yes, requests are rate limited to ensure the availability of the service at times of high demand. How long after a market or selection has been resulted in the odds feed will it be made available in the results API and how long will those results persist on the results API. The results should be made available almost instantaneously upon settlement. We intend to remove the results after 1 week. If you feel that's too short, please let us know. If results are made available in the results API and then a resettlement occurs on the odds feed how is that reflected in the results API? The API will be updated upon resettlement. Will results still be available in the odds feed? Yes resulting will not change in the odds feed. This service is primarily for checking results post round/tournament.

Last updated

Was this helpful?