The License Usage API provides access to tool license usage information. The API endpoints use access logs stored in DTP. By default, logs are stored for the last 90 days. See Configuring License Server for information about changing how long logs are stored.
You can right-click on an endpoint to copy the URL and use it in a script. You can also query the endpoint in your browser to quickly view the data. For example: