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

KeyError when Calling Answer Box #18

Closed
beingskyler opened this issue Jan 24, 2021 · 1 comment
Closed

KeyError when Calling Answer Box #18

beingskyler opened this issue Jan 24, 2021 · 1 comment

Comments

@beingskyler
Copy link

I've attempted to get the results from the answer box using the documentation here.

I noticed the Playground does not return these results either.

Is there any way to get this URL also?

Output Returned when Attempting to Run the Sample Provided:

from serpapi import GoogleSearch

params = {
  "q": "What's the definition of transparent?",
  "hl": "en",
  "gl": "us",
  "api_key": ""
}

search = GoogleSearch(params)
results = search.get_dict()
answer_box = results['answer_box']
@ilyazub
Copy link
Contributor

ilyazub commented Apr 14, 2021

Hi @ag-skyler. This was fixed some time ago.

image

(Sorry for the delay in the response. You can open bug reports on https://forum.serpapi.com, we're checking these boards on a daily basis.)

@ilyazub ilyazub closed this as completed Apr 14, 2021
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

2 participants