Jump to content
Subscribe to the Spin Axis Podcast! ×

Recommended Posts

Posted

I would be interested in it.

I ended up with a pretty twisted way of getting the data in to my MYSQL data base, but it requires I get an nightly handicap report by email for each of the clubs I am in.

to give you an idea.

  1. Email send to my inbox. 
  2. Email filter in Thunderbird that extracts the attachment and puts it in a folder on my PC.
  3. Window Cron job that looks in that fold for any new files and if FTP's them to my Server.
  4. Linux Cron that looks for that file and parses the file and inserts the into the DB.

D


  • 2 months later...
Posted
  On 8/13/2024 at 2:08 PM, howiekrauth said:

I know this is an old thread, but I have some code written in python to pull handicaps from the GHIN system.

I wound up here because I was curious if there is a public API for the GHIN system.  Does anyone know?

Let me know if you need the python code...

Expand  

Dang. I've been brainstorming/designing an app that simply requires READ access to GHIN. The primary pro to being able to have authorized READ access to GHIN would be ensuring that users are actually using their GHIN which could limit the ability for them to game their scores. If anyone has any idea how to do so please hit me up.


  • 3 months later...
Posted
  On 8/13/2024 at 2:08 PM, howiekrauth said:

I know this is an old thread, but I have some code written in python to pull handicaps from the GHIN system.

I wound up here because I was curious if there is a public API for the GHIN system.  Does anyone know?

Let me know if you need the python code...

Expand  

I would be interested in seeing what you have done.  Just started working on a Golf Game app for my buddies. I have a few ideas, but have not had any luck pull updated handicaps through an API. So for, I have to do it manually and update the app.


Posted
  On 8/13/2024 at 2:08 PM, howiekrauth said:

I know this is an old thread, but I have some code written in python to pull handicaps from the GHIN system.

I wound up here because I was curious if there is a public API for the GHIN system. Does anyone know?

Let me know if you need the python code...

Expand  

If you still have that code available, I would love to get a copy. We have PowerShell code that pulls indexes and individual 9-hole handicaps for the tee sets of the course we play. We have 40 players and use this data for skins. We do skins by flight which we have 4 of them A,B,C,D and without pulling this data it would be almost impossible to do in the application. Right now, we also grab each "card" as it comes off the course and put it into a spreadsheet to help us understand who won the round and helps us with skins. Each golfer is required to enter their own scores in GHIN also. Our goal is to have each golfer enter in the scores in GHIN but pull the individual hole scores down each week after the round is posted so that we can figure skins, and points. I found a site for APIs, but it is old referencing https://api.ghin.com/api/v1. Our current code uses https://api2.ghin.com/api/v1. I tried using that along with what was provided in the old doc, but it appears many of the API signatures changed. I'm hoping I can use the python code to get examples of the API calls I need. if nothing else I could recode ours to use python.


  • 2 months later...
Posted

I have this working.  I'm using python and c#, and it's all displayed on a website I created.  Sorry for the delay, I haven't been on this site in quite a while.  This site helped a lot:  

https://app.swaggerhub.com/apis-docs/GHIN/Admin/1.0#/Club APIs/

I've done a bunch of work on this to get it working.  If any of you would like I can probably dump the information you need into a website.  I just need either GHIN ID's or a Club ID.

  On 2/28/2022 at 3:37 AM, Zippo said:

Any of you folk out there programmers? I've been attempting to access the USGA GHIN API via VBA and JSON but, so far have not been completely successful. I've done the usual search thing on the interwebs but I thought I'd check and see if any of you had attempted this as well.

Dagnabbit! Sorry about the case use on the subject line - again.

Expand  

 


  • 4 weeks later...
Posted
  On 5/1/2025 at 5:56 PM, howiekrauth said:

I have this working.  I'm using python and c#, and it's all displayed on a website I created.  Sorry for the delay, I haven't been on this site in quite a while.  This site helped a lot:  

https://app.swaggerhub.com/apis-docs/GHIN/Admin/1.0#/Club APIs/

I've done a bunch of work on this to get it working.  If any of you would like I can probably dump the information you need into a website.  I just need either GHIN ID's or a Club ID.

 

Expand  

@howiekrauth how did you get this working in Python? I am using the site you linked, trying to execute the API calls in that page, but am getting "Invalid Token". Did you have to go thru GHIN to get an API key somehow? A snippet of Python code for any simple GET request would be awesome. Thanks.


  • 1 month later...
Posted (edited)

@wwk3I can send you something if you give me a way to contact you.  I'd rather not just throw it out in public...

  On 5/1/2025 at 1:41 PM, scott61 said:

I'm very interested in seeing your Python code. Can you email a link to me? Thanks!!!

Expand  

@scott61 I can send you something - how do I get your email?

  On 2/18/2025 at 10:08 PM, Bnoble said:

If you still have that code available, I would love to get a copy. We have PowerShell code that pulls indexes and individual 9-hole handicaps for the tee sets of the course we play. We have 40 players and use this data for skins. We do skins by flight which we have 4 of them A,B,C,D and without pulling this data it would be almost impossible to do in the application. Right now, we also grab each "card" as it comes off the course and put it into a spreadsheet to help us understand who won the round and helps us with skins. Each golfer is required to enter their own scores in GHIN also. Our goal is to have each golfer enter in the scores in GHIN but pull the individual hole scores down each week after the round is posted so that we can figure skins, and points. I found a site for APIs, but it is old referencing https://api.ghin.com/api/v1. Our current code uses https://api2.ghin.com/api/v1. I tried using that along with what was provided in the old doc, but it appears many of the API signatures changed. I'm hoping I can use the python code to get examples of the API calls I need. if nothing else I could recode ours to use python.

Expand  

@Bnoble I use python to pull access codes, and c#/.Net to do the rest.  I could probably get you what you need.  Let me know how to get in touch with you and I'll see what I can do...

  On 10/16/2024 at 3:30 AM, blagbogs said:

Dang. I've been brainstorming/designing an app that simply requires READ access to GHIN. The primary pro to being able to have authorized READ access to GHIN would be ensuring that users are actually using their GHIN which could limit the ability for them to game their scores. If anyone has any idea how to do so please hit me up.

Expand  

@blagbogsLet me know how to get in touch with you directly via email.

  On 8/13/2024 at 2:57 PM, Whirlwind said:

I would be interested in it.

I ended up with a pretty twisted way of getting the data in to my MYSQL data base, but it requires I get an nightly handicap report by email for each of the clubs I am in.

to give you an idea.

  1. Email send to my inbox. 
  2. Email filter in Thunderbird that extracts the attachment and puts it in a folder on my PC.
  3. Window Cron job that looks in that fold for any new files and if FTP's them to my Server.
  4. Linux Cron that looks for that file and parses the file and inserts the into the DB.

D

Expand  

@WhirlwindLet me know how to get in touch - there is an easier way...

Edited by howiekrauth

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Want to join this community?

    We'd love to have you!

    Sign Up
  • TST Partners

    PlayBetter
    TourStriker
    Golfer's Journal
    ShotScope
    The Stack System
    FitForGolf
    FlightScope Mevo
    Direct: Mevo, Mevo+, and Pro Package.

    Coupon Codes (save 10-20%): "IACAS" for Mevo/Stack/FitForGolf, "IACASPLUS" for Mevo+/Pro Package, and "THESANDTRAP" for ShotScope. 15% off TourStriker (no code).
  • Posts

    • . I've been Playing Golf for: 10 years, 1 year consistently  My current handicap index or average score is: 100 My typical ball flight is: fade The shot I hate or the "miss" I'm trying to reduce/eliminate is: inconsistent ball strike   I caught the bug about a year ago and have been playing roughly once a week. Have been getting better with my short game and putting but my ball striking from tee and fairway lets me down. Had my first lesson last month which identified an over the top swing compensated by an open club face. Have been trying everything to get on plane over the last month. Have found that using a bend and press into my left leg as the trigger for my downswing coupled with finding the turn and rotation in both my arms to release the club properly has helped my get nearer to the correct plane. Video below is where I am with it currently. Haven’t taken this new swing to the course yet! Any comments or suggestions are welcome  Videos:  I've been Playing Golf for: 1 year properly  My current handicap index or average score is: 100 av score  
    • That's always been the deal. You put in the work hyper focused on ONE or at most two things, so that you don't have to think about anything except a single feel or the target or something on the course.
    • Blind squirrel finds a nut and putted well. no, I decided to play a round being athletic rather than paralyzing myself with swing thoughts. I have no clue if I was doing what I worked on. It was the last day and I was tired of freezing at the top of the swing not know if one of four outcomes were going to happen. 
    • Day 299 - 2025-07-26 I spent 15 minutes practicing but it was almost pointless. It wasn't good practice. I was not really in it, but I put the time in. Oh, I did some chipping work before-hand, and that was good. I could have just left after that. 🙂 
    • Well that's different.
×
×
  • Create New...

Important Information

Welcome to TST! Signing up is free, and you'll see fewer ads and can talk with fellow golf enthusiasts! By using TST, you agree to our Terms of Use, our Privacy Policy, and our Guidelines.

The popup will be closed in 10 seconds...