Download all your favorite social media videos, watermark-free, with TikTok, Instagram, and Facebook. Get high-quality videos hassle-free!
Welcome to the API Integration Guide! This document will help you seamlessly integrate our API into your website using PHP / JAVA. Our API provides detailed information about video url addresses, including title, thumbnail and download links.
Step 1: Obtaining API Key To authenticate your requests and ensure security, you'll need to obtain an API key from our platform. Please follow these steps to generate your unique API key:
Step 2: Making API Requests Now that you have your API key, you can start making API requests. Here's an example of how to make a request:
<?php
$url = 'https://krishnaip.net/api/Api_Key/Downloader_Type?url=';
$response = file_get_contents($url);
$data = json_decode($response, true);
// Use the returned data as per your requirements and Display the information
echo 'status: ' . $data['status'];
echo 'title: ' . $data['title'];
echo 'thumbnail: ' . $data['thumbnail'];
echo 'download_link: ' . $data['download_link'];
?>
1. Open your app/build.gradle file and add the following dependencies:
dependencies {
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
}
2. Define Model Class (Optional):
title
or
download_link
, create a model class representing the JSON structure:
public class ApiResponse {
private String status;
private String title;
private String message;
private String thumbnail;
private String download_link;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getThumbnail() {
return thumbnail;
}
public void setThumbnail(String thumbnail) {
this.thumbnail = thumbnail;
}
public String getDownload_link() {
return download_link;
}
public void setDownload_link(String download_link) {
this.download_link = download_link;
}
}
3. Create Retrofit Interface:
public interface ApiService {
@GET('/Api_key/Downloader_Type') // Replace with actual endpoint URL
Call<ApiResponse> getResponse(@Query('url') String url); // Replace with appropriate return type (ApiResponse in this case)
}
4. Initialize Retrofit Client:
Retrofit retrofit = new Retrofit.Builder()
.baseUrl("https://socialvdo.com/api/")
.addConverterFactory(GsonConverterFactory.create())
.build();
5. Create API Service Instance:
ApiService
interface:ApiService apiService = retrofit.create(ApiService.class);
6. Make the API Call:
ApiService
instance:String url = "your video url"; // Replace with actual url
Call<ApiResponse> call = apiService.getResponse(url);
7. Handle Response Asynchronously:
enqueue
on the Call
object to make the asynchronous API
call:call.enqueue(new Callback<ApiResponse>() {
@Override
public void onResponse(Call<ApiResponse> call, Response<ApiResponse> response) {
if (response.isSuccessful()) {
ApiResponse apiResponse = response.body();
// Access response data using model class fields or directly from response object
String title = apiResponse.getTitle();
String downloadLink = apiResponse.getDownload_link();
// Update UI or perform further actions with the data
} else {
// Handle API call failure (e.g., network error, server error)
}
}
@Override
public void onFailure(Call<ApiResponse> call, Throwable t) {
// Handle network error or other exceptions
}
});
{
"status" : "success"
"message" : "Video Link Found"
"title" : "Video Title" (optional)
"thumbnail" : "Video Image URL" (optional)
"download_link" : "Video Download Link"
}
{
"status" : "fail",
"message" : "Error Message"
"code" : "Response code"
}
Facebook Video Downloader | https://socialvdo.com/api/api_key/facebook |
---|---|
Instagram Video Downloader | https://socialvdo.com/api/api_key/instagram |
TikTok Video Downloader | https://socialvdo.com/api/api_key/tiktok |
YouTube Video Downloader | https://socialvdo.com/api/api_key/youtube |
Pinterest Video Downloader | https://socialvdo.com/api/api_key/pinterest |
Telegram Video Downloader | https://socialvdo.com/api/api_key/telegram |
Bitchute Video Downloader | https://socialvdo.com/api/api_key/bitchute |
Islesense Video Downloader | https://socialvdo.com/api/api_key/izlesene |
ShareChat Video Downloader | https://socialvdo.com/api/api_key/sharechat |
Hipi Video Downloader | https://socialvdo.com/api/api_key/hipi |
Dailymotion Video Downloader | https://socialvdo.com/api/api_key/dailymotion |
Douyin Video Downloader | https://socialvdo.com/api/api_key/douyin |
SnapChat Video Downloader | https://socialvdo.com/api/api_key/snapchat |
Support: If you have any questions or encounter any issues while integrating our API, please don't hesitate to contact our support team. Get in touch via Live Support Chat