Video Scraping API

A FastAPI-based backend for video scraping and analysis.

Setup

  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
uvicorn app.main:app --reload

The API will be available at http://localhost:8000

API Documentation

After starting the server, visit http://localhost:8000/docs for the interactive API documentation.

Endpoints

  • POST /scrape-videos/: Submit URLs for video scraping
  • GET /videos/: Get paginated list of videos
  • GET /videos/{video_id}: Get detailed information about a specific video

Models

  • Video: Base video information
  • Metadata: Video transcript and metadata
  • VideoSummary: Generated summary of the video
  • VideoSponsor: Sponsorship information and brand mentions