google-search-results-nodejs icon indicating copy to clipboard operation
google-search-results-nodejs copied to clipboard

Songs are inconsistent in end JSON.

Open ljharnish opened this issue 2 years ago • 8 comments

After getting results, in knowledge_graph, sometimes a songs artist will come up as artis and not artist. image

Also, when getting a song from answer_box, it will sometimes mix up all the data like this: image That video link also was not there the last time I ran this. Please fix these if you can.

ljharnish avatar Feb 24 '23 04:02 ljharnish

~~For some reason, even though I set my location to the US, it is giving me Indonesian results when searching for Lucid Dreams. This explains the artis and dengarkan.~~

~~Looking through search_parameters shows that it did not at all take the location into account.~~ Had the wrong parameter set.

The answer_box is still inconsistent though. Now it won't show up at all on the song shown in the main post.

ljharnish avatar Feb 24 '23 04:02 ljharnish

@ljharnish thank you for opening this issue.

  • Could you clarify which engine are you using? From what I understand it seems to be a Google Search API.
  • What exactly are you trying to get from the results?
  • Could you give us (paste in the comment) an inspect link so we can take a deeper look? https://serpapi.com/searches

image

dimitryzub avatar Feb 24 '23 05:02 dimitryzub

@dimitryzub I'm using the Google Search API, yes. I'm trying to get the song data from the answer to show it on my site. Here's the inspect link: https://serpapi.com/searches/63f83c959bddf791fe648b8d/inspect Looking at that link myself, it looks correct but on my site it is still incorrect.

ljharnish avatar Feb 24 '23 11:02 ljharnish

@ljharnish Thank you 👍

but on my site it is still incorrect

Could you explain what you meant by saying "incorrect"?

dimitryzub avatar Feb 28 '23 06:02 dimitryzub

@dimitryzub On my site, the values in answer_box are still scrambled into other keys. Even though the values are uncrambled in the inpect page.

ljharnish avatar Feb 28 '23 11:02 ljharnish

@dimitryzub On my site, the values in answer_box are still scrambled into other keys. Even though the values are uncrambled in the inpect page.

@ljharnish could you please have a look at the illustrations below? Did you have any misunderstandings with this?

image

image

@kagermanov27 @tanys123 could you guys have a look whenever you can? Is it as how it is supposed to be? Inspect page.

If it's not as supposed to be, we can create an issue on public-roadmap.

dimitryzub avatar Mar 02 '23 08:03 dimitryzub

@dimitryzub Yes, I uderstand those. The data is correct, its just not in the correct place: DevTools Screenshot

The album value has the data from the released, the artist has the data from the actual album, and the released has the entire artist in it.

ljharnish avatar Mar 02 '23 12:03 ljharnish

@ljharnish thanks for your feedback. :+1: I'm sorry for the late reply.

Please use the correct data from the knowledge_graph.album and knowledge_graph.released. image

The answer_box.album and answer_box.released are incorrectly parsed indeed. I created an issue in our public roadmap: https://github.com/serpapi/public-roadmap/issues/1735

image (ref: https://serpapi.com/playground?q=XXXKIRBY)

ilyazub avatar Jun 28 '24 16:06 ilyazub