SpyREST

Supported by Mashape

Home » api.github.com Versions » v3 Resources » gists » GET /gists/public

GET /gists/public

Description

Response Fields

Name Type Description
Array
[].url String
[].forks_url String
[].commits_url String
[].id String
[].git_pull_url String
[].git_push_url String
[].html_url String
[].files.config.json.filename String
[].files.config.json.type String
[].files.config.json.language String
[].files.config.json.raw_url String
[].files.config.json.size Integer
[].public Boolean
[].created_at String (Time ISO8601)
[].updated_at String (Time ISO8601)
[].description String
[].comments Integer
[].user
[].comments_url String
Write
Preview

Examples

List all public gists

List all public gists

Recorded at

2015-05-14 18:20:51 UTC

Try with cURL

Request URL

GET /gists/public      

Request Headers

content-type: application/json
accept: application/vnd.github.v3+json
user-agent: curl/7.37.1
      

Response Headers

transfer-encoding: chunked
x-served-by: 4c8b2d4732c413f4b9aefe394bd65569
x-content-type-options: nosniff
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-github-request-id: 68EC8CA8:2CC2:3AAF279:5554E783
access-control-allow-origin: *
access-control-expose-headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
access-control-allow-credentials: true
content-security-policy: default-src 'none'
x-frame-options: deny
x-xss-protection: 1; mode=block
link: <https://api.github.com/gists/public?page=2>; rel="next", <https://api.github.com/gists/public?page=100>; rel="last"
x-github-media-type: github.v3; format=json
vary: Accept
etag: "5205736eb14cbfe795202263e9402d19"
cache-control: public, max-age=60, s-maxage=60
x-ratelimit-reset: 1431630826
x-ratelimit-remaining: 53
x-ratelimit-limit: 60
status: 200 OK
connection: close
content-length: 50280
content-type: application/json; charset=utf-8
date: Thu, 14 May 2015 18:20:51 GMT
server: GitHub.com
      

Response Body

Shortened for readability

[
  {
    "url": "https://api.github.com/gists/4c7ab971a80297b60e2a",
    "forks_url": "https://api.github.com/gists/4c7ab971a80297b60e2a/forks",
    "commits_url": "https://api.github.com/gists/4c7ab971a80297b60e2a/commits",
    "id": "4c7ab971a80297b60e2a",
    "git_pull_url": "https://gist.github.com/4c7ab971a80297b60e2a.git",
    "git_push_url": "https://gist.github.com/4c7ab971a80297b60e2a.git",
    "html_url": "https://gist.github.com/4c7ab971a80297b60e2a",
    "files": {
      "config.json": {
        "filename": "config.json",
        "type": "application/json",
        "language": "JSON",
        "raw_url": "https://gist.githubusercontent.com/anonymous/4c7ab971a80297b60e2a/raw/c36414f694848be0af5a8eff0660bf0494b8cf71/config.json",
        "size": 17911
      }
    },
    "public": true,
    "created_at": "2015-05-14T18:20:51Z",
    "updated_at": "2015-05-14T18:20:51Z",
    "description": "Bootstrap Customizer Config",
    "comments": 0,
    "user": null,
    "comments_url": "https://api.github.com/gists/4c7ab971a80297b60e2a/comments"
  },
  {
    "url": "https://api.github.com/gists/d784b95ad71ea0a303b0",
    "forks_url": "https://api.github.com/gists/d784b95ad71ea0a303b0/forks",
    "commits_url": "https://api.github.com/gists/d784b95ad71ea0a303b0/commits",
    "id": "d784b95ad71ea0a303b0",
    "git_pull_url": "https://gist.github.com/d784b95ad71ea0a303b0.git",
    "git_push_url": "https://gist.github.com/d784b95ad71ea0a303b0.git",
    "html_url": "https://gist.github.com/d784b95ad71ea0a303b0",
    "files": {
      "untrusted-lvl20-solution.js": {
        "filename": "untrusted-lvl20-solution.js",
        "type": "application/javascript",
        "language": "JavaScript",
        "raw_url": "https://gist.githubusercontent.com/anonymous/d784b95ad71ea0a303b0/raw/786be4d862d8f0d5d3443344c1048ba8773116bf/untrusted-lvl20-solution.js",
        "size": 4383
      }
    },
    "public": true,
    "created_at": "2015-05-14T18:20:40Z",
    "updated_at": "2015-05-14T18:20:40Z",
    "description": "Solution to level 20 in Untrusted: http://alex.nisnevich.com/untrusted/",
    "comments": 0,
    "user": null,
    "comments_url": "https://api.github.com/gists/d784b95ad71ea0a303b0/comments"
  }
]