curl --request POST \
--url https://api.yalg.ai/v1/youtube-suggestions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "How to turn stories into content"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'How to turn stories into content'})
};
fetch('https://api.yalg.ai/v1/youtube-suggestions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.yalg.ai/v1/youtube-suggestions"
payload = { "title": "How to turn stories into content" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)"<string>"{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request",
"code": "validation_failed"
}{
"statusCode": 401,
"message": "Invalid or missing API key",
"error": "Unauthorized",
"code": "unauthorized"
}{
"statusCode": 403,
"message": "Access denied",
"error": "Forbidden",
"code": "forbidden"
}{
"statusCode": 409,
"message": "Resource conflict",
"error": "Conflict",
"code": "conflict"
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": "Too Many Requests",
"code": "rate_limit_exceeded",
"retryAfter": 60
}{
"statusCode": 500,
"message": "Internal server error",
"error": "Internal Server Error",
"code": "internal_server_error"
}Create a new YouTube video suggestion
Manually create a YouTube video idea suggestion
curl --request POST \
--url https://api.yalg.ai/v1/youtube-suggestions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "How to turn stories into content"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'How to turn stories into content'})
};
fetch('https://api.yalg.ai/v1/youtube-suggestions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.yalg.ai/v1/youtube-suggestions"
payload = { "title": "How to turn stories into content" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)"<string>"{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request",
"code": "validation_failed"
}{
"statusCode": 401,
"message": "Invalid or missing API key",
"error": "Unauthorized",
"code": "unauthorized"
}{
"statusCode": 403,
"message": "Access denied",
"error": "Forbidden",
"code": "forbidden"
}{
"statusCode": 409,
"message": "Resource conflict",
"error": "Conflict",
"code": "conflict"
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": "Too Many Requests",
"code": "rate_limit_exceeded",
"retryAfter": 60
}{
"statusCode": 500,
"message": "Internal server error",
"error": "Internal Server Error",
"code": "internal_server_error"
}Authorizations
YALG Developer API key. Send it in the x-api-key header from a server-side environment only.
Body
Video title
200"10 Tips to Master TypeScript in 2024"
Video description
"In this video, we explore the best practices for TypeScript development..."
Video hook/intro
"Are you still writing JavaScript like it's 2015? Here's what you're missing..."
Video tags
["typescript", "programming", "tutorial"]
SEO keywords
[
"typescript tutorial",
"learn typescript",
"typescript 2024"
]
Video category
tutorial, review, vlog, educational, entertainment, news, how_to, interview, documentary, other "tutorial"
Estimated video duration
"15-20 minutes"
Target audience description
"Intermediate JavaScript developers looking to level up"
Why this suggestion could perform well
"Strong retention on workflow videos and repeated audience demand"
Suggestion confidence or potential score
0 <= x <= 10085
Origin query or source for this suggestion
"youtube_analytics"
Response
Suggestion created successfully
The response is of type file.