The REST API is now versioned. For more information, see "About API versioning."
REST API endpoints for rate limits
Use the REST API to check your current rate limit status.
Use the REST API to check your current rate limit status.
REST API endpoints for rate limits - GitHub Docs