List images V2
images.v2.list(V2ListParams**kwargs) -> V2ListResponse
GET/accounts/{account_id}/images/v2
List up to 10000 images with up to 1000 results per page. Use the optional parameters below to get a specific range of images. Pagination is supported via continuation_token.
Metadata Filtering (Optional):
You can optionally filter images by custom metadata fields using the meta.<field>[<operator>]=<value> syntax.
Supported Operators:
eq/eq:string/eq:number/eq:boolean- Exact matchin/in:string/in:number- Match any value in list (pipe-separated)
Metadata Filter Constraints:
- Maximum 5 metadata filters per request
- Maximum 5 levels of nesting (e.g.,
meta.first.second.third.fourth.fifth) - Maximum 10 elements for list operators (
in) - Supports string, number, and boolean value types
Examples:
# List all images
/images/v2
# Filter by metadata [eq]
/images/v2?meta.status[eq:string]=active
# Filter by metadata [in]
/images/v2?meta.status[in]=pending|deleted|flagged
# Filter by metadata [in:number]
/images/v2?meta.ratings[in:number]=4|5
# Filter by nested metadata
/images/v2?meta.region.name[eq]=eu-west
# Combine metadata filters with creator
/images/v2?meta.status[eq]=active&creator=user123
# Multiple metadata filters (AND logic)
/images/v2?meta.status[eq]=active&meta.priority[eq:number]=5Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Parameters
List images V2
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
v2s = client.images.v2.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
print(v2s.continuation_token){
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": {
"continuation_token": "continuation_token",
"images": [
{
"id": "id",
"creator": "107b9558-dd06-4bbd-5fef-9c2c16bb7900",
"filename": "logo.png",
"meta": {
"key": "value"
},
"requireSignedURLs": true,
"uploaded": "2014-01-02T02:20:00.123Z",
"variants": [
"https://imagedelivery.net/MTt4OTd0b0w5aj/107b9558-dd06-4bbd-5fef-9c2c16bb7900/thumbnail",
"https://imagedelivery.net/MTt4OTd0b0w5aj/107b9558-dd06-4bbd-5fef-9c2c16bb7900/hero",
"https://imagedelivery.net/MTt4OTd0b0w5aj/107b9558-dd06-4bbd-5fef-9c2c16bb7900/original"
]
}
]
},
"success": true
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": {
"continuation_token": "continuation_token",
"images": [
{
"id": "id",
"creator": "107b9558-dd06-4bbd-5fef-9c2c16bb7900",
"filename": "logo.png",
"meta": {
"key": "value"
},
"requireSignedURLs": true,
"uploaded": "2014-01-02T02:20:00.123Z",
"variants": [
"https://imagedelivery.net/MTt4OTd0b0w5aj/107b9558-dd06-4bbd-5fef-9c2c16bb7900/thumbnail",
"https://imagedelivery.net/MTt4OTd0b0w5aj/107b9558-dd06-4bbd-5fef-9c2c16bb7900/hero",
"https://imagedelivery.net/MTt4OTd0b0w5aj/107b9558-dd06-4bbd-5fef-9c2c16bb7900/original"
]
}
]
},
"success": true
}