CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 20 Aug 2025 20:37:37 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20140102124043
location: https://web.archive.org/web/20140102124043/https://developer.github.com/v3/git/tags/
server-timing: captures_list;dur=0.674238, exclusion.robots;dur=0.025082, exclusion.robots.policy;dur=0.010585, esindex;dur=0.013961, cdx.remote;dur=100.116843, LoadShardBlock;dur=201.102074, PetaboxLoader3.resolve;dur=79.590937, PetaboxLoader3.datanode;dur=66.816829
x-app-server: wwwb-app213
x-ts: 302
x-tr: 331
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app213; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 20 Aug 2025 20:37:37 GMT
content-type: text/html
x-archive-orig-server: GitHub.com
x-archive-orig-last-modified: Wed, 01 Jan 2014 14:37:45 GMT
x-archive-orig-expires: Thu, 02 Jan 2014 12:50:43 GMT
x-archive-orig-cache-control: max-age=600
x-archive-orig-content-length: 17641
x-archive-orig-accept-ranges: bytes
x-archive-orig-date: Thu, 02 Jan 2014 12:40:43 GMT
x-archive-orig-via: 1.1 varnish
x-archive-orig-age: 0
x-archive-orig-connection: close
x-archive-orig-x-served-by: cache-jfk1028-JFK
x-archive-orig-x-cache: MISS
x-archive-orig-x-cache-hits: 0
x-archive-orig-x-timer: S1388666443.551376581,VS0,VE8
x-archive-orig-vary: Accept-Encoding
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 02 Jan 2014 12:40:43 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 23 Jun 2011 02:03:39 GMT", ; rel="prev memento"; datetime="Sun, 24 Nov 2013 10:51:10 GMT", ; rel="memento"; datetime="Thu, 02 Jan 2014 12:40:43 GMT", ; rel="next memento"; datetime="Mon, 03 Feb 2014 02:18:57 GMT", ; rel="last memento"; datetime="Sat, 20 Jul 2024 04:36:35 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: alexa20140103-09/52_37_20140102124035_crawl101.arc.gz
server-timing: captures_list;dur=4.769340, exclusion.robots;dur=0.024527, exclusion.robots.policy;dur=0.009948, esindex;dur=0.014687, cdx.remote;dur=51.876243, LoadShardBlock;dur=102.824599, PetaboxLoader3.datanode;dur=116.935426, load_resource;dur=107.862201, PetaboxLoader3.resolve;dur=59.683228
x-app-server: wwwb-app213
x-ts: 200
x-tr: 346
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Git Tags | GitHub API
Tags
This tags API only deals with tag objects - so only annotated tags, not lightweight tags.
Get a Tag
GET /repos/:owner/:repo/git/tags/:sha
Response
Status: 200 OK
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"tag": "v0.0.1",
"sha": "940bd336248efae0f9ee5bc7b2d5c985887b16ac",
"url": "https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac",
"message": "initial version\n",
"tagger": {
"name": "Scott Chacon",
"email": "schacon@gmail.com",
"date": "2011-06-17T14:53:35-07:00"
},
"object": {
"type": "commit",
"sha": "c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c",
"url": "https://api.github.com/repos/octocat/Hello-World/git/commits/c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c"
}
}
Create a Tag Object
Note that creating a tag object does not create the reference that
makes a tag in Git. If you want to create an annotated tag in Git,
you have to do this call to create the tag object, and then
create the refs/tags/[tag]
reference.
If you want to create a lightweight tag, you only have to
create the tag reference - this call
would be unnecessary.
POST /repos/:owner/:repo/git/tags
Parameters
Name | Type | Description |
---|---|---|
tag |
string |
The tag |
message |
string |
The tag message |
object |
string |
The SHA of the git object this is tagging |
type |
string |
The type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob . |
tagger |
hash |
A hash with information about the individual creating the tag. |
The tagger
hash contains the following keys:
Name | Type | Description |
---|---|---|
name |
string |
The name of the author of the tag |
email |
string |
The email of the author of the tag |
date |
string |
When this object was tagged. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ . |
Example Input
{
"tag": "v0.0.1",
"message": "initial version\n",
"object": "c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c",
"type": "commit",
"tagger": {
"name": "Scott Chacon",
"email": "schacon@gmail.com",
"date": "2011-06-17T14:53:35-07:00"
}
}
Response
Status: 201 Created
Location: https://api.github.com/repos/:owner/:repo/git/tags/:sha
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"tag": "v0.0.1",
"sha": "940bd336248efae0f9ee5bc7b2d5c985887b16ac",
"url": "https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac",
"message": "initial version\n",
"tagger": {
"name": "Scott Chacon",
"email": "schacon@gmail.com",
"date": "2011-06-17T14:53:35-07:00"
},
"object": {
"type": "commit",
"sha": "c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c",
"url": "https://api.github.com/repos/octocat/Hello-World/git/commits/c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c"
}
}
This website is a public GitHub repository. Please help us by forking the project and adding to it.