Workers KV Namespace
Get multiple key-value pairs
Retrieve up to 100 KV pairs from the namespace. Keys must contain text-based values. JSON values can optionally be parsed instead of being returned as a string value. Metadata can be included if withMetadata is true.
post/storage/kv/namespaces/{namespace_id}/bulk/get
Request
- Base URL: /cdn-cgi/local/explorer/api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /cdn-cgi/local/explorer/api/storage/kv/namespaces/{namespace_id}/bulk/get
- Auth: none declared
Path parameters
namespace_idstring required
Namespace identifier tag.
Example:0f2ac74b498b48028cb68387c421e279
Request body
Example request
{
"keys": [
"My-Key"
]
}Response
Get multiple key-value pairs response.
Example response
{
"errors": [],
"messages": [],
"success": true,
"result": {
"values": {
"key1": "value1",
"key2": "value2"
}
}
}Changes
No recorded changes to this operation across all 27 revisions of this API.