invidious icon indicating copy to clipboard operation
invidious copied to clipboard

[Bug] Search API: description and descriptionHtml always empty

Open elblogbruno opened this issue 4 months ago • 1 comments

Describe the bug When querying the search endpoint on my Invidious instance, the description and descriptionHtml fields are always empty. This happens even if I add the parameter extend_desc=true (that i believe its an ui variable)

Example request:

https://instance.com/api/v1/search?q=test&type=video&sort_by=relevance&page=1&extend_desc=true

Response snippet (truncated for clarity):

{ "title": "…", "videoId": "…", "author": "…", "viewCount": 16453, "description": "", "descriptionHtml": "" }

Steps to Reproduce Run a search query against an Invidious instance, e.g. https://instance.com/api/v1/search?q=camara&type=video&sort_by=relevance&page=1&extend_desc=true

Check the JSON response for any of the returned videos.

Notice that description and descriptionHtml are always empty.

Logs

Screenshots

Additional context Issue persists across multiple queries and video results.

Browser/OS not relevant (bug is in API response).

elblogbruno avatar Sep 02 '25 10:09 elblogbruno

Seems like where the description used to be stored on the youtube JSON, is no longer there and it changed completely.

Now is inside detailedMetadataSnippets.snippetText:

"detailedMetadataSnippets": [
    {
        "snippetText": {
            "runs": [
                {
                    "text": "Pass with 30 correct answers 🤯\n\nPlayQuiz Networks 🌎:\n-TWITCH: https://www.twitch.tv/playquiz\n-TIKTOK: https://www.tiktok.com ..."
                }
            ]
        },
        "snippetHoverText": {
            "runs": [
                {
                    "text": "From the video description"
                }
            ]
        },
        "maxOneLine": false
    }
],

Is just a small description, although I'm not really sure if before it used to be a long description or something like that.

Fijxu avatar Sep 02 '25 15:09 Fijxu