Show examples in:
JavascriptHTTP
Content Management API > Search result

Search result

DatoCMS Site Search is a way to deliver tailored search results to your site visitors. This is the endpoint you can use to query for results.

Object payload

idstring

ID of result

Example:"12adNIIB8rFJF1DoTgCk"
typestring

Must be exactly "search_result".

attributes.titlestring

Title of the page

Example:"Florence Apartments for Rent | Long Term Student Accommodation Rentals"
attributes.body_excerptstring

First 200 characters of page body, unformatted

Example:"Finding a place to live while planning to study abroad in Florence can be both exciting and challenging. With this in mind, Housing in Florence assists you in finding conveniently-located housing based..."
attributes.urlstring

URL

Example:"http://www.website.com/some-page"
attributes.scorenumber

Search score

Example:11.3
attributes.highlightobject
title
Type:Array<string>, null
body
Type:Array<string>, null

Available endpoints