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

google sheets copy and paste formula get Oops field not found #1335

Closed
pleabargain opened this issue Jan 4, 2024 · 2 comments
Closed

google sheets copy and paste formula get Oops field not found #1335

pleabargain opened this issue Jan 4, 2024 · 2 comments

Comments

@pleabargain
Copy link

Here's the formula

=SERPAPI_RESULT("engine=google&q=new flights&location=Jeddah, Makkah Province, Saudi Arabia&google_domain=google.com.sa&gl=sa&hl=en&tbm=nws", "suggestions.0.value")

plugin is installed
API key is active

image

@hartator
Copy link
Contributor

hartator commented Jan 4, 2024

Oops field is not found: suggestions (selector: suggestions.0 value means that this search doesn't have suggestions results unfortunately.

Maybe try different search parameters?

@hartator hartator closed this as completed Jan 4, 2024
@hilmanski
Copy link

hilmanski commented Jan 5, 2024

Hi @pleabargain
The suggestions.0.value is just a template. You should change it to the actual value you want to retrieve. For example, based on the result here: https://serpapi.com/playground?engine=google_flights&departure_id=CDG&arrival_id=AUS&gl=us&hl=en&currency=USD&outbound_date=2024-01-06&return_date=2024-01-12

Here is the JSON structure result:
CleanShot 2024-01-05 at 11 24 48@2x

So to get the first value, we need to replace the suggestions.0.value with best_flights.0.flights.0.departure_airport.name

Here is a basic tutorial on using our Google Sheets extension: https://serpapi.com/blog/connect-serp-api-with-google-sheet-no-code/

If you have any technical questions on using SerpApi, feel free to contact us at contact@serpapi.com

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

4 participants