Show examples in:
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

id  string
ID of result
type  string
Must be exactly "search_result"
title  string  Example: "Florence Apartments for Rent | Long Term Student Accommodation Rentals"

Title of the page

body_excerpt  string  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..."

First 200 characters of page body, unformatted

url  string  Example: "http://www.website.com/some-page"

URL

score  number  Example: 11.3

Search score

highlight  object

Available endpoints