The synchronous endpoint waits for the Actor run to finish and returns its default Dataset items.
Set APIFY_API_TOKEN, then run:
curl --request POST \
"https://api.apify.com/v2/acts/datascraperes~google-serp-scraper/run-sync-get-dataset-items?token=$APIFY_API_TOKEN" \
--header "Content-Type: application/json" \
--data @data/sample-input.jsonKeep the token out of shell history where possible and never commit it to the repository.