Questions tagged [filter]
Questions about the creation, manipulation, and usage of Filters - which were introduced in v2.0 of the API.
25
questions
1
vote
1answer
37 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
1answer
182 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
1answer
45 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 ...
5
votes
1answer
116 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
1answer
66 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 ...
3
votes
1answer
451 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
1answer
43 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
0answers
102 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
1answer
102 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
1answer
85 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
1answer
420 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 ...
7
votes
2answers
508 views
What is the right way to create a Stack Exchange API filter?
I'm trying to create a filter by following the documentation, but a few things are quite unclear:
How do I create a filter that does not have a base filter?
I'm creating a filter without a base so I ...
3
votes
1answer
1k views
How to get Question/Answer body in the API response using filters?
I am specifically looking to get the question/answer body back. Is it possible?
I am looking through the API documentation and I'm confused about how to make a call with filters.
Sample call I'm ...
1
vote
1answer
34 views
Answer up/down vote count not being returned in filter
As the picture shows, the up_vote_count and down_vote_count answer properties are selected but not returned. What gives?
2
votes
1answer
39 views
question_id missing from migration_info for this question.
Consider the following API request:
http://api.stackexchange.com/2.0/questions/3064?site=stackapps
This question was migrated from Stack Apps to Stack Overflow. However, the migrated_to field is ...
4
votes
1answer
81 views
How are filters created?
Can someone explain how Filters are created in the Stackexchange v2 API?
The documentation mentions the following for /filters/create:
It is not expected that many applications will call this ...
3
votes
1answer
102 views
Update the default filter editor to use the API key
When I run a sample query using the SE API browser (is that right term?), say against /questions for example (here), I'll always see something to the effect of:
...
"quota_remaining": 9424,
"...
0
votes
1answer
50 views
How do I get a filter to let through the fields I specify?
I've created a filter based on the "none" filter with include fields for all those I will need for my application. While the filter I created looks fine to me, it doesn't appear to return any results ...
5
votes
1answer
59 views
filter=total is returning 0?
I'm running a very simple (and contrived) call of:
http://api.stackexchange.com/2.0/users/115730?site=stackoverflow&filter=total
I'm expecting a response of:
{"total":1}
But am getting a ...
2
votes
0answers
37 views
Fairly subtle filter bug between 8 am and 10 pm UTC Dec. 29th
This is a public service announcement about a bug that most people probably didn't notice, but might be biting you pretty hard about now.
Between 8 AM and 10 PM UTC December 29th, filters generated ...
1
vote
2answers
54 views
How about a regex filter in the tags API?
The tags API has a "filter" parameter but it only matches the exact substring in the parameter in the tags.
On Travel we have one kind of tags, IATA airport codes (SYD for Sydney, SFO for San ...
4
votes
1answer
142 views
Certain users aren't showing up in /users when filter is applied
NB: The filter parameter in v1.x of the API had a different meaning to the filter parameter in v2.0
Consider the following query:
http://api.stackoverflow.com/1.1/users?filter=jon%20skeet
This ...
4
votes
2answers
142 views
Can I filter Users by reputation or up_vote_count using the API?
Howdy,
Is it possible to do API calls that pull back all users with, say, > 10,000 reputation? Or up_vote_count, etc.
The advanced search page implies that we should use third-party search engines. ...
3
votes
1answer
134 views
How to mimic search behavior of Stack sites?
I want to mimic the behavior of the search field that can be found on all Stack sites. How should I do this?
Filter by tags if all words (how exactly is this detected?) in the query are tags.
...
2
votes
1answer
101 views
Filter support for regex or wildcards
Filter would be significantly more useful it it supported Regex or wildcards. Ideally under a different parameter. Wildcard could be with the * or the %. This would allow for "starts-with" or "ends-...