Hot answers tagged

5

Based on a reasonable response for Stack Apps, this has now been done. Merged stack-exchange into support (which many of the questions already had) and deleted support from those posts where it didn't apply. These 24 questions were affected:     2332, 2371, 2372, 2373, 3045, 3136, 3408, 4457, 4617, 4699, 4888, 4942,     6155, 6189, ...


5

Yes. I would agree that the tag serves no purpose. With only 24 questions, let us lose it.


5

This is a bug and seems (based on a series of A/B tests) to be linked with the body_markdown property. That is, if your filter returns the tags array, it works: "items": [ { "tags": [ "batch-file", "cmd" ], "answer_id": 42292030 }, { "tags": [ "ios", "arrays", "swift" ], "answer_id": 42295110 }, etc... , unless body_markdown is also ...


4

This is very costly to do in the API and currently impossible for many combinations of tag and date (because it would require more than the 10,000 allowed API calls per day). I'll write more about that tomorrow (11/11 or 11/12 UTC). Meanwhile, perhaps a SEDE query will work? The query: Top Answerers, by your tags and your date range takes your date range ...


2

First, you'll want to go upvote the feature request to add tag search for answers, etc. (If/when you have the upvote privilege) In the meantime, for answers by tag you can use the /search/excerpts route as long as you include is:answer in the q parameter. For example:       /2.2/search/excerpts?&q=is:answer&tagged=best-in-place&...


2

Hear! Hear! I want to study what makes a good answer on SO. I started by querying complete web pages (questions with all comments, answers, and their comments) for questions with some minimum score (such as 5) for a number of fixed tags A,B,C created in some time period (say, one full week two months ago). This can be done well with \search and a filter that ...


2

At the moment the number of tags allowed on a question is 5. Both client side and server side this limit is now1 enforced at the time of posting. There is no direct limitation to allow 6 or even 7 tags. As a matter of fact, this query shows 1038 questions at the time of posting that have 6 tags. The revision for one occurrence reveals what caused that 6th ...


2

The question was not originally clear if you wanted tags or badges, but the answer is the same... To just get totals, use the total filter. For example, for badges: /badges?site=stackoverflow&filter=total, which currently returns: {"total":6363} For tags: /tags?site=stackoverflow&filter=total, which currently returns: {"total":48667} WARNING: ...


2

Do you mean something like this plot? : (Generated by SEDE: /query/201360?ShowScore=0&Tag1=excel&Tag2=python&Tag3=NA&Tag4=NA#graph) Use the data explorer (SEDE) for that. To do this with the API, is possible but not pretty. For example, to replicate the above plot you would need to make 111(Age of SO in months) API calls for python like ...


2

No, the API cannot do this. Refer to the API docs and you'll note that there is no method that can be used to compute a user's tag percentile‡. Also, it's not clear exactly how it's calculated: Many tags are not eligible. (Number of questions? Total tag score?) It might be that users with less than 200 rep are not counted. Anyway, you can get the ...


2

You need the /tags/{tags}/wikis method for this. Here is a link to the documentation page, including the necessary parameters for the JavaScript tag. By default, the body of the tag wiki isn't returned, so you'll need a custom filter. { "items": [ { "excerpt_last_edit_date": 1570698075, "body_last_edit_date": 1573208252, "excerpt": "...


2

You can't just edit the tags via the API, you have to set the body as well. For that, you need the Markdown (the body_markdown field in the filter) instead of the HTML:


2

Yes, an edit will fix that. This is because posts are stored as HTML. At the time the answer was submitted the build wasn't live. Therefor the tag wasn't a mod-only tag yet. It got no special handling. An edit will re-render the HTML and store a new version of the HTML. As the tag has now become mod-only it will render as red.


2

As of the time of this writing, there are only 5 questions tagged with ruby-on-rails but not ruby. Those are: Post Needs Framework-specific tag? geek score calculator - SO + Github on Rail No. Built with Rails, not connected otherwise (meta) Localhost test Stack App authentication: error 'redirect_uri' does not match Probably. Rails-specific but ...


1

For trends like this, the Stack Exchange Data Explorer is a better option (if you know SQL; if you don't, check out the awesome tutorial). About the only downside is that it is refreshed once per week, on Sunday morning; the API gives you real-time results. The API would be able to provide the number of questions asked in the last week for certain tags, e.g....


1

It seems that status-review is now a red moderator-only tag, although this question did keep my edit even though I'm not a moderator. status-reproduced remains a regular tag.


1

Yes, you're already doing the right thing by batching the requests to minimize the number of API calls (just group them in groups of 30 or so) but you're still limited to 300 requests per day, as per How API Keys Work (FAQ). You have to register your application (you don't even need to authenticate your user) to get a request key for it, and using that will ...


1

The /search/excerpts method supports searching by tag and returns the excerpts you're looking for:


1

No, this information is not exposed via the API (and it's not available in SEDE either). At the moment, your best bet is probably to scrape the tag notifications page, though this only works for your own account. A similar question (asking for the number of users watching a certain tag, instead of the other way around) was posted here on Meta Stack Exchange....


1

From the /questions doc: ...use the tagged parameter with a semi-colon delimited list of tags. This is an and contraint(sic), passing tagged=c;java will return only those questions with both tags... (Emphasis added) If you want questions that have either tag, use the /search route (or /search/advanced). For example: /2.2/search?tagged=google-docs-api;...


1

There is no need for a special API route, "OR" logic is easy to implement. Merely search for each term separately and then merge the results. For example, if I wanted tags that had either javascript or for-off, I'd first search for javascript(44 tags), then for for-off(2 tags), and then merge the results to get the 45 unique tag names. Here's a ...


1

You can do this on the API with far less than 120K requests. Just use a different approach. Instead of getting a total for every single month, offload that work to your app. Use a /search query to get the questions for the whole interval in question. EG: /search?pagesize=100&fromdate=1329523200&todate=1487376000&sort=creation&tagged=...


1

There seem to be 2 or 3 effects, the biggest is that the Tags page also shows Synonyms. There may also be a small cache effect, but there seems to be another discrepancy as well, possibly an error/bug. You can see that the Tags page also shows Synonyms by: Go to the Tags page. Enter userscr in the Type to find tags: box. You will see something like: Then ...


1

The API is not a good tool for this (more below). Use the Stack Exchange Data Explorer (SEDE) for this kind of bulk analysis. For example, this SEDE query shows the number of unique users who asked and/or answered in the PHP tag: Unique, Overall, Active Users: 384,835 Active Question Askers: 256,140 Active Answerers: 209,108 ...


1

While this isn't possible with the API, it is possible with SEDE, if you allow for up to 7 days of lag. Here is the SEDE Query that lists Tag wiki and excerpts in descending edit date order: select t.id , t.tagname , concat('site://tags/' , tagname , '/info' , '|' , case when w.lasteditdate > e.lasteditdate ...


1

I think that for that route, fromdate and todate specify the range for the creation date of the tag (if they do anything at all, since tag creation information isn't usually made public anywhere) since they always reflect the bounds of the creation_date field. Instead, for your use case, you should use the activity sort with the min and max parameters. This ...


1

It's not easy to get this via the API, a SEDE query is the better tool for the job here. If you need to do it via the API: Start with the excerpt search; it has parameters user and tagged which you can use to get the relevant posts. (The parameter user states the user must own the question, but that's wrong, they must own the post.) You'd have to paginate,...


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