WordPress REST API link and first image from videos from YT

In my Adroid App i have post from WordPress REST API. In post sometimes I have YouTube videos and this generate problem:

Your app shouldn’t access or use a service or API in a manner that
violates its terms of service. For example, make sure your app doesn’t
download, monetize, or access YouTube videos in a way that violates
the YouTube Terms of Service.

Do you know how i can change YT videos to image and link ONLY in WordPress REST API?

Read more here: WordPress REST API link and first image from videos from YT

Leave a Reply

Your email address will not be published. Required fields are marked *