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

Songs are inconsistent in end JSON. #15

Open
ljharnish opened this issue Feb 24, 2023 · 8 comments
Open

Songs are inconsistent in end JSON. #15

ljharnish opened this issue Feb 24, 2023 · 8 comments

Comments

@ljharnish
Copy link

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
Copy link
Author

ljharnish commented Feb 24, 2023

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
Copy link
Contributor

dimitryzub commented Feb 24, 2023

@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

@ljharnish
Copy link
Author

ljharnish commented Feb 24, 2023

@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
Copy link
Contributor

@ljharnish Thank you 👍

but on my site it is still incorrect

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

@ljharnish
Copy link
Author

@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
Copy link
Contributor

@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
Copy link
Author

@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
Copy link

ilyazub commented Jun 28, 2024

@ljharnish thanks for your feedback. 👍 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: serpapi/public-roadmap#1735

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants