Show examples in:
Javascript HTTP

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

id string

ID of result

Example: "12adNIIB8rFJF1DoTgCk"
type string

Must be exactly "search_result".

attributes.title string

Title of the page

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

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.url string

URL

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

Search score

Example: 11.3
attributes.highlight object
title undefined
body undefined

Available endpoints