6

The normal GET /repos/:owner/:repo/contents/:path doesn't contain any information about date.

nichijou
  • 484
  • 4
  • 12
  • 1
    Possible 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 Answers1

1

Edit:

  1. 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.

  1. check this path - https://api.github.com/repos/:owner/:repo/commits

inside you can see both commit date and the files of the commit

enter image description here

Tal Folkman
  • 2,368
  • 1
  • 7
  • 21