Skip to content

Fix query parameter for OpenTable Reviews and Google AI Overview - #7

Open
donelldzamara44-ops wants to merge 1 commit into
serpapi:mainfrom
donelldzamara44-ops:engine-param-names
Open

donelldzamara44-ops wants to merge 1 commit into
serpapi:mainfrom
donelldzamara44-ops:engine-param-names

Conversation

@donelldzamara44-ops

Copy link
Copy Markdown

open_table_reviews was mapped to restaurant_id, but the API's required parameter is rid and it has no restaurant_id (https://serpapi.com/open-table-reviews-api). google_ai_overview was mapped to q, but that API takes page_token and has no q (https://serpapi.com/google-ai-overview-api).

Fixed both rows in engines.ts and in the skill's references/engines.md, and added a test. Tests and typecheck pass. They run on the mocked fetch; I have no key, so no live search.

google_flights and google_travel_explore also fall back to q when they need departure_id/arrival_id. No single name fits there, so I left them.

I build with an AI coding agent instead of writing code by hand, and it made this change. I'm the one who answers here if something is off.

engines.ts sent the search text as restaurant_id for open_table_reviews and as q for google_ai_overview. The API takes rid and page_token; neither old name exists. Correct both rows, the same two rows in the skill reference, and add a test with the mocked fetch.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.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

Successfully merging this pull request may close these issues.

1 participant