Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET /API/V1/SEARCH Schema has a missing field of viewCountText in the "video" object in the API documentation #569

Closed
Ochirsaikhan opened this issue Jun 18, 2024 · 2 comments · Fixed by #616
Labels
documentation Improvements or additions to documentation

Comments

@Ochirsaikhan
Copy link

In the API documentation, the viewCountText field is missing from the GET /API/V1/SEARCH Schema.

We can see that the search API returns the viewCountText field for the video object.

Example:

{
    "type": "video",
    "title": "Tory Lanez - The Color Violet (Official Music Video)",
    "videoId": "GfAPEko4rbU",
    "author": "Tory Lanez",
    "authorId": "UCbfUA3UGxAWL3muD004g0WQ",
    "authorUrl": "/channel/UCbfUA3UGxAWL3muD004g0WQ",
    "authorVerified": true,
    "videoThumbnails": [],
    "description": "",
    "descriptionHtml": "",
    "viewCount": 8403310,
    "viewCountText": "8.4M views",  --> We can see the `viewCountText` field as returned from the API response
    "published": 1700299733,
    "publishedText": "7 months ago",
    "lengthSeconds": 253,
    "liveNow": false,
    "premium": false,
    "isUpcoming": false
  }

Documentation:

{
    type: "video",
    title: String,
    videoId: String,
    author: String,
    authorId: String,
    authorUrl: String,
    videoThumbnails: [
      {
        quality: String,
        url: String,
        width: Int32,
        height: Int32
      }
    ],
    description: String,
    descriptionHtml: String,
    viewCount: Int64,
    // viewCountText: String is missing from the documentation
    published: Int64,
    publishedText: String,
    lengthSeconds: Int32,
    liveNow: Bool,
    paid: Bool,
    premium: Bool
  }
@bugmaschine
Copy link
Collaborator

Feel free to create a pull request

@unixfox
Copy link
Member

unixfox commented Jun 18, 2024

https://github.com/iv-org/documentation/tree/master/docs%2Fapi

@unixfox unixfox added the documentation Improvements or additions to documentation label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants