GET search/advanced

stackexchange.com:mathoverflow-api

Summary: Advanced search on MathOverflow
Operation ID: advancedSearch
Auth: none

Advanced search for MathOverflow questions with multiple filter criteria. Supports searching by title, body text, tags, date ranges, score ranges, and answer status. This is the most powerful search endpoint — use it for complex queries like 'unanswered questions about algebraic geometry with score > 5'. Combines all criteria with AND logic.

Original spec description

Advanced search with additional filtering options

Usage Tips

- `site=mathoverflow` is required - `q` parameter does full-text search (title + body) - `tagged` accepts semicolon-separated tags (OR) or plus-separated (AND) - `nottagged` excludes specific tags - `answers` can be 0 (no answers), 1+ (has answers), or omitted - `accepted` can be True/False to filter for accepted answers - `min` and `max` with `sort=votes` for score range queries - Date filters `fromdate` and `todate` use Unix timestamps

Parameters (20)

accepted (string, query, optional)

true for questions with accepted answers

Constraints: {'enum': ['true', 'false']}

body (string, query, optional)

Text to search in body

filter (string, query, optional)

Filter to apply to results

fromdate (integer, query, optional)

Start date (Unix timestamp)

key (string, query, optional)

API key for higher rate limits

max (integer, query, optional)

Maximum value for sort field (Unix timestamp)

min (integer, query, optional)

Minimum value for sort field (Unix timestamp)

nottagged (string, query, optional)

Tags to exclude

order (string, query, optional, default: desc)

Sort order

Constraints: {'enum': ['asc', 'desc']}

page (integer, query, optional, default: 1)

Page number for pagination

pagesize (integer, query, optional, default: 30)

Number of items per page (max 100)

Constraints: {'maximum': 100}

q (string, query, optional)

Free text search query

site (string, query, required, default: mathoverflow)

Site to query (mathoverflow for MathOverflow)

sort (string, query, optional)

Sort field

Constraints: {'enum': ['activity', 'votes', 'creation', 'relevance']}

tagged (string, query, optional)

Tags to include

title (string, query, optional)

Text to search in title

todate (integer, query, optional)

End date (Unix timestamp)

url (string, query, optional)

Text to search in URLs

user (integer, query, optional)

User ID who asked the question

views (integer, query, optional)

Minimum view count

Examples (3)

TitleTypeURLAction
Basic search for algebraic geometry questions curl https://api.stackexchange.com/2.3/search/advanced?q=algebraic+geometry&site=mathoverflow
Search with sorting by votes and pagination curl https://api.stackexchange.com/2.3/search/advanced?q=number+theory&site=mathoverflow&sort=votes&order=desc&pagesize=10
Search by title containing 'Riemann' curl https://api.stackexchange.com/2.3/search/advanced?title=Riemann&site=mathoverflow&sort=creation&order=desc

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-03-23 10:15:27.363136 200 294ms
2026-03-23 09:19:19.643125 200 420ms
2026-03-23 09:17:41.624801 200 560ms

Response Changes

WhenOldNew
2026-03-23 09:19:19.643125 a396647ac3d3 e6f61c5f4d8f
2026-03-23 10:15:27.363136 e6f61c5f4d8f 710e9e64a3c7