Search API - include structured metadata in results?
I'm a newbie working on the free plan, and I was wondering if it is possible to return the structured or contextual metadata in the result of a search? I know I have to be tier 2 in order to access embedded data, and use that as part of the search criteria, but I'm less clear if this also applies to displaying data in the results or displaying structured or contextual metadata? This would allow me to build a JSON file with all the data I need for an image gallery for a website project, including caption and alt text.
any tips or suggestions would be greatly appreciated. thanks!
-
Hi John,
In using the CLI, you can use the option -f or --with_field. Here is the example command for your case:
cld search -f context "tags=dogs"
OR
cld search --with_field context "tags=dogs"
You can learn more about this in the documentation:
https://cloudinary.com/documentation/cloudinary_cli#searchPlease note that in your screenshot, the resource does not have the tag "dogs" so it won't be in the search result.
Hope this helps, please let me know if you have further questions
Regards,
Francis
Post is closed for comments.
Comments
6 comments