BytePicks API Documentation
What Do The Api Provide ?
We offers a comprehensive set of functionalities to enhance your tech video discovery experience. By leveraging our API, you can access precisely curated content based on your preferences and needs just like our dashboard. The response includes many detailed information for each video that might be very helpful in your program, webservice, project. We try to make it as open and easy as possible for you, for free.
What to Expect?
The response includes the following information for each video:
- Channel Name (str)
- Channel ID (str)
- Channel Icon (str)
- Channel URL (str)
- Video URL (str)
- Video Title (str)
- Video ID (str)
- Video Publish Date (str)
- Video Thumbnail (str)
- Video Duration (str)
- Video Definition (str)
- Video Language (str)
- Video Caption (bool)
- Video Content Rating (bool)
- Video View Count (int)
- Video Like Count (int)
- Video Comment Count (int)
- Video Category ID (int)
The Videos will be sorted automatically by relevance & quality using our Algorithms and displayed in descending order.
What About the API Key ?
No API key is required to access the BytePicks API. We believe in providing an open and free service without the need for user accounts or monetary transactions. This makes it easier for developers to integrate and explore our API without any barriers or paywalls.
What Are the EndPoints & Parameters ?
EndPoints :
https://bytepicks.com/api/request
Parameters :
-
time :
Specifies the time range for video selection between the following values :
- daily
- weekly
- monthly
- yearly
-> If the value is not provided, it will default to 'daily'
-
lang :
Specifies the language for video selection between the following ISO 639-1 standard values :
- EN (English)
- FR (French)
- ES (Spanish)
- RU (Russian)
- HI (Hindi)
-> If the value is not provided, it will default to 'EN'
-
top :
Specifies the number of videos to retrieve starting from the top. The value should be an int greater than 0
-> If the value is not provided, it will default to 25
Note : If the value is bigger then the number of videos it will just retrieve all of them
Ex : If top is 45 but there are only 21 videos it will retrieve all the 21 in said language in that time
Very Important:
All parameters are case sensitive and they should be written like in the example above.
If any error is detected it will return an error message.
Code Example
import requests
url = "https://bytepicks.com/api/request"
params = {
'time': 'daily',
'lang': 'EN',
'top': 30
}
response = requests.get(url, params)
if response.status_code == 200:
data = response.json()
# Process the response data as needed
print(data)
else:
print(f"Error: {response.status_code}")
const axios = require('axios');
const url = 'https://bytepicks.com/api/request';
const params = {
'time': 'daily',
'lang': 'EN',
'top': 30
};
axios.get(url, { params })
.then(response => {
// Process the response data as needed
console.log(response.data);
})
.catch(error => {
console.error(`Error: ${error.response.status}`);
});
require 'net/http'
require 'json'
url = URI.parse('https://bytepicks.com/api/request')
params = {
'time' => 'daily',
'lang' => 'EN',
'top' => 30
}
url.query = URI.encode_www_form(params)
response = Net::HTTP.get_response(url)
if response.code.to_i == 200
data = JSON.parse(response.body)
# Process the response data as needed
puts data
else
puts "Error: #{response.code}"
end
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
var url = "https://bytepicks.com/api/request";
var parameters = $"time=daily&lang=EN&top=30";
using (var client = new HttpClient())
{
var response = await client.GetAsync($"{url}?{parameters}");
if (response.IsSuccessStatusCode)
{
var responseData = await response.Content.ReadAsStringAsync();
// Process the response data as needed
Console.WriteLine(responseData);
}
else
{
Console.WriteLine($"Error: {response.StatusCode}");
}
}
}
}
Output Example
{
"Request": "The top 30 daily videos in EN",
"Date": "21/01/2024 17:59:04",
"Results": [
{
"ChannelName": "TechLinked",
"ChannelId": "UCeeFfhMcJa1kjtfZAGskOCA",
// (Additional Details About This Video)
},
{
"ChannelName": "Logically Answered",
"ChannelId": "UCZRoNJu1OszFqABP8AuJIuw",
// (Additional Details About This Video)
},
// (Remaining Videos)
]
}
Notice
BytePicks is a small project with limited resources. As such, we kindly ask you not to abuse our API or send an excessive number of requests in a short time. We aim to keep our API open and accessible, and we appreciate your cooperation in helping us maintain its availability.
Feel free to explore the BytePicks API and discover the best in tech content. If you have any questions or need assistance, please refer to our contact page. Happy coding!