Questions tagged [filter]

Questions about the creation, manipulation, and usage of Filters - which were introduced in v2.0 of the API.

Filter by
Sorted by
Tagged with
3 votes
1 answer
26 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'...
AJ AJ's user avatar
  • 133
1 vote
1 answer
54 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, ...
JMP's user avatar
  • 345
4 votes
1 answer
66 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 ...
Makyen's user avatar
  • 1,615
3 votes
1 answer
81 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 ...
demia's user avatar
  • 31
4 votes
1 answer
359 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 ...
ashleedawg's user avatar
1 vote
1 answer
58 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 ...
Rakete1111's user avatar
6 votes
1 answer
141 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 ...
Tunaki's user avatar
  • 733
2 votes
1 answer
110 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 ...
codecowboy's user avatar
4 votes
1 answer
592 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 ...
Manish Bhanu's user avatar
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 ...
RickAndMSFT's user avatar
5 votes
0 answers
133 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 ...
Martin Ender's user avatar
3 votes
1 answer
181 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 ...
Sean Allred's user avatar
3 votes
1 answer
100 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&...
user avatar
6 votes
1 answer
648 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 ...
Sachin Jain's user avatar
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 ...
Ionică Bizău's user avatar
8 votes
2 answers
751 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 ...
user avatar
3 votes
1 answer
2k 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 ...
Shyju's user avatar
  • 133
1 vote
1 answer
36 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?
Charles Sprayberry's user avatar
2 votes
1 answer
42 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 ...
Nathan Osman's user avatar
  • 23.3k
6 votes
1 answer
131 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 method ...
Arvindh's user avatar
  • 61
3 votes
1 answer
125 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, "...
Marvin Pinto's user avatar
0 votes
1 answer
60 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 ...
patridge's user avatar
  • 435
5 votes
1 answer
61 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 ...
Dave DeLong's user avatar
  • 5,264
2 votes
0 answers
38 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 ...
Kevin Montrose's user avatar
1 vote
2 answers
68 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 ...
hippietrail's user avatar
4 votes
1 answer
153 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 ...
Nathan Osman's user avatar
  • 23.3k
4 votes
2 answers
148 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. ...
Matt Culbreth's user avatar
3 votes
1 answer
137 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. ...
eflorico's user avatar
  • 511
2 votes
1 answer
105 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-...
Jim McKeeth's user avatar