CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 12:15:55 GMT
content-type: text/html; charset=utf-8
cache-control: private
set-cookie: prov=f52aa3e1-4fd9-42af-89cd-766e2dade12f; expires=Mon, 27 Jul 2026 12:15:55 GMT; domain=.stackexchange.com; path=/; secure; httponly
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=31536000; includeSubDomains
x-request-guid: 3b039429-6b8d-4b79-894d-f4762033fb61
x-providence-cookie: f52aa3e1-4fd9-42af-89cd-766e2dade12f
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=jfB6vbpgW5IZKDU2RZQtLutAMAjBFI7sEICKm.lSsYA-1753618555-1.0.1.1-i6GbZTki4eMVCSibawL8o2XEa.Dv8MbzCSOpBZuXMuwpCryyemRuIBhw3SNXR_kQffYxxJAmvQM2wZ0PVhu2seq7XfarHPhwSP2peYzm0RE; path=/; expires=Sun, 27-Jul-25 12:45:55 GMT; domain=.api.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: __cflb=02DiuEqtkS4jGaTk6jRLVowZ76Z4qeo49pKqaQmyqzdVv; SameSite=None; Secure; path=/; expires=Mon, 28-Jul-25 11:15:55 GMT; HttpOnly
set-cookie: _cfuvid=ANYExRfPbot7FeyuSwR8C_1XfCAmz2Na7R8ZVMZl_rQ-1753618555874-0.0.1.1-604800000; path=/; domain=.api.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 965c10a16b9fcf00-BLR
content-encoding: gzip
Usage of /search/excerpts [GET] -
Stack Exchange API
It is possible to create moderately complex queries using
https://stackoverflow.com/oauth/dialog?client_id=1&key=U4DMV*8nvpm3EOpvf69Rxw((&redirect_uri=https%3a%2f%2fapi.stackexchange.com%2fdocs%2foauth_landing
U4DMV*8nvpm3EOpvf69Rxw((
Usage of /search/excerpts GET
Discussion
Searches a site for items which match the given criteria.
The returned search_excerpts have a snippet of the relevant results. Within the results, any text surrounded by <span class="highlight"> is of particular interest.
Search criteria are expressed using the following parameters:
q
- a free form text parameter, will match all question properties based on an undocumented algorithm.accepted
- true to return only questions with accepted answers, false to return only those without. Omit to elide constraint.answers
- the minimum number of answers returned questions must have.body
- text which must appear in returned questions' bodies.closed
- true to return only closed questions, false to return only open ones. Omit to elide constraint.migrated
- true to return only questions migrated away from a site, false to return only those not. Omit to elide constraint.notice
- true to return only questions with post notices, false to return only those without. Omit to elide constraint.nottagged
- a semicolon delimited list of tags, none of which will be present on returned questions.tagged
- a semicolon delimited list of tags, of which at least one will be present on all returned questions.title
- text which must appear in returned questions' titles.user
- the id of the user who must own the questions returned.url
- a url which must be contained in a post, may include a wildcard.views
- the minimum number of views returned questions must have.wiki
- true to return only community wiki questions, false to return only non-community wiki ones. Omit to elide constraint.
At least one additional parameter must be set if nottagged
is set, for performance reasons.
The sorts accepted by this method operate on the following fields of the search_excerpt object:
- activity –
last_activity_date
- creation –
creation_date
- votes –
score
-
relevance – matches the relevance tab on the site itself
- Does not accept
min
ormax
- Does not accept
activity
is the default sort.It is possible to create moderately complex queries using
sort
, min
, max
, fromdate
, and todate
.
This method returns a list of search_excerpts.
Try It
about blog terms of use contact us feedback always welcome
site design / logo © 2025 Stack Exchange, Inc; user contributions licensed under CC BY-SA