How do I get Horse racing form from the API?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • munchine
    Junior Member
    • Aug 2020
    • 2

    #1

    How do I get Horse racing form from the API?

    I'm looking to extract the racing form but cannot see how to do it (or even if it's possible) from market catalogue. From the browser, the betfair website is extracting it from https://www.racingandsports.com.au/e...meeting=174510

    What I like to do it extract the horse's previous race performance; the class of race, placing and margin.

    is this doable from the betfair api?
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #2
    You can get horse recent form from the data returned form listMarketCatalogue API call. The API-NG spec details it.
    The metadata contains


    DAMSIRE_YEAR_BORN
    SIRE_NAME
    SIRE_YEAR_BORN
    WEIGHT_UNITS
    STALL_DRAW
    WEIGHT_VALUE
    DAMSIRE_BRED
    SEX_TYPE
    SIRE_BRED
    TRAINER_NAME
    BRED
    FORECASTPRICE_NUMERATOR
    FORM
    OWNER_NAME
    JOCKEY_NAME
    runnerId
    DAM_YEAR_BORN
    AGE
    COLOURS_DESCRIPTION
    DAM_NAME
    CLOTH_NUMBER_ALPHA
    DAM_BRED
    FORECASTPRICE_DENOMINATOR
    DAYS_SINCE_LAST_RUN
    DAMSIRE_NAME
    OFFICIAL_RATING
    COLOUR_TYPE
    CLOTH_NUMBER
    Last edited by geoffw123; 01-09-2020, 02:58 PM.

    Comment

    • munchine
      Junior Member
      • Aug 2020
      • 2

      #3
      This metadata isn't sufficient, the FORM it returns is in the format '345x8', I want to know what class was that race, what was the margin, what was the weight. How do I get that via Betfair

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        Nothing further available via the API. You'll have to acquire it elsewhere. You could try scraping it from another site. I understand the HTMLAgility package package makes that kind of thing easier.

        Comment

        • bfexplorer
          Senior Member
          • Sep 2018
          • 212

          #5
          https://youtu.be/7yZ2loBq28Y?list=PL...1TpalMOzGmMwsh

          Comment

          Working...
          X