How to Retrieve The Oldest Commit of a GitHub User

1 · Amit Merchant · Dec. 6, 2021, 1:01 p.m.
While building Your First Commit Ever, I needed to retrieve the oldest commit of a GitHub user. After some Googling, I found a GitHub API endpoint that can be used to accomplish this. The API Endpoint Using The Endpoint The API Endpoint Essentially, there’s an endpoint to search commits for a specific user. GET /search/commits This endpoint along with a few filters through the query parameters would return a response consisting of the oldest 30 commits. Here’s how the endpoint would look lik...