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 7653

Questions handling comments using the API. Or, posts of Scripts / Apps / Libraries that facilitate dealing with comments on Stack Exchange sites.

3 votes
Accepted

How do display names relate to at-mentions?

See "How do comment @replies work?" and "@Peter works for Péter Török?". Comment replies will often work with unicode. EG: Péter Török can be reached by both @Peter and @Péter. These are the docum …
Brock Adams's user avatar
1 vote
Accepted

Can I retrieve question comment count as part of a search query?

See the question object. comment_count has been available since API version 2.2 but it is not returned by default. You must create and use a custom filter that includes comment_count. So:         /2 …
Brock Adams's user avatar
1 vote
Accepted

Share short link to comment

.+/); if (commentNum && commentNum.length > 1) { var commentNum = commentNum[1]; jNode.attr ("href", '/posts/comments/' + commentNum) jNode.append ('<small> sl</small>') …
Brock Adams's user avatar
1 vote

Comments have incorrect `can_flag` values for at least 2 different API routes

I can't replicate the bug as stated; both /questions/{ids} and /comments/{ids} give the same results which are: can_flag is false for my comments.   … (Correct behavior) can_flag is true for comments posted by others.   (See next item) can_flag is true even for comments that I have an active flag on.   …
Brock Adams's user avatar
2 votes

API v2.1 supports write access, but is anyone using it?

There are at least a few examples in use, of API 2.1 apps, that write comments. … See: The Quick Media Solutions app The StackX Android app The SX.el Emacs app Re: Am I correct in thinking that only comments can be written and not questions? Yes, that's correct. …
Brock Adams's user avatar
5 votes
Accepted

Why is comment_count=1 (incorrectly) when this particular filter is used?

Confirmed the bug on a post that accrues comments much slower than a typical Stack Overflow question does. Currently, the OP's filter returns "comment_count": 1 on that post. There are no comments. … I believe this is a side-effect/bug/quirk with how the API appears to be counting the comments. …
Brock Adams's user avatar
17 votes
0 answers
274 views

Get Comment markdown, copy comment code to clipboard

About: This userscript adds flyover buttons to every comment to fetch that comment's code (markdown). Reference this post, and this post on Meta Stack Overflow. Features: The markdown is pas …
Brock Adams's user avatar
3 votes

Field "comment_count" is not always returned by API

This appears to be closely related to the bug: Why is comment_count=1 (incorrectly) when this particular filter is used?. The workaround from there -- altering the filter by: selecting comment.comm …
Brock Adams's user avatar
1 vote
Accepted

Get everything touched by a user?

As a bonus, comment text is already included in the detail property for comments. Optionally, query /users/{ids}/mentioned too. …
Brock Adams's user avatar