Hot answers tagged

3 votes

How can I retrieve the reputation I (or another user, fwiw) earned for a given tag from questions and answers?

It is easier to use the /users/{id}/top-tags (JSON) endpoint for a single user. That will give you for a given user all their tags with score and count for question and answers. Don't let the "...
  • 1,810
3 votes

Is there any way to get statistics by tag?

At this point our API only offers the following reading capabilities around tags: (https://api.stackexchange.com/docs) Unfortunately, the Dashboard can't be filtered to Tags.
  • 131
3 votes

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

The first thing to point out is that you should understand that fetching all posts with a tag is going to result in huge quota usage for any relatively popular tag , as well as take a significant ...
3 votes
Accepted

How can I quickly get an access token for personal use?

It's possible to authenticate yourself via the command line; there's no need to set up a website or so. Open the application page via https://stackapps.com/apps/oauth and make sure the option 'Enable ...
  • 5,552
3 votes
Accepted

When using the Advanced Search API endpoint, how soon after the edit grace period is question data updated?

tl;dr: I think you can reduce the delay to 8-10 minutes. Grace period edits are available for 5 minutes after post creation and search results can be stale for a few minutes afterwards, especially ...
  • 358
3 votes
Accepted

How do I see the differences between two or more SE API filters and merge into a filter which includes all requested properties (i.e. is a superset)?

To make it easier to merge filters, I wrote the following snippet. The detailed differences between each two filter combinations are a bit unwieldy to display in the snippet space, so they are output ...
  • 1,388
2 votes
Accepted

How can I retrieve the reputation I (or another user, fwiw) earned for a given tag from questions and answers?

As a more involved alternative, there is a dedicated endpoint for retrieving reputation changes - /reputation. It returns a list of Reputation objects, each having a post_id and reputation_change ...
2 votes
Accepted

"is_edited": false or "is_edited": true as an option in the API response

There is a last_edited_date on questions, answers and posts. If it's empty (and you did include it in your filter), it hasn't been edited. Comments have a built-in edited field which seems to be what ...
  • 5,552
2 votes
Accepted

How do I search answer bodies for Markdown links?

The search methods work on the HTML version of the post, so searching for Markdown won't work. You can either use this parameter url - a url which must be contained in a post, may include a wildcard. ...
  • 5,552
1 vote

JSONDecodeError: Expecting value: line 3 column 1 (char 3)

That URL is the URL of the documentation page, so you'll get HTML back and not JSON. You'll need to replace it with the URL next to the 'Run' button (right-click and choose Copy Link, it should start ...
  • 5,552
1 vote
Accepted

Why does this minimal filter return no results at all?

Every response from the API contains a wrapper, with information about potential errors, your daily quota, and the actual results, which are in the items field. If you check that box: and hit Save, ...
  • 5,552
1 vote
Accepted

How to get all communities a user is associated with?

Yes, that's what the associated users operation does: It needs the network account ID of a user, which can be found in the URL of a network profile or you can retrieve it via an API call to users by ...
  • 5,552
1 vote

How to get statistic data for specific tags which belong to a specific team?

You can use the /questions method, which allows filtering by tag: To constrain questions returned to those with a set of tags, use the tagged parameter with a semi-colon delimited list of tags. This ...
  • 5,552

Only top scored, non community-wiki answers of a minimum length are eligible