APIHub
Back to Explore

Statically

Statically offers a free CDN that serves optimized files directly from source repositories such as GitHub, GitLab, Bitbucket, GitHub Gists, and npm packages, letting users fetch specific files or versions by specifying the repository, tag/commit, and file path.

Development
none
HTTPS
CORS: Yes
Description enriched
Visit official documentation

Latency

114ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/gh/{user}/{repo}@{tag}/{file}

Serve optimized files from a GitHub repository via the CDN.

  • user (path, required) — GitHub username or organization.
  • repo (path, required) — Repository name.
  • tag (path, required) — Tag, branch, or commit SHA to fetch.
  • file (path, required) — Path to the file within the repository.
GET

/gl/{user}/{repo}@{tag}/{file}

Serve optimized files from a GitLab repository via the CDN.

  • user (path, required) — GitLab username or group.
  • repo (path, required) — Repository name.
  • tag (path, required) — Tag, branch, or commit SHA to fetch.
  • file (path, required) — Path to the file within the repository.
GET

/bb/{user}/{repo}@{tag}/{file}

Serve optimized files from a Bitbucket repository via the CDN.

  • user (path, required) — Bitbucket username or team.
  • repo (path, required) — Repository name.
  • tag (path, required) — Tag, branch, or commit SHA to fetch.
  • file (path, required) — Path to the file within the repository.
GET

/gist/{user}/{gist_id}/raw/{commit}/{file}

Serve raw files from a GitHub Gist via the CDN.

  • user (path, required) — GitHub username who owns the gist.
  • gist_id (path, required) — Unique identifier of the gist.
  • commit (path, required) — Commit SHA of the gist version.
  • file (path, required) — Filename within the gist.
GET

/npm/{package}

Fetch the default file of an npm package via the CDN.

  • package (path, required) — Name of the npm package.
GET

/npm/{package}@{version}/{file}

Fetch a specific file from a particular version of an npm package via the CDN.

  • package (path, required) — Name of the npm package.
  • version (path, required) — Version tag of the package (e.g., 1.2.3).
  • file (path, required) — Path to the file within the package.

6 endpoints auto-detected

curl -X GET \
  "https://statically.io//gh/{user}/{repo}@{tag}/{file}"

statically.io · HTTPS only