The normal GET /repos/:owner/:repo/contents/:path
doesn't contain any information about date.
Asked
Active
Viewed 3,411 times
6

nichijou
- 484
- 4
- 12
-
1Possible duplicate of [Get when the file was last updated from a Github repository](https://stackoverflow.com/questions/50194241/get-when-the-file-was-last-updated-from-a-github-repository) – Bertrand Martel Jun 29 '18 at 20:52
1 Answers
1
Edit:
- In order to find the date of specific file look here - https://api.github.com/repos/:owner/:repo/commits?path=PATH_TO_FILE
you can see here the date of the commit which is the date when the file uploaded to git.
- check this path - https://api.github.com/repos/:owner/:repo/commits
inside you can see both commit date and the files of the commit

Tal Folkman
- 2,368
- 1
- 7
- 21
-
correct me if I was wrong, but I can't see any files of each commit. OFC your could further request a specific commit. but hard to know which commit involves a specific file. Unless brute force. – nichijou Jan 19 '22 at 10:45
-
-