Query parameters in chatgpt

I have made an incredible discovery.

I haven’t seen much people talk about this, but this is extremely useful and I don’t know why more people are talking about this.

This will be extremely useful for automators, people who build shortcuts (e.g. like in iOS) and in my case, I’m currently building a custom Chrome extension that allows you to seamlessly switch between Google and ChatGPT on your own homepage with ChatGPT as a speed dial on your Newtab, without having to replace Google in your search bar—best of both worlds! (if anyone is interested in that let me know)

How it works
The format is straightforward:

https://chatgpt.com/?q={searchTerms}&hints=search

• Replace {searchTerms} with your desired query, and ChatGPT will open with the input pre-filled.

• Adding &hints=search allows direct access to SearchGPT (for Plus users), combining AI capabilities with live web results!

These are REALLY COOL and they should be used more often! A speed dial for ChatGPT that gives instant access to the app, as long as you have a param!

Spread the word soldiers :saluting_face:

4 Likes

Thank you so much, I was looking for that!!!
I’ve managed to improve it by making the search a temporary chat in GPT so it doesn’t flood my history.
https://chatgpt.com/?q={searchTerms}&hints=search&temporary-chat=true

Hope this helps.

5 Likes

Does that also work somehow with a custom GPT?

I’ve been trying to use the model parameter, but no success yet. I’ll keep trying though

Is this something generic, or is there any documentation where you can find the parameter info? , because I see that they work for more URLs like perplexity and Gemini.

Is there some Python package that utilizes that to allow cli use for this?

Okay, now there is - GitHub - Andrej730/chatgpt-query
I guess source code is also somewhat small documentation for existing url parameters.

anyone know if you can use query parameters for search terms to call a ChatGPT app (in development) as well.

e.g. https://chatgpt.com/?prompt=@[myapp]+i+need+a+new+ride

Whenever I try this, it doesn’t auto-recognize the app call “[myapp]”, was curious if anyone knew any tricks to do this if its supported.

Seems to work for officially listed apps

These structures work for me with a live app e.g. Spotify, if the user is logged into chatgpt (which seems associated with access to attaching apps to prompts, but don’t quote me on that). But does anyone know how to get the prompt to go ahead and submit in this case?

https://chatgpt.com/?prompt=@Spotify+generate+me+a+rad+2026+playlist+2026&model=auto

or even better URL encode your ‘@’ app caller explicitly https://chatgpt.com/?prompt=%40Spotify+generate+me+a+rad+2026+playlist+2026&model=auto

the typical ?q also works and auto updates to ?prompt for me: https://chatgpt.com/?q=%40Spotify+generate+me+a+rad+2026+playlist+2026&model=auto

When I ran some without the app reference, and in logged out state, I could get similar syntax to auto-send the prompt. Is the logged in state the difference or anyone found another way, or does the user just need to click to confirm sending it (and that’s not so horrible)? I tried these with and without the temporary chat and other options mentioned above.