Copy link to clipboard
Copied
Hi,
Currently working on the implementation to import the adobe stock images to aem dam. For that we would like to include the condition to filter the specific content_type and date range for the licensed assets.
I am looking for the help, is there any way to directly filter the content_type and date range from the curl command or using the query? When hitting this command https://stock.adobe.io/Rest/Libraries/1/Member/LicenseHistory?locale=en_US&search_parameters[limit]=... i am getting the following result.
Hi Bhavani,
It is not possible to filter the response from the License History API. You would need to fetch each page of the history (a JSON array) and apply some application logic to find only assets with the fields you need. Both content type and license date should be in the response. After you have created this filtered list, then you can download the files with the URLs also provided in the response.
Net, the flow would be 1) fetch license history > 2) filter the JSON response > 3) dow
...Copy link to clipboard
Copied
Did you check here: https://developer.adobe.com/stock/docs/getting-started/?
Maybe I should tag @Christopher at Adobe.
Copy link to clipboard
Copied
Hi Bhavani,
It is not possible to filter the response from the License History API. You would need to fetch each page of the history (a JSON array) and apply some application logic to find only assets with the fields you need. Both content type and license date should be in the response. After you have created this filtered list, then you can download the files with the URLs also provided in the response.
Net, the flow would be 1) fetch license history > 2) filter the JSON response > 3) download assets. The API returns the newest assets first, so after this one-time effort to pull down all of the history, you can then run this process only on new assets. But there is no way using the API to fetch only one asset from a particular date. For that finer-grained control, you would need to use the License History on the Stock website.
If you have additional questions, please email stockapis@adobe.com.
Thanks,
Christopher
Thanks for the mention, @Abambo. Happy New Year! 🥳
Copy link to clipboard
Copied
Thanks for the mention, @Abambo. Happy New Year! 🥳
By @CFS the Stock API Guy
You're welcome and a Happy New Year.
Copy link to clipboard
Copied
Thanks Christopher for your response. If there is not direct way to query the stock assets using the license expiry and content type, then we need go with the approach to fiter the license history assets in aem backend then download the needed one.
Thanks again for the timely help!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now