AI API
Leverage the power of Gemini AI to process and enhance your feed content. Our AI API allows you to generate concise summaries, extract insights, and better understand your information flow.
Summarize a feed item
This endpoint generates a concise, 1-2 sentence summary of a feed item's content. The summary is automatically saved to the feed item in your database and returned in the response.
Required attributes
- Name
itemId- Type
- string
- Description
The unique ID of the feed item to summarize.
- Name
content- Type
- string
- Description
The raw text content that needs to be summarized.
Optional attributes
- Name
title- Type
- string
- Description
The title of the content, which helps the AI provide better context for the summary.
Request
curl -X POST https://api.repur.ai/v1/ai/summarize \
-H "X-API-Key: {your_api_key}" \
-H "Content-Type: application/json" \
-d '{
"itemId": "item_123",
"content": "Full article content goes here...",
"title": "Future of AI in Content Creation"
}'
{
"success": true,
"data": "AI technology is rapidly transforming content workflows by automating research and synthesis, allowing creators to focus on high-level strategy."
}
YouTube Transcripts
Extract the full text transcript from any YouTube video. This is particularly useful for video-based feeds where you want to perform analysis, summarization, or search on the spoken content.
Required attributes
- Name
feedItemId- Type
- string
- Description
The ID of the feed item associated with the video.
- Name
videoUrl- Type
- string
- Description
The valid YouTube video URL.
Request
curl -X POST https://api.repur.ai/v1/ai/youtube/transcript \
-H "X-API-Key: {your_api_key}" \
-H "Content-Type: application/json" \
-d '{
"feedItemId": "item_video_123",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}'
{
"success": true,
"data": {
"transcript": "Full video transcript text..."
},
"cached": false
}