Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 78873

Questions about the Stack Exchange API *only*. If your question concerns any other API, do not use this tag. For bugs, please (also) use the version tag, EG [api-v2.2], that the bug applies to.

3 votes

Fetch all questions of a particular tag from the Stack Exchange API in Python

once with only the total field in the filter (and obviously with the error handling-related ones) to get the total according to the API. … The backoff field, when present, is guaranteed by the API to be an integer — while nothing stops you from proofing the program against the API going mad, at the point of it violating explicit contracts …
0Valt's user avatar
  • 1,434
2 votes
Accepted

How can I retrieve the reputation I (or another user, fwiw) earned for a given tag from ques...

After retrieving the list of reputation changes, you need to extract the post ids, uniquify them (to avoid extra API calls as the query is heavy as is), fetch the /questions batch endpoint to get the list … The following snippet demonstrates how one could convert this idea into working code: Important note: depending on your activity levels, the number of API calls might be a little heavy, please account …
0Valt's user avatar
  • 1,434