Stack Overflow

Search Stack Overflow question titles

Search Stack Overflow questions whose title is closest to a title.

GET/v1/stack-overflow/questions/title-search
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
3
titlestringrequiredquery

A question title or the words of one, at least two words. The site matches it against the titles of similar questions, as it does while a title is being typed.

min 3 chars · max 150 chars

taggedstringoptionalquery

Only questions with this tag.

min 1 chars · max 35 chars · pattern: ^[^\s;,%/?&=]+$

sitestringoptionalquery

Stack Exchange site, by its API name (`askubuntu`, `serverfault`, `math`, `ru.stackoverflow`). Default: `stackoverflow`. The sites endpoint lists them all.

Response fields
18

Endpoint-specific response payload.

datasite
string

The site that was searched.

Up to 25 questions with similar titles. There is no next page.

datamatches[]id
integer

Question id.

datamatches[]url
string

Link to the question.

datamatches[]slug
stringnullable

The title as it appears in the URL.

datamatches[]title
stringnullable

Question title, with HTML entities decoded.

datamatches[]excerpt
stringnullable

The start of the question text.

datamatches[]answerCount
integernullable

Answers.

datamatches[]hasAcceptedAnswer
booleannullable

Whether an answer is accepted.

datamatches[]askedAt
stringnullable

When it was asked, ISO 8601 UTC.

Who asked it; null when the row does not name the author.

datamatches[]authorid
integernullable

User id.

datamatches[]authorname
stringnullable

Display name.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/stack-overflow/questions/title-search?title=how%20to%20parse%20json%20in%20python" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Questions with similar titles.