GDTF Share API Documentation
Introduction
GDTF Share provides a REST API that lets an application authenticate, view fixture revisions, and download revisions without accessing the GDTF Share website through a web browser.
Changes to the documentation
Since the GDTF Share API description was originally released, this documentation has been updated as follows:
- Improved wording, spelling, and examples
- Clarified recommended API usage
- Added general usage and attribution requirements
Use cases
This API is intended for developers who want to integrate GDTF Share functionality into their applications. Common use cases include:
- Applications that provide GDTF Share functionality without embedding a full web browser.
- Custom interfaces for logging in, listing revisions, or downloading files in consoles and other applications.
- Integration of the GDTF database into fixture type patching workflows.
Usage of the API
File server
We recommend that developers use the GDTF Share API to synchronize GDTF files with a server they operate, then serve those files to their application through their own API. The server authenticates with GDTF Share and handles synchronization, so end users do not need to log in to GDTF Share individually. This approach can reduce traffic to GDTF Share, limit the information it receives about end users’ IP addresses, geolocation, and usage, and reduce the application’s dependence on GDTF Share availability. Applications may also connect directly to GDTF Share; in that case, each user must authenticate with their own GDTF Share account.
Caching
Temporary caching of GDTF files is permitted. Keep cached files up to date: the cache must not be more than 24 hours old. To help avoid overloading GDTF Share infrastructure, we recommend refreshing the cache approximately every 120 minutes.
Listing and Search
When listing GDTF files, you must use the uploader field returned by the Get List function to identify and clearly label each file. This allows users to distinguish files provided by manufacturers from files created by users.
When providing search across GDTF files, you must search both the Name and LongName fields. Searching LongName as well as Name helps users find files whose names contain special characters.
Attribution
When using GDTF files in your application, you must provide attribution. Include the credit “Powered by GDTF” in the product user manual, digital About screen, or accompanying technical documentation, and display the GDTF logo alongside the credit:
Powered by GDTF
Reporting GDTF Share API Issues
To report an issue with the GDTF Share API, use the contact form and select “Problems or Issues.”
API functions
- Login: Authenticate with a GDTF Share username and password.
- Get List: Retrieve a list of revisions.
- Download: Download a file by its revision ID.
Each function is described in the Functions section.
Requirements
GDTF Share User Account
A GDTF Share account is required for each client that authenticates directly with the API. If your application connects directly, each user must use their own account. If your application gets files from your sync server, only the server needs to authenticate with GDTF Share; end users do not need individual GDTF Share accounts. Users who need an account can sign up for a free GDTF Share account.
Software
To use the API, you need an HTTP client, such as curl, available on many
operating systems and platforms. For an introduction to web APIs, see the
MDN Web API documentation.