【问题标题】:Retrieving public data using YouTube Analytics API使用 YouTube Analytics API 检索公共数据
【发布时间】:2015-04-29 09:25:52
【问题描述】:

我想创建一个网站,允许用户输入 YouTube URL,然后生成有关视频或频道的统计信息。

我研究了 YouTube Analytics API,但是在关注 https://developers.google.com/youtube/analytics/v1/sample-application 后遇到了错误。我收到“超出未经验证使用的每日限制。继续使用需要注册。”错误。

我追求的是一种获取 HTTP url 请求的简单方法,它将为我提供基本分析(公开的详细信息,例如喜欢、视图等),因此我可以在 YouTube URL 上执行此 GET 请求这是输入的。

任何帮助将不胜感激。

【问题讨论】:

    标签: get youtube-analytics


    【解决方案1】:

    听起来您需要按照说明注册您的应用

    来自https://developers.google.com/youtube/v3/

    Register your application with Google so that it can submit API requests.
    

    此页面有详细信息

    https://developers.google.com/youtube/registering_an_application

    获取授权凭证

    您的应用程序必须具有授权凭据才能使用 YouTube 数据 API。本文档描述了不同的类型 Google Developers Console 的授权凭据 支持。它还解释了如何查找或创建授权 您项目的凭据。

    创建您的项目并选择 API 服务

    Go to the Google Developers Console.
    Select a project.
    In the sidebar on the left, select APIs & auth. In the list of APIs, make sure the status is ON for the YouTube Data API v3.
    In the sidebar on the left, select Credentials.
    The API supports two types of credentials. Create whichever credentials are appropriate for your project:
    OAuth 2.0: Your application must send an OAuth 2.0 token with any request that accesses private user data. Your application sends a
    

    客户端 ID,可能还有用于获取令牌的客户端密码。你可以 为 Web 应用程序、服务帐户生成 OAuth 2.0 凭据, 或已安装的应用程序。

    Learn more
    API keys: A request that does not provide an OAuth 2.0 token must send an API key. The key identifies your project and provides API
    

    访问、配额和报告。

    If the key type you need does not already exist, create an API key by selecting Create New Key and then selecting the appropriate key
    

    类型。然后输入该密钥类型所需的附加数据。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-09-21
    • 2022-01-12
    • 2012-10-10
    • 2011-09-23
    • 2014-03-23
    • 1970-01-01
    • 2013-09-03
    • 1970-01-01
    相关资源
    最近更新 更多