Skip to main content
To process search results, access the fields of the structured response.

Extract URLs of search results

Truncate content for a preview

This truncates content on the client. For the document’s actual highest-scoring passages, request the snippets field instead. See Get snippets. To control content length on the server instead of trimming it yourself, see Control content length.

Filter documents with URLs

Retrieve a subset of the search results