Generate YouTube video suggestions using AI
curl --request POST \
--url https://api.yalg.ai/v1/youtube-suggestions/generate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"topic": "Founder-led content systems"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({topic: 'Founder-led content systems'})
};
fetch('https://api.yalg.ai/v1/youtube-suggestions/generate', 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/generate"
payload = { "topic": "Founder-led content systems" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "10 Tips to Master TypeScript in 2024",
"description": "In this video, we explore...",
"hook": "Are you still writing JavaScript like it's 2015?",
"tags": [
"typescript",
"programming"
],
"score": 85,
"status": "pending"
}
]{
"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"
}youtube-suggestions
Generate YouTube video suggestions using AI
Uses AI to generate multiple video ideas based on a topic and preferences
POST
/
v1
/
youtube-suggestions
/
generate
Generate YouTube video suggestions using AI
curl --request POST \
--url https://api.yalg.ai/v1/youtube-suggestions/generate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"topic": "Founder-led content systems"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({topic: 'Founder-led content systems'})
};
fetch('https://api.yalg.ai/v1/youtube-suggestions/generate', 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/generate"
payload = { "topic": "Founder-led content systems" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "10 Tips to Master TypeScript in 2024",
"description": "In this video, we explore...",
"hook": "Are you still writing JavaScript like it's 2015?",
"tags": [
"typescript",
"programming"
],
"score": 85,
"status": "pending"
}
]{
"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
application/json
Topic or niche to generate suggestions for
Example:
"web development"
Number of suggestions to generate
Required range:
1 <= x <= 10Example:
5
Target audience for the suggestions
Example:
"beginners"
Preferred video category
Available options:
tutorial, review, vlog, educational, entertainment, news, how_to, interview, documentary, other Language for suggestions
Example:
"fr"
Response
Suggestions generated successfully