• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
PythonForBeginners.com

PythonForBeginners.com

Learn By Example

  • Home
  • Learn Python
    • Python Tutorial
  • Python Basics
    • Comments
    • Functions
    • Lists
    • Loops
    • Strings
    • Syntax Basics
  • Code Examples
  • Categories
    • Basics
    • Code Snippets
    • Python On The Web
    • Scripts
    • System & OS
    • Dictionary
    • Modules In Python
    • Lists
    • Modules
    • OS


You are here: Home / API / How to use the Vimeo API in Python

How to use the Vimeo API in Python

Last Updated: August 27, 2020

Overview


In this post we will be looking on how to use the Vimeo API in Python. 

About the Vimeo API


Vimeo offers an API which lets us integrate with their site and build applications
on top of their data.

Vimeo provides a "Simple API" and an "Advanced API".

To perform authenticated read/write requests on videos, users, groups, channels,
albums, or upload, you will have to use the Advanced API.

It uses OAuth for authentication, so you will first need to sign up.

When using the Simple API, you don’t need to register or authenticate your app.

One of the drawback with using the Simple API is that it’s limited to public data
and is read-only. 

The response limits in the Simple API include up to 20 items per page.

Vimeos API provides different Response formats, and they all return the exact
same data.

Getting Started


After looking at the website of Vimeo, I found out that I can start out with this
URL: http://vimeo.com/api/v2/video/video_id.output

the video_id is the ID of the video you want information for.

the output specifies which type that we want (json, xml)

Common Vimeo Requests


Making a User Request
Making a Video Request
Making an Activity Request
Making a Group Request
Making a Channel Request
Making an Album Request

Using the Vimeo API to get data


This script will show how you can set up the script to make a Video request from
Vimeo.
import requests

import json

r = requests.get("http://vimeo.com/api/v2/video/48082757.json")

r.text

data = json.loads(r.text)

'do something with the data'

Vimeo has been kind enough to provide some API examples for us which can be found
on their GitHub repository. https://github.com/vimeo/vimeo-api-examples
More Reading

http://developer.vimeo.com/apis/

Recommended Python Training

For Python training, our top recommendation is DataCamp.

Free Trial

Filed Under: API, Python On The Web Date Originally Published: October 17, 2012

More Python Topics

API Argv Basics Beautiful Soup bitly Cheatsheet Code Code Snippets Command Line Comments Control Flow crawler Data Types Development Dictionary Dictionary Data Structure In Python Errorhandling Error Handling Exceptions Fabric Files ftplib Games GUI Json Lists Loops Mechanzie Modules Modules In Python Mysql OS pil pip Python Python On The Web Python Strings Requests Scraping Scripts sh Strings System & OS urllib2 Web

Primary Sidebar

Get Our Free Guide To Learning Python

Menu

  • Python Basics
  • Code Examples
  • Loops
  • Functions
  • Strings
  • Python on the Web
  • Lists
  • Dictionaries
  • Python Modules
  • Python Glossary
  • Learn Python

Most Popular Content

  • Reading and Writing Files in Python
  • String Concatenation and Formatting
  • List Comprehensions in Python
  • How to use sys.argv in Python
  • How to use Split in Python
  • How to use comments in Python
  • Python Syntax Basics

Recent Posts

  • Iterating over dictionary in Python
  • Difference between comments and docstrings in Python
  • Shortcut to comment out multiple lines in Python
  • Convert a list containing float numbers to string in Python
  • Single Line and Multi Line Comments in Python

Python Courses

  • Datacamp: Intro To Python
  • 2021 Complete Python Bootcamp
  • Python Mega Course: Build 10 Real World Apps
  • Python Data Science Bootcamp
  • Complete Python Developer: Zero to Mastery

Copyright © 2012–2021 · PythonForBeginners.com

  • Home
  • Contact Us
  • Privacy Policy
  • Write For Us