serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
50 stars 3 forks source link

[YouTube Search API] Wrong parsing of views in "shorts_results" section #1861

Open hesoia opened 3 weeks ago

hesoia commented 3 weeks ago

When querying YouTube API in Russian language, field "views" in "shorts_results" section is not parsed correctly. For example:

{
    "title": "World’s Most Expensive Coffee",
    "link": "https://www.youtube.com/shorts/jGAJCAuV3pQ",
    "thumbnail": "https://i.ytimg.com/vi/jGAJCAuV3pQ/hq720.jpg",
    "views_original": "192 млн просмотров",
    "views": 192,
    "video_id": "jGAJCAuV3pQ"
}

views should be 192000000,

 {
    "title": "Obi-Wan Drinks His Coffee",
    "link": "https://www.youtube.com/shorts/VmQh26H0HFI",
    "thumbnail": "https://i.ytimg.com/vi/VmQh26H0HFI/oardefault.jpg",
    "views_original": "32 тыс. просмотров",
    "views": 32,
    "video_id": "VmQh26H0HFI"
}

views should be 32000 image Playground

Also, sometimes shorts are not parsed at all image

hartator commented 3 weeks ago

@hesoia Thanks for reporting! 👍

We'll work on a fix for the views extraction in YouTube video shorts in Russian.

I can't reproduce the shorts array being empty like this, but we'll issue a fix for this as well if we encounter it.

kagermanov27 commented 3 weeks ago

Covered in https://github.com/serpapi/SerpApi/pull/5088

alexbarron commented 4 days ago

Another customer reported the shorts_results being empty:

Intercom

I've been able to reproduce it consistently.

Playground

image

hesoia commented 2 days ago

Hello again,

Are there any ETAs on fixing empty shorts section? It has happened in every request for the last 3 days now. Seems like it stopped working completely.

NateSkiles commented 2 days ago

Hi @hesoia, unfortunately, there is no ETA for this issue at this time. However, we will be sure to provide an update here as soon as possible. Apologies for any inconvenience, and thank you for your patience while we work on a fix.