get https://{app}.{filespin}.{io}/api/v1/assets//content/original/duplicates/
Retrieve duplicates of an asset original file by checking for the Asset file's MD5 checksum.
This API will identify duplicates even if the original file name of assets are different.
RESPONSE JSON
Example response
{
"id": "99d819953914402babbdeb68337ea6a3",
"name": "example.jpg",
"size": 8836363,
"content_type": "image/jpeg",
"checksum": "5f5f26bd7c0f62c6e02e44c73d09734e",
"total_files": 2,
"total_pages": 1,
"page": 1,
"duplicates": [
"425f6a2a266d45d58d067f7c39a2e4bd",
"a563da2a266d45d58d067b8c39a3d5ad"
]
}
Key | Value | Description |
---|---|---|
id | string | File's unique ID, 32 character alphanumeric UUID |
name | string | File name |
size | integer | Size of file in bytes |
checksum | string | MD5 checksum |
content_type | string | MIME type |
duplicates | JSON | List of file ids whose MD5 checksum is the same as the asset id. Defaults to 30 duplicates per page. The actual count returned may vary depending on asset activity at the time the API is called. |
total_files | integer | Number of duplicate files found |
total_pages | integer | Number of pages in result. |
page | integer | Current page of the result. Defaults to 1. |