other

Get crates.io metadata.

Returns the current deployed commit SHA1 (or unknown), and whether the system is in read-only mode.

get/api/v1/site_metadata

Request

  • Base URL: https://crates.io
  • URL: https://crates.io/api/v1/site_metadata
  • Auth: none declared

Response

Successful Response

banner_messagestring

Optional banner message to display on all pages.

cdn_basestring required

CDN base URL that e.g. crate files are served from.

commitstring required

The SHA1 of the currently deployed commit.

deployed_shastring required

The SHA1 of the currently deployed commit.

read_onlyboolean required

Whether the crates.io service is in read-only mode.

Example response

{
  "cdn_base": "https://static.crates.io",
  "commit": "0aebe2cdfacae1229b93853b1c58f9352195f081",
  "deployed_sha": "0aebe2cdfacae1229b93853b1c58f9352195f081"
}

Changes

No recorded changes to this operation across all 1 revision of this API.