C
C
Che Che952021-11-21 02:18:04
YouTube
Che Che95, 2021-11-21 02:18:04

How to add likes from youtube to website in wordpress?

Hello everyone, I made a website on a Word press and I add a video from the YouTube channel, so you can follow the link is it possible to take likes views from YouTube to my site maybe there is some kind of Plugin something else thanks in advance to everyone

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Zolin, 2021-11-21
@artzolin

The youtube api has a fairly clear and simple documentation . Use the statistics parameter to request the information you need

GET https://www.googleapis.com/youtube/v3/videos?id=sTPtBvcYkO8&key=YOUR_API_KEY&part=statistics

{
 "kind": "youtube#videoListResponse",
 "etag": "\"kjEFmP90GvrCl8BObMQtGoRfgaQ/XN5YXMZGQaruwTWTekZu7fQthdY\"",
 "pageInfo": {
  "totalResults": 1,
  "resultsPerPage": 1
 },
 "items": [
  {

   "kind": "youtube#video",
   "etag": "\"kjEFmP90GvrCl8BObMQtGoRfgaQ/QbzZs_aBNpzkZJxTVM7YgQeEY3g\"",
   "id": "sTPtBvcYkO8",
   "statistics": {
    "viewCount": "3215321",
    "likeCount": "17003",
    "dislikeCount": "263",
    "favoriteCount": "0",
    "commentCount": "621"
   }
  }
 ]
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question