formstrap » Icon Search API

This API was created for the formstrap form editor to allow user-selection of icons for input fields utilising Bootstrap input-group addons.

formstrap is a WYSIWYG editor for creating complex, dynamic, responsive and standards compliant online forms compatible with Bootstrap 5.3.

You can use the API service to implement icon search in your own application. Search for Bootstrap Icons by name, category, class or tag. Retrieve full metadata in JSON format including icon HTML code, SVG code, class names, tags, categories and icon titles.

The service is an open API. It is rate-limited (by the IP address of the requesting device). 150 requests per hour. This will be kept under review.

Currently serving Bootstrap Icons Version: v1.11.3.

Endpoint

POST https://formstrap.com/IconSearchAPI/v1/search

property: search search string (see Search and Advanced Search tips)

Search Tips

By default, search matches whole words and will find icons matching any or all keywords.

Advanced Search Tips
  • Adding + prefix will require the term matches
    e.g. +file +word
  • Adding - prefix will require term DOES NOT match
    e.g. +people -fill
  • Adding * suffix will facilitate wildcard match
    e.g. pen*
  • Enclose in quotes for exact phrase
    e.g. "vector pen"
  • Use _ for single character wildcard matching
    e.g. organi_ation (can't be combined with other search types)

Do you find this service useful? Optionally a small contribution to running costs. Thank you

Do you have feedback, questions or suggestions? Visit the formstrap About page and click the feedback link.

Give it a try!
Run a search by entering a search string below. You'll see the results in a table - scroll down for code samples and the JSON response

Icon Search

The purpose of this search is NOT to replace Bootstrap's own icon search. It is simply a demo of how this API can be used. A further use in a live environment can be found in the formstrap form editor.

Icon Category Title Class Code Tags HTML SVG
Example Request Types
$.ajax(
	{
		method:"POST",
		url:"https://formstrap.com/IconSearchAPI/v1/search",
		data:{"search":"\"vector pen\""},
		dataType:"json"
	}).done(function(response)
	{
		if(response.responseCode==200)
		{
			// PROCESS THE RESPONSE	
		}
		else
		{
			// THERE WAS AN ERROR
			console.log(response.responseCode + ":" + response.responseVerbose);
		}
	}).fail(function(e)
	{	
		// THE REQUEST FAILED
		console.log(e)
	});