How can I locate entries by specific custom metadata via API?


Follow these steps to use Kaltura API to find entries based on custom metadata.

  1. Generate a KS
    Open the API console at https://developer.kaltura.com/console/ (Sign In) or  http://www.kaltura.com/api_v3/testme.
    In case Testme Console is used, first, you will need to generate a KS session as demonstrated on How to Start a Kaltura Session using the TestMe Console.
  2. Session Service:
    baseEntry
  3. action: 
    list
  4. filter:objectType: 
    KalturaMediaEntryFilter
  5. filter:advancedSearch:objectType: 
    KalturaMetadataSearchItem
  6. filter:advancedSearch:type: 
    2
  7. filter:advancedSearch:metadataProfileId: 
    [schema_profile_id]       (Place here your ID number for example 21664102)
  8. filter:advancedSearch:items:item0:objectType: 
    KalturaSearchCondition
  9. filter:advancedSearch:items:item0:field: 
    /*[local-name()='metadata']/*[local-name()='Field_Label']    
     (Place here your field label for example /*[local-name()='metadata']/*[local-name()='MediaSource'] )
  10. filter:advancedSearch:items:item0:value: 
    [custom_metadata_field_value]     (Place here your field value for example Keshet 12 News)



Was this article helpful?
Thank you for your feedback!
In This Article
Related Articles
Back to top

Never miss a thing!

Subscribe to our customer newsletter and our release notes updates, so you always get the best out of Kaltura.
Newsletter