cURL
curl --request GET \
--url https://api.influship.com/v1/raw/youtube/video/{video_id} \
--header 'X-API-Key: <api-key>'import Influship from 'influship';
const client = new Influship({
apiKey: process.env['INFLUSHIP_API_KEY'], // This is the default and can be omitted
});
const response = await client.raw.youtube.getVideo('dQw4w9WgXcQ');
console.log(response.data);import os
from influship import Influship
client = Influship(
api_key=os.environ.get("INFLUSHIP_API_KEY"), # This is the default and can be omitted
)
response = client.raw.youtube.get_video(
"dQw4w9WgXcQ",
)
print(response.data){
"data": {
"video_id": "<string>",
"url": "<string>",
"title": "<string>",
"description": "<string>",
"channel_id": "<string>",
"channel_name": "<string>",
"channel_handle": "<string>",
"thumbnail_url": "<string>",
"duration_seconds": 1,
"view_count": 4503599627370495,
"like_count": 4503599627370495,
"comment_count": 4503599627370495,
"published_at": "2023-11-07T05:31:56Z",
"published_date": "<string>",
"tags": [
"<string>"
],
"categories": [
"<string>"
],
"availability": "<string>",
"live_status": "<string>",
"scraped_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "validation_error",
"message": "Invalid value for parameter 'limit': must be between 1 and 100",
"param": "limit",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "unauthorized",
"message": "API key missing or invalid",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "payment_required",
"message": "Payment authentication is required.",
"status_code": 402,
"reason_code": "PAYMENT_ACTION_REQUIRED",
"next_step": "complete_authentication",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "forbidden",
"message": "Your plan does not include access to this endpoint",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "not_found",
"message": "Creator with ID '123e4567-e89b-12d3-a456-426614174000' not found",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded (per minute)",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "internal_error",
"message": "An unexpected error occurred. Please try again later.",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "service_unavailable",
"message": "Live Instagram data is temporarily unavailable. Please retry shortly.",
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {
"retry_after_seconds": 60,
"upstream_error": "upstream_rate_limited"
}
}
}Live Scraping
Get YouTube Video Details
Fetch fresh video metadata including description, exact publish timestamp when available, views, likes, comments, tags, categories, and channel identity.
Pricing: 0.5 credits per video fetched ($0.005)
GET
/
v1
/
raw
/
youtube
/
video
/
{video_id}
cURL
curl --request GET \
--url https://api.influship.com/v1/raw/youtube/video/{video_id} \
--header 'X-API-Key: <api-key>'import Influship from 'influship';
const client = new Influship({
apiKey: process.env['INFLUSHIP_API_KEY'], // This is the default and can be omitted
});
const response = await client.raw.youtube.getVideo('dQw4w9WgXcQ');
console.log(response.data);import os
from influship import Influship
client = Influship(
api_key=os.environ.get("INFLUSHIP_API_KEY"), # This is the default and can be omitted
)
response = client.raw.youtube.get_video(
"dQw4w9WgXcQ",
)
print(response.data){
"data": {
"video_id": "<string>",
"url": "<string>",
"title": "<string>",
"description": "<string>",
"channel_id": "<string>",
"channel_name": "<string>",
"channel_handle": "<string>",
"thumbnail_url": "<string>",
"duration_seconds": 1,
"view_count": 4503599627370495,
"like_count": 4503599627370495,
"comment_count": 4503599627370495,
"published_at": "2023-11-07T05:31:56Z",
"published_date": "<string>",
"tags": [
"<string>"
],
"categories": [
"<string>"
],
"availability": "<string>",
"live_status": "<string>",
"scraped_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "validation_error",
"message": "Invalid value for parameter 'limit': must be between 1 and 100",
"param": "limit",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "unauthorized",
"message": "API key missing or invalid",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "payment_required",
"message": "Payment authentication is required.",
"status_code": 402,
"reason_code": "PAYMENT_ACTION_REQUIRED",
"next_step": "complete_authentication",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "forbidden",
"message": "Your plan does not include access to this endpoint",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "not_found",
"message": "Creator with ID '123e4567-e89b-12d3-a456-426614174000' not found",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded (per minute)",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "internal_error",
"message": "An unexpected error occurred. Please try again later.",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "service_unavailable",
"message": "Live Instagram data is temporarily unavailable. Please retry shortly.",
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"details": {
"retry_after_seconds": 60,
"upstream_error": "upstream_rate_limited"
}
}
}⌘I