Jump to content
Check out 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 7:08 AM, 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...

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 8:08 AM, 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...

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 10:08 AM, 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...

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/27/2022 at 10:37 PM, 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.

 


  • 4 weeks later...
Posted
On 5/1/2025 at 1: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.

 

@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 9:41 AM, scott61 said:

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

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

On 2/18/2025 at 5: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.

@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/15/2024 at 11:30 PM, 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.

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

On 8/13/2024 at 10:57 AM, 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

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

Edited by howiekrauth

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Want to join this community?

    We'd love to have you!

    Sign Up
  • TST Partners

    PlayBetter
    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

    • Day 1: 2025.12.26 Worked on LH position on grip, trying to keep fingers closer to perpendicular to the club. Feels awkward but change is meant to.
    • Please see this topic for updated information:
    • Please see this topic for updated information:
    • When you've been teaching golf as long as I have, you're going to find that you can teach some things better than you previously had, and you're probably going to find some things that you taught incorrectly. I don't see that as a bad thing — what would be worse is refusing to adapt and grow given new information. I've always said that my goal with my instruction isn't to be right, but it's to get things right. To that end, I'm about five years late in issuing a public proclamation on something… When I first got my GEARS system, I immediately looked at the golf swings of the dozens and dozens of Tour players for which I suddenly had full 3D data. I created a huge spreadsheet showing how their bodies moved, how the club moved, at various points in the swing. I mapped knee and elbow angles, hand speeds, shoulder turns and pelvis turns… etc. I re-considered what I thought I knew about the golf swing as performed by the best players. One of those things dated back to the earliest days: that you extend (I never taught "straighten" and would avoid using that word unless in the context of saying "don't fully straighten") the trail knee/leg in the backswing. I was mislead by 2D photos from less-than-ideal camera angles — the trail leg rotates a bit during the backswing, and so when observing trail knee flex should also use a camera that moves to stay perpendicular to the plane of the ankle/knee/hip joint. We have at least two topics here on this (here and here; both of which I'll be updating after publishing this) where @mvmac and I advise golfers to extend the trail knee. Learning that this was not right is one of the reasons I'm glad to have a 3D system, as most golfers generally preserve the trail knee flex throughout the backswing. Data Here's a video showing an iron and a driver of someone who has won the career slam: Here's what the graph of his right knee flex looks like. The solid lines I've positioned at the top of the backswing (GEARS aligns both swings at impact, the dashed line). Address is to the right, of course, and the graph shows knee flex from the two swings above. The data (17.56° and 23.20°) shows where this player is in both swings (orange being the yellow iron swing, pink the blue driver swing). You can see that this golfer extends his trail knee 2-3°… before bending it even more than that through the late backswing and early downswing. Months ago I created a quick Instagram video showing the trail knee flex in the backswing of several players (see the top for the larger number): Erik J. Barzeski (@iacas) • Instagram reel GEARS shares expert advice on golf swing technique, focusing on the critical backswing phase. Tour winners and major champions reveal the key to a precise and powerful swing, highlighting the importance of... Here are a few more graphs. Two LIV players and major champions: Two PGA Tour winners: Two women's #1 ranked players: Two more PGA Tour winners (one a major champ): Two former #1s, the left one being a woman, the right a man, with a driver: Two more PGA Tour players: You'll notice a trend: they almost all maintain roughly the same flex throughout their backswing and downswing. The Issues with Extending the Trail Knee You can play good golf extending (again, not "straightening") the trail knee. Some Tour players do. But, as with many things, if 95 out of 100 Tour players do it, you're most likely better off doing similarly to what they do. So, what are the issues with extending the trail knee in the backswing? To list a few: Pelvic Depth and Rotation Quality Suffers When the trail knee extends, the trail leg often acts like an axle on the backswing, with the pelvis rotating around the leg and the trail hip joint. This prevents the trail side from gaining depth, as is needed to keep the pelvis center from thrusting toward the ball. Most of the "early extension" (thrust) that I see occurs during the backswing. Encourages Early Extension (Thrust) Patterns When you've thrust and turned around the trail hip joint in the backswing, you often thrust a bit more in the downswing as the direction your pelvis is oriented is forward and "out" (to the right for a righty). Your trail leg can abduct to push you forward, but "forward" when your pelvis is turned like that is in the "thrust" direction. Additionally, the trail knee "breaking" again at the start of the downswing often jumps the trail hip out toward the ball a bit too much or too quickly. While the trail hip does move in that direction, if it's too fast or too much, it can prevent the lead side hip from getting "back" at the right rate, or at a rate commensurate with the trail hip to keep the pelvis center from thrusting. Disrupts the Pressure Shift/Transition When the trail leg extends too much, it often can't "push" forward normally. The forward push begins much earlier than forward motion begins — pushing forward begins as early as about P1.5 to P2 in the swings of most good golfers. It can push forward by abducting, again, but that's a weaker movement that shoves the pelvis forward (toward the target) and turns it more than it generally should (see the next point). Limits Internal Rotation of the Trail Hip Internal rotation of the trail hip is a sort of "limiter" on the backswing. I have seen many golfers on GEARS whose trail knee extends, whose pelvis shifts forward (toward the target), and who turn over 50°, 60°, and rarely but not never, over 70° in the backswing. If you turn 60° in the backswing, it's going to be almost impossible to get "open enough" in the downswing to arrive at a good impact position. Swaying/Lateral Motion Occasionally a golfer who extends the trail knee too much will shift back too far, but more often the issue is that the golfer will shift forward too early in the backswing (sometimes even immediately to begin the backswing), leaving them "stuck forward" to begin the downswing. They'll push forward, stop, and have to restart around P4, disrupting the smooth sequence often seen in the game's best players. Other Bits… Reduces ground reaction force potential, compromises spine inclination and posture, makes transition sequencing harder, increases stress on the trail knee and lower back… In short… It's not athletic. We don't do many athletic things with "straight" or very extended legs (unless it's the end of the action, like a jump or a big push off like a step in a running motion).
    • Day 135 12-25 Wide backswing to wide downswing drill. Recorder and used mirror. 
×
×
  • 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.