Questions tagged [filter]
Questions about the creation, manipulation, and usage of Filters - which were introduced in v2.0 of the API.
29
questions
3
votes
1
answer
31
views
getting answer body and question body in same request [duplicate]
I'm trying to get only questions and answers.
I filtered the fields, to get also the body of answers, but I don't get an answers JSON object.
What am I missing?
I know about this question, but I don'...
1
vote
1
answer
60
views
Why does this minimal filter return no results at all?
I tried to create a 'minimal' filter
https://api.stackexchange.com/docs/questions#order=desc&sort=activity&filter=!34JvAEfIUyU-&site=stackoverflow&run=true
for the 'question' object, ...
4
votes
1
answer
74
views
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)?
For SmokeDetector, we have several SE API filter values in use. Notably, there are separate filters for the /answers/*, /questions/* and /posts/* routes. From an organizational standpoint, I'd like to ...
3
votes
1
answer
83
views
Take the right filter for favourite count
I try to take the favourite count filter for a question.
I use api through R
library(stackr)
stack_questions(11227809, site = "stackoverflow", filter = "!GeD4JB*YQqe2L")
and I ...
4
votes
1
answer
393
views
My filter is not returning any results. How to create a minimal filter?
I'm having trouble getting the SO API Filters to cooperate. I've gone over the documentation as well as similar questions like this and this.
I'll use this call as an example since it successfully ...
1
vote
1
answer
60
views
Can I pass a filter to a write method?
I was wondering if I'm allowed to pass a filter to methods that use write access? Like for example /answers/{id}/accept. There is no "filter" parameter, and changing the filter doesn't seem to change ...
6
votes
1
answer
145
views
Field "comment_count" is not always returned by API
I am making a request with a custom filter that includes the "comment_count" field of the question type. My custom filter is !RtdMEtslKF6Z()NqpDUFZ58R6twu-.4V48gn0furqA*7_BL1.
However, when I'm ...
2
votes
1
answer
112
views
Can I pass multiple filters?
I've tried adding filter=total and filter=withbody in the same request but get the following error:
{"error_id":400,"error_message":"Invalid filter specified","error_name":"bad_parameter"}
How ...
4
votes
1
answer
610
views
How to create API filters?
I used the following request link to extract data from the Stack Exchange API. But I have no idea how to create "filter" as used in the request line.
Please help me understand the creation of such ...
2
votes
1
answer
53
views
Where are the built-in filters?
On api.stackexchange.com/docs/create-filter it states:
there are a number of built-in filters which cover common use cases.
Where can I find them? Can you make built-in filters a link?
I need ...
5
votes
0
answers
136
views
Filter doesn't consistently return comment bodies
I've been trying to set up a filter I can use with /questions/{id}/answers/ (using the UI at this link), which returns the following fields:
answer:
answer_id
body_markdown
comments
...
3
votes
1
answer
189
views
How can I create a filter from scratch using filter/create?
I want to create a filter from scratch to get just the information I can use:
error_id
quota_remaining
api_site_parameter
The first two are part of the wrapper and the last is part of .items, so I ...
3
votes
1
answer
102
views
API returns the last activity date even if asked not to
Using the /questions method, I tried to get upvote and downvote counts, along with question Ids. This is the request I sent:
http://api.stackexchange.com/2.2/questions/857455%3B857454?site=math&...
6
votes
1
answer
662
views
How to strip out certain fields from the Stack Exchange API, JSON response?
I want to fetch all my favorite questions on Stackoverflow.com and dump them as JSON. I used this API path:
/2.1/users/1310070/favorites?fromdate=1382486400&site=stackoverflow
But it is ...
4
votes
1
answer
1k
views
Get questions with body and answers
How can I get the latest 30 questions with body and answers using the api?
And then, I want to get only first most voted 3 answers for each question. Is this possible with only one request?
To get ...