Ad Space

SocialVDO - Download Social Media Videos Without Watermark & HD

Codeintra
IP API Integration Guide

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:

  • Visit our website at https://socialvdo.com
  • Sign up for an account or log in if you already have one. 
  • Navigate to the API section in your account settings. 
  • Generate an API key and copy it for future use.

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:

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):

  • If you want to access response data by field names like 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:

  • Create an interface that defines your API endpoint and the method to fetch data. Use annotations to specify the URL and response type:
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:

  • In your Activity or class where you want to make the API call, create a Retrofit instance:
Retrofit retrofit = new Retrofit.Builder()
    .baseUrl("https://socialvdo.com/api/")
    .addConverterFactory(GsonConverterFactory.create())
    .build();

5. Create API Service Instance:

  • Use the Retrofit instance to create an instance of your ApiService interface:
ApiService apiService = retrofit.create(ApiService.class);

6. Make the API Call:

  • Call the desired method from your ApiService instance:
String url = "your video url"; // Replace with actual url
Call<ApiResponse> call = apiService.getResponse(url);

7. Handle Response Asynchronously:

  • Use 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
}
});
JSON Response

API Success Response

{
    "status" : "success"
    "message" : "Video Link Found"
    "title" : "Video Title" (optional)
    "thumbnail" : "Video Image URL" (optional)
    "download_link" : "Video Download Link"
}

API Error Response

{ 
    "status" : "fail",
    "message" : "Error Message"
    "code" : "Response code"
}

Downloader Types

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