serpapi / google-search-results-nodejs

SerpApi client library for Node.js. Previously: Google Search Results Node.js.
https://serpapi.com
MIT License
75 stars 21 forks source link

Songs are inconsistent in end JSON. #15

Open ljharnish opened 1 year ago

ljharnish commented 1 year ago

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 commented 1 year ago

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.

dimitryzub commented 1 year ago

@ljharnish thank you for opening this issue.

image

ljharnish commented 1 year ago

@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.

dimitryzub commented 1 year ago

@ljharnish Thank you 👍

but on my site it is still incorrect

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

ljharnish commented 1 year ago

@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.

dimitryzub commented 1 year ago

@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.

ljharnish commented 1 year ago

@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.

ilyazub commented 6 days ago

@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)