Storage Items
List storage items
List all storage items (cookies, local storage and session storage) for the current account.
GET
/
storage-items
List storage items
curl --request GET \
--url https://cookiechimp.com/api/v1/storage-items \
--header 'Authorization: Bearer <token>'import requests
url = "https://cookiechimp.com/api/v1/storage-items"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cookiechimp.com/api/v1/storage-items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cookiechimp.com/api/v1/storage-items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cookiechimp.com/api/v1/storage-items"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cookiechimp.com/api/v1/storage-items")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cookiechimp.com/api/v1/storage-items")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pagination": {
"prev_url": "/api/v1/storage-items?page=",
"next_url": "/api/v1/storage-items?page=2",
"count": 68,
"page": 1,
"prev": null,
"next": 2
},
"data": [
{
"id": "sto123",
"name": "_ga",
"storage_type": "cookie",
"category": {
"id": "cat1",
"name": "Analytics"
},
"service": {
"id": "svc1",
"name": "Google Analytics"
},
"description": "Used to distinguish users.",
"company_name": "Google",
"duration": "2 years",
"domain": ".example.com",
"partitioned": false,
"path": "/",
"samesite": "lax",
"wildcard_id": null,
"default_language": "en",
"last_seen_at": "2023-03-23T12:34:56Z",
"created_by": "scan",
"created_at": "2023-03-01T09:00:00Z",
"updated_at": "2023-03-23T12:34:56Z"
}
]
}{
"errors": [
{
"code": 400,
"message": "Invalid page parameter"
}
]
}{
"errors": [
{
"code": 401,
"message": "API key must belong to an account"
}
]
}{
"errors": [
{
"code": 429,
"message": "Too many requests. Please retry later."
}
]
}Authorizations
API token obtained from the login endpoint or the dashboard
Query Parameters
Number of records to return per page. The effective range is 1–50; any value outside it is accepted but falls back to the default of 20.
Page number. Must be a positive integer; anything else returns a 400.
Requesting a page past the end returns the last page.
Required range:
x >= 1Was this page helpful?
⌘I
List storage items
curl --request GET \
--url https://cookiechimp.com/api/v1/storage-items \
--header 'Authorization: Bearer <token>'import requests
url = "https://cookiechimp.com/api/v1/storage-items"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cookiechimp.com/api/v1/storage-items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cookiechimp.com/api/v1/storage-items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cookiechimp.com/api/v1/storage-items"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cookiechimp.com/api/v1/storage-items")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cookiechimp.com/api/v1/storage-items")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pagination": {
"prev_url": "/api/v1/storage-items?page=",
"next_url": "/api/v1/storage-items?page=2",
"count": 68,
"page": 1,
"prev": null,
"next": 2
},
"data": [
{
"id": "sto123",
"name": "_ga",
"storage_type": "cookie",
"category": {
"id": "cat1",
"name": "Analytics"
},
"service": {
"id": "svc1",
"name": "Google Analytics"
},
"description": "Used to distinguish users.",
"company_name": "Google",
"duration": "2 years",
"domain": ".example.com",
"partitioned": false,
"path": "/",
"samesite": "lax",
"wildcard_id": null,
"default_language": "en",
"last_seen_at": "2023-03-23T12:34:56Z",
"created_by": "scan",
"created_at": "2023-03-01T09:00:00Z",
"updated_at": "2023-03-23T12:34:56Z"
}
]
}{
"errors": [
{
"code": 400,
"message": "Invalid page parameter"
}
]
}{
"errors": [
{
"code": 401,
"message": "API key must belong to an account"
}
]
}{
"errors": [
{
"code": 429,
"message": "Too many requests. Please retry later."
}
]
}