Get asset
curl --request GET \
--url https://api.lightdrift.ai/v1/asset/{asset_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.lightdrift.ai/v1/asset/{asset_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.lightdrift.ai/v1/asset/{asset_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"asset_id": "<string>",
"score": 123,
"title": "<string>",
"source": "<string>",
"width": 123,
"height": 123,
"file": "<string>",
"thumb": "<string>",
"rights": {
"license": "<string>",
"license_verbatim": "<string>",
"commercial": true,
"attribution_required": true,
"derivatives": true,
"share_alike": true,
"attribution": "<string>",
"provenance_url": "<string>",
"basis": "<string>"
}
}Full metadata for one asset: title, file URL, the complete rights answer, and design-layer signals.
GET
/
v1
/
asset
/
{asset_id}
Get asset
curl --request GET \
--url https://api.lightdrift.ai/v1/asset/{asset_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.lightdrift.ai/v1/asset/{asset_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.lightdrift.ai/v1/asset/{asset_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"asset_id": "<string>",
"score": 123,
"title": "<string>",
"source": "<string>",
"width": 123,
"height": 123,
"file": "<string>",
"thumb": "<string>",
"rights": {
"license": "<string>",
"license_verbatim": "<string>",
"commercial": true,
"attribution_required": true,
"derivatives": true,
"share_alike": true,
"attribution": "<string>",
"provenance_url": "<string>",
"basis": "<string>"
}
}Authorizations
Your Lightdrift API key. Usage is metered per query.
Path Parameters
source:id, e.g. inat:41290763.