#9 YouTube Profile

Create profile card statistik account screenshot, simple and elegan

URL Endpoint

https://editor.vreden.my.id/youtube

Headers

Header Type Description
Content-Type String image/png

Params

Berikut adalah contoh URLSearchParams request yang bisa dipakai untuk mendapatkan image YouTube profile template.

{
  "username": "@username",
  "profile": "url profile",
  "subscribers": 123,
  "views": 12345,
  "video": 13,
  "bio": "Your Bio Here!"
}

Contoh Code

Berikut adalah contoh code yang bisa di pakai untuk mendapatkan image tersebut.

const apiUrl = 'url endpoint'
const params = new URLSearchParams({
  username: "@username",
  profile: "url profile",
  subscribers: 123,
  views: 12345,
  video: 13,
  bio: "Your Bio Here!"
}).toString();

const fullUrl = `${apiUrl}?${params}`

Const Code

Keterangan untuk const yang ada di code tersebut.

Field Type Description
apiUrl URL Berisi URL endpoint web api
params JSON Isi JSON data yang di convert ke params URL
fullUrl URL Hasil akhir dari search params, ini yang digunakan untuk get buffer

Params Request

Keterangan untuk params request URLSearchParams.

Field Type Description
username String Nama pengguna.
profile URL URL foto profil pengguna.
subscribers Angka Jumlah subscribers account.
views Angka Total jumlah penonton video.
video Angka Total jumlah video uploaders.
bio String Bio data pengguna users.