Blob ファイル詳細の取得
GET /v1/objects/info で 1 つのファイルの詳細を読み取ります: サイズ、コンテンツタイプ、有効期限、公開範囲、キャッシュ、元の名前、メタデータ。
GET
/
v1
/
objects
/
info
curl --request GET \
--url 'https://blob.squarecloud.app/v1/objects/info?object=pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png' \
--header 'Authorization: YOUR_API_KEY'
{
"status": "success",
"response": {
"id": "pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png",
"size": 416230,
"content_type": "image/png",
"etag": "\"9bb58f26192e4ba00f01e2e7b136bbd8\"",
"created_at": "2026-09-25T12:00:00.000Z",
"expires_at": null,
"private": false,
"url": "https://blob.squarecloud.dev/pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png",
"cache_control": "public, max-age=31536000, immutable",
"content_disposition": null,
"original_name": "logo.png",
"metadata": { "campaign": "spring" }
}
}
アカウントの API キーです。これはアカウント設定で確認できます。
blob:read スコープが必要です。
パラメーター
レート制限
1 分間に 60 リクエスト (
RATE_LIMITED、429)。レスポンス
表示 プロパティ
表示 プロパティ
curl --request GET \
--url 'https://blob.squarecloud.app/v1/objects/info?object=pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png' \
--header 'Authorization: YOUR_API_KEY'
{
"status": "success",
"response": {
"id": "pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png",
"size": 416230,
"content_type": "image/png",
"etag": "\"9bb58f26192e4ba00f01e2e7b136bbd8\"",
"created_at": "2026-09-25T12:00:00.000Z",
"expires_at": null,
"private": false,
"url": "https://blob.squarecloud.dev/pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png",
"cache_control": "public, max-age=31536000, immutable",
"content_disposition": null,
"original_name": "logo.png",
"metadata": { "campaign": "spring" }
}
}
エラー
| コード | HTTP | 発生する状況 |
|---|---|---|
INVALID_OBJECT | 400 | object がない、形式が正しくない、またはあなたのものではない。 |
OBJECT_NOT_FOUND | 404 | ファイルが存在しない。 |
RATE_LIMITED | 429 | 1 分間に 60 リクエストを超えた。 |
関連項目
- Blob SDK:
blob.info()
⌘I
curl --request GET \
--url 'https://blob.squarecloud.app/v1/objects/info?object=pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png' \
--header 'Authorization: YOUR_API_KEY'
{
"status": "success",
"response": {
"id": "pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png",
"size": 416230,
"content_type": "image/png",
"etag": "\"9bb58f26192e4ba00f01e2e7b136bbd8\"",
"created_at": "2026-09-25T12:00:00.000Z",
"expires_at": null,
"private": false,
"url": "https://blob.squarecloud.dev/pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png",
"cache_control": "public, max-age=31536000, immutable",
"content_disposition": null,
"original_name": "logo.png",
"metadata": { "campaign": "spring" }
}
}

