Instantly Search FB Marketplace With Multiple Search Queries Using Auto Hot Key

Posted by

My previous posts involving Auto Hot Key are Spellcheck on the Fly Everywhere and using Auto Hot Key to augment eBay listings.

Back in the day you used to be able to search Facebook Marketplace for something, save search queries and then get notifications when new items were listed. I.E a saved search. This functionality seems to have been removed some time ago for unknown reasons (it was at the time of this writing anyway). Please let me know in the comments if this has changed again.

To get around this lack of functionality I thought it a useful time saver to be able to automate several FB Marketplace search queries to one simple double click to run all of them instantly using a super simple Auto Hot Key script. This concept could also be easily applied to any other platform, for example eBay or Gumtree with some tweaking.

So I double click the Auto Hot Key script icon on my desktop:

And the browser opens all windows at once each with its respective search query:

You need Auto Hot Key running on your computer to make this work. Applies to Windows running PCs. Available at: https://www.autohotkey.com/

Here is the code, it is super easy. First search FB Marketplace for what you are looking for. Then copy and paste the whole URL, into the script between “URL” as per the code below in bold italics. Then just copy this URL and modify the search terms to whatever you are looking for each time. Need a new search? Just add a new line. Save the script and your ready to go.

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.


run, "https://www.facebook.com/marketplace/1XXX0/search/?query=Hero Quest &vertical=C2C&sort=BEST_MATCH"
run, "https://www.facebook.com/marketplace/1XXX0/search/?query=Cashflow &vertical=C2C&sort=BEST_MATCH"
run, "https://www.facebook.com/marketplace/1XXX0/search/?query=Leverage Board Game &vertical=C2C&sort=BEST_MATCH"
run, "https://www.facebook.com/marketplace/1XXX0/search/?query=Dungeons Dragons &vertical=C2C&sort=BEST_MATCH"
run, "https://www.facebook.com/marketplace/1XXX0/search/?query=Dungeons and Dragons &vertical=C2C&sort=BEST_MATCH"
run, "https://www.facebook.com/marketplace/1XXX0/search/?query=Hemnes &vertical=C2C&sort=BEST_MATCH"
run, "https://www.facebook.com/marketplace/1XXX0/search/?query=Genuine Printer Ink &vertical=C2C&sort=BEST_MATCH"
run, "https://www.facebook.com/marketplace/1XXX0/search/?query=HP Ink &vertical=C2C&sort=BEST_MATCH"
run, "https://www.facebook.com/marketplace/1XXX0/search/?query=Magic The Gathering &vertical=C2C&sort=BEST_MATCH"

My previous posts involving Auto Hot Key are Spellcheck on the Fly Everywhere and using Auto Hot Key to augment eBay listings.

Leave a Reply