Create your own custom searches

Custom searches are a great way to customise Alfred by adding searches for sites you love to use.

First, use the web searches

Before jumping into Custom Searches, have a look at the dozens of web searches in the preferences. We've included a stack of standard searches you're likely to want to use. Simply type the keyword followed by your search term.

maps keyword search

Create your own custom web searches

There are no doubt websites you want to search that we haven't included. In that case, it's time to create your own custom searches!

image

Using OpenSearch and SearchAction

If you're lucky, the site you want to add a custom search for may support OpenSearch and SearchAction standards. Type in the main URL for the website and click Lookup at the right end of your Search URL bar and Alfred will then discover the custom search format for you.

Adding a Custom Search URL manually

If the site doesn't support the standards above, adding a custom search manually is easy too.

The key to creating a custom web search is to work out the search URL for that site. In this example, we'll create a custom search for the Stack Overflow online community.

Simply do a search and replace the search term you used with {query} like so:

https://stackoverflow.com/search?q={query}

Fill in these details in Alfred Preferences > Features > Web Search > Add Custom Search.

Stack Overflow custom search

Most website addresses encode spaces as %20, but some do it with a + or sometimes another character. Edit the Encode spaces as option accordingly.

You may need to experiment a little, as every website is different. Use the Test button to quickly search the website and check if you've got it right.

If you can't work out the URL you need to use, pop by the Alfred forum where fellow Alfred users can help you work out your query.

More Custom Search Examples

Once you've familiarised yourself with custom searches, you'll be able to use them to create tons of useful searches, such as these:

Search WallpapersWide for beautiful background images:

http://wallpaperswide.com/search.html?q={query}

Search Reddit.com:

https://www.reddit.com/search?q={query}

Search Apple Developer documentation:

https://developer.apple.com/search/index.php?q={query}

Track packages from your favourite shipping companies:

https://www.packagetrackr.com/track/{query}

Searching apps on your Mac

There's more than one flavour of custom searches; you can also create them for applications on your Mac. Here are a few of our favourite ones:

Spotify in-app search:

spotify:search:{query}

Mac App Store:

itms-apps://search.itunes.apple.com/WebObjects/MZSearch.woa/wa/search?term={query}

Facetime:

facetime://{query}

Not all apps offer an application URI so it's worth digging around or contacting the developer of the app.

A custom search without a query

Did you know that your custom "searches" can in fact not be searches at all? Launch any website with a custom keyword by saving it in Alfred's custom searches.

Launch Instagram:

https://www.instagram.com

Read the XKCD web comic:

https://xkcd.com

Share your searches

Want to swap custom searches with friends? Use the Copy URL for sharing button to copy the custom search and share it with other Alfred users. To import a custom search, click on any special URL starting with alfred:// and you'll see a pop-up asking if you'd like to import the custom search.

Custom Search Import

Websites change and evolve, so searches that worked in the past may stop working. If this happens, take a look at the website you created the custom search for and go through the steps above again. It's likely that the exact search URL has changed, so you'll need to update your custom search accordingly.