Hi mukesh1,
Use WebClient class to downloaded JSON string using DownloadString method.
Then deserialize to class object and use the thumbnail_url property to display the thumbnail image.
Refer below example.
HTML
<asp:Image ID="imgThumbnail" runat="server" />
Namespaces
C#
using System.Net;
using Newtonsoft.Json;
VB.Net
Imports System.Net
Imports Newtonsoft.Json
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
string url = "https://vimeo.com/api/oembed.json?url=https://vimeo.com/76979871";
string json = (new WebClient()).DownloadString(url);
Root result = JsonConvert.DeserializeObject<Root>(json);
imgThumbnail.ImageUrl = result.thumbnail_url;
}
public class Root
{
public string thumbnail_url { get; set; }
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim url As String = "https://vimeo.com/api/oembed.json?url=https://vimeo.com/76979871"
Dim json As String = (New WebClient()).DownloadString(url)
Dim result As Root = JsonConvert.DeserializeObject(Of Root)(json)
imgThumbnail.ImageUrl = result.thumbnail_url
End Sub
Public Class Root
Public Property thumbnail_url As String
End Class
Screenshot