Introduction
Welcome to the Golf Rules API. This API provides programmatic access to the official golf rules as defined by the USGA, R&A and DGV. It allows developers to integrate golf rules into their applications, enabling features such as rule lookups, interpretations, and more.
Key Features
Section titled “Key Features”- Limit the number of returned rules and paginate results using
limitandskip. - Group rules by categories using the
groupedparameter (default: true). - Retrieve a specific rule by its
id. - Full-text search in rule titles and texts with
search(coming soon). - Filter rules by category using
category(e.g., “penalties”). - Sort results by fields like
ruleNumber,priority, orupdatedAtusingsortByandsortOrder. - Support multiple languages via the
languageparameter. - Query older rule versions with the
versionparameter. - Include example texts with
includeExamples(default: false). - Include cross-references and links with
includeReferences(default: false).
If you need any other features, please open an issue on our GitHub repository. We are always looking to improve the API and add new features based on user feedback. You can also contribute to the project by submitting pull requests or suggesting improvements.