4

This query returns the details of the Main sites only:

        /associated-users#ids=2855348

How can I get the Meta site details also in the same query?
Do I need to add any other filter or to use some other query?


This is regarding: Displaying Badges for Meta sites in Android app

3
  • @BrockAdams : Can I post a bug? Commented Dec 27, 2015 at 18:17
  • Posted a bug report related to this. This particular API route is returning wrong values for badges on meta sites. Commented Dec 27, 2015 at 18:57
  • @BrockAdams: Thanks for posting the bug and linked the related questions. Commented Dec 27, 2015 at 19:00

1 Answer 1

2

From the doc page for the /users/{ids}/associated route:

You can filter the network_users returned by this method with the types parameter. Specify, semicolon delimited, main_site or meta_site to filter by site.

So this means that for just a user's meta accounts you would use, for example:

        /2.2/users/2855348/associated?types=meta_site


For both a user's regular accounts and his meta accounts you would use:

        /2.2/users/2855348/associated?types=meta_site;main_site


All that being said, note that there is currently a relevant bug with this API route:

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.