Search for Brightcove Video Cloud assets
Use the externalItems GraphQL query to search for and retrieve items in a Brightcove Video Cloud folder.
Example request
The first sample code block illustrates a request to search for items matching the specified searchText under a specified folder in Brightcove Video Cloud (entity type is "Folder" ).
{
externalItems(namespace: "brightcove", filter : {context:
{namespace: "brightcove" type: "Folder" id: "Media"},
searchText: "solar"}) {
edges{
node{
...
on BrightcoveVideo {
title
binaryReference
}
}
}
}
}
Example response
The second code block illustrates the corresponding response with the requested data for each folder.
{
"data": {
"externalItems": {
"edges": [
{
"node": {
"title": "Solar Panels in Rows",
"binaryReference": null
}
},
{
"node": {
"title": "Solar Panels on Large Field",
"binaryReference": null
}
},
{
"node": {
"title": "Drone Footage of Solar Panels",
"binaryReference": null
}
},
{
"node": {
"title": "Solar Panels on Green Field",
"binaryReference": null
}
},
{
"node": {
"title": "Solar Panels on a Meadow",
"binaryReference": null
}
},
{
"node": {
"title": "Solar Panel on a Roof",
"binaryReference": null
}
}
]
}
}
}