Cloud Storage JSON API
googleapis · Analytics
Stores and retrieves potentially large, immutable data objects.
Authentication
Sample Requests
Retrieves a list of buckets for a given project.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b?alt=json&key=YOUR_API_KEY&fields=example&prefix=example&userIp=example&project=example&pageToken=example"aUser=example&maxResults=1&projection=full&uploadType=example&oauth_token=example&prettyPrint=true&userProject=example"
import requests
params = {
"alt": "json",
"key": "YOUR_API_KEY",
"fields": "example",
"prefix": "example",
"userIp": "example",
"project": "example",
"pageToken": "example",
"quotaUser": "example",
"maxResults": "1",
"projection": "full",
"uploadType": "example",
"oauth_token": "example",
"prettyPrint": "true",
"userProject": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b');
url.searchParams.set('alt', 'json');
url.searchParams.set('key', 'YOUR_API_KEY');
url.searchParams.set('fields', 'example');
url.searchParams.set('prefix', 'example');
url.searchParams.set('userIp', 'example');
url.searchParams.set('project', 'example');
url.searchParams.set('pageToken', 'example');
url.searchParams.set('quotaUser', 'example');
url.searchParams.set('maxResults', '1');
url.searchParams.set('projection', 'full');
url.searchParams.set('uploadType', 'example');
url.searchParams.set('oauth_token', 'example');
url.searchParams.set('prettyPrint', 'true');
url.searchParams.set('userProject', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b")
q := baseURL.Query()
q.Set("alt", "json")
q.Set("key", "YOUR_API_KEY")
q.Set("fields", "example")
q.Set("prefix", "example")
q.Set("userIp", "example")
q.Set("project", "example")
q.Set("pageToken", "example")
q.Set("quotaUser", "example")
q.Set("maxResults", "1")
q.Set("projection", "full")
q.Set("uploadType", "example")
q.Set("oauth_token", "example")
q.Set("prettyPrint", "true")
q.Set("userProject", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b")
uri.query = URI.encode_www_form({
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"prefix" => "example",
"userIp" => "example",
"project" => "example",
"pageToken" => "example",
"quotaUser" => "example",
"maxResults" => "1",
"projection" => "full",
"uploadType" => "example",
"oauth_token" => "example",
"prettyPrint" => "true",
"userProject" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b?" . http_build_query([
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"prefix" => "example",
"userIp" => "example",
"project" => "example",
"pageToken" => "example",
"quotaUser" => "example",
"maxResults" => "1",
"projection" => "full",
"uploadType" => "example",
"oauth_token" => "example",
"prettyPrint" => "true",
"userProject" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns metadata for the specified bucket.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}?alt=json&key=YOUR_API_KEY&fields=example&userIp=example"aUser=example&projection=full&uploadType=example&oauth_token=example&prettyPrint=true&userProject=example&ifMetagenerationMatch=example&ifMetagenerationNotMatch=example"import requests
params = {
"alt": "json",
"key": "YOUR_API_KEY",
"fields": "example",
"userIp": "example",
"quotaUser": "example",
"projection": "full",
"uploadType": "example",
"oauth_token": "example",
"prettyPrint": "true",
"userProject": "example",
"ifMetagenerationMatch": "example",
"ifMetagenerationNotMatch": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}');
url.searchParams.set('alt', 'json');
url.searchParams.set('key', 'YOUR_API_KEY');
url.searchParams.set('fields', 'example');
url.searchParams.set('userIp', 'example');
url.searchParams.set('quotaUser', 'example');
url.searchParams.set('projection', 'full');
url.searchParams.set('uploadType', 'example');
url.searchParams.set('oauth_token', 'example');
url.searchParams.set('prettyPrint', 'true');
url.searchParams.set('userProject', 'example');
url.searchParams.set('ifMetagenerationMatch', 'example');
url.searchParams.set('ifMetagenerationNotMatch', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}")
q := baseURL.Query()
q.Set("alt", "json")
q.Set("key", "YOUR_API_KEY")
q.Set("fields", "example")
q.Set("userIp", "example")
q.Set("quotaUser", "example")
q.Set("projection", "full")
q.Set("uploadType", "example")
q.Set("oauth_token", "example")
q.Set("prettyPrint", "true")
q.Set("userProject", "example")
q.Set("ifMetagenerationMatch", "example")
q.Set("ifMetagenerationNotMatch", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}")
uri.query = URI.encode_www_form({
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"userIp" => "example",
"quotaUser" => "example",
"projection" => "full",
"uploadType" => "example",
"oauth_token" => "example",
"prettyPrint" => "true",
"userProject" => "example",
"ifMetagenerationMatch" => "example",
"ifMetagenerationNotMatch" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}?" . http_build_query([
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"userIp" => "example",
"quotaUser" => "example",
"projection" => "full",
"uploadType" => "example",
"oauth_token" => "example",
"prettyPrint" => "true",
"userProject" => "example",
"ifMetagenerationMatch" => "example",
"ifMetagenerationNotMatch" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Retrieves ACL entries on the specified bucket.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}/acl?alt=json&key=YOUR_API_KEY&fields=example&userIp=example"aUser=example&uploadType=example&oauth_token=example&prettyPrint=true&userProject=example"import requests
params = {
"alt": "json",
"key": "YOUR_API_KEY",
"fields": "example",
"userIp": "example",
"quotaUser": "example",
"uploadType": "example",
"oauth_token": "example",
"prettyPrint": "true",
"userProject": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}/acl",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}/acl');
url.searchParams.set('alt', 'json');
url.searchParams.set('key', 'YOUR_API_KEY');
url.searchParams.set('fields', 'example');
url.searchParams.set('userIp', 'example');
url.searchParams.set('quotaUser', 'example');
url.searchParams.set('uploadType', 'example');
url.searchParams.set('oauth_token', 'example');
url.searchParams.set('prettyPrint', 'true');
url.searchParams.set('userProject', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}/acl")
q := baseURL.Query()
q.Set("alt", "json")
q.Set("key", "YOUR_API_KEY")
q.Set("fields", "example")
q.Set("userIp", "example")
q.Set("quotaUser", "example")
q.Set("uploadType", "example")
q.Set("oauth_token", "example")
q.Set("prettyPrint", "true")
q.Set("userProject", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}/acl")
uri.query = URI.encode_www_form({
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"userIp" => "example",
"quotaUser" => "example",
"uploadType" => "example",
"oauth_token" => "example",
"prettyPrint" => "true",
"userProject" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/googleapis.com/storage/v1/b/{bucket}/acl?" . http_build_query([
"alt" => "json",
"key" => "YOUR_API_KEY",
"fields" => "example",
"userIp" => "example",
"quotaUser" => "example",
"uploadType" => "example",
"oauth_token" => "example",
"prettyPrint" => "true",
"userProject" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Cloud Storage JSON API?
Cloud Storage JSON API is a Analytics API. Developers commonly use analytics APIs for:
- tracking product usage and user behaviour
- building custom reporting and BI dashboards
- measuring marketing and campaign performance
- running funnel, retention, and cohort analysis
- aggregating metrics from multiple data sources
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Cloud Storage JSON API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide