- Get works with search term "dna" in the title, abstract, or fulltext: https://api.openalex.org/works?search=dna
Fulltext search is powered by an index of word sequences called n-grams - see Get N-grams for more details.
You can read more about search here. It will show you how relevance score is calculated and how words are stemmed to improve search results.
You can use search as a filter, allowing you to fine-tune the fields you're searching over. To do this, you append
.searchto the end of the property you are filtering for:
The following fields can be searched within works:
Field that is searched
You can autocomplete works to create a very fast type-ahead style search function:
- Autocomplete works with "tigers" in the title: https://api.openalex.org/autocomplete/works?q=tigers
This returns a list of works titles with the author of each work set as the hint:
"display_name": "Crouching tigers, hidden prey: Sumatran tiger and prey populations in a tropical forest landscape",
"hint": "Timothy G. O'Brien, Margaret F. Kinnaird, Hariyo T. Wibisono",