vimeo_video_metadata 0.0.1 copy "vimeo_video_metadata: ^0.0.1" to clipboard
vimeo_video_metadata: ^0.0.1 copied to clipboard

A lightweight Dart package to fetch Vimeo video metadata using the oEmbed API. Just provide a Vimeo URL or video ID and get title, author, thumbnail, and more.

Vimeo API Dart Package #

A lightweight Dart package to fetch Vimeo video metadata using the official oEmbed API. Cleanly designed for easy use, extensibility, and testability.


✨ Features #

  • Get video metadata by URL or video ID.
  • Clean interface via IVimeoApi.
  • Uses Vimeo’s oEmbed API.
  • Timeout support.
  • Simple to use via createVimeoApi() factory function.
  • Fully testable and mock-friendly.

📦 Installation #

Add the following to your pubspec.yaml:

dependencies:
  vimeo_api: ^0.0.1 or latest

Then run:

flutter pub get or dart pub get

Ensure that you have added internet permissions to your app in the AndroidManifest.xml file for Android . No need to add any permissions for iOS.

<uses-permission android:name="android.permission.INTERNET"/>

🚀 Usage #

import 'package:vimeo_api/vimeo_api.dart';

void main() async {
  final api = createVimeoApi(timeoutInSeconds: 15);

  final metadata = await api.getVideoMetaByUrl("https://vimeo.com/718338402");

  if (metadata != null) {
    print("Title: ${metadata.title}");
    print("Author: ${metadata.authorName}");
    print("Thumbnail: ${metadata.thumbnailUrl}");
  } else {
    print("Failed to fetch metadata.");
  }
}

Contributing #

Contributions are welcome! Please feel free to submit a Pull Request.

License #

This project is licensed under the MIT License - see the LICENSE file for details.Developed by Rohan Kumar Panigrahi at RaftLabs.

0
likes
140
points
5
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight Dart package to fetch Vimeo video metadata using the oEmbed API. Just provide a Vimeo URL or video ID and get title, author, thumbnail, and more.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on vimeo_video_metadata