Skip to content

SCToolsOrg/export

Repository files navigation

YouTube Data Exporter

This project is a SvelteKit frontend for exporting historical YouTube performance data as CSV. It fetches the history for a YouTube channel or video, visualizes the selected metrics, and lets you download or copy the transformed dataset.

The app currently supports the vidiq source and works with two resource types:

  • channel exports channel history such as subscribers, views, and video counts
  • video exports video history such as views, likes, and comments

What The App Does

  • Requests export data from GET /api/:site/:type/:id
  • Displays the returned time-series data in charts
  • Builds CSV exports from the fetched snapshots
  • Supports multiple export granularities: all, hourly, daily, weekly, and monthly
  • Can transpose CSV output so metrics become rows instead of columns
  • Can interpolate missing periods when generating aggregated exports

API Response Docs

The response contract for the upstream export API is documented in API_RESPONSE.md.

Local Development

Install dependencies:

pnpm install

Start the dev server:

PUBLIC_API_BASE_URL=https://your-api-host.example.com pnpm dev

Open the app and provide:

  • a source, currently vidiq
  • a resource type: channel or video
  • the target YouTube channel ID or video ID

PUBLIC_API_BASE_URL must point to the upstream host that serves /api/:site/:type/:id.

Available Scripts

pnpm dev
pnpm build
pnpm preview
pnpm check
pnpm lint
pnpm format

Build

Create a production build with:

pnpm build

Preview the production output locally with:

pnpm preview

About

A website to export YouTube data

Resources

License

Stars

Watchers

Forks

Contributors