# \`active\_on\_org\` from API V3 is wrong

**URL:** <https://travis-ci.community/t/active-on-org-from-api-v3-is-wrong/1199>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** api\
**Created:** [December 3, 2018, 8:13pm UTC](https://travis-ci.community/t/active-on-org-from-api-v3-is-wrong/1199 "2018-12-03T20:13:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asmeurer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/asmeurer/32/641_2.png) [@asmeurer](https://travis-ci.community/u/asmeurer)\
**Post date:** [December 3, 2018, 8:13pm UTC](https://travis-ci.community/t/active-on-org-from-api-v3-is-wrong/1199/1 "2018-12-03T20:13:21Z")

</div>

I was told that I should use this to report bugs instead of GitHub. Let me know if that is incorrect.

The `active_on_org` key in the `repo` JSON from API V3 seems to be wrong for repos enabled on both .com and .org. Example, for the repo drdoctr/travis-ci-com-testing

```auto
>>> headers = {'Travis-API-Version': '3'}
>>> import requests
>>> r = requests.get('https://api.travis-ci.com/repo/drdoctr%2Ftravis-ci-com-testing', headers=headers)
>>> r.json()['active_on_org']
False

```

You can see it is running on both:

[https://travis-ci.com/drdoctr/travis-ci-com-testing/builds](https://travis-ci.com/drdoctr/travis-ci-com-testing/builds)

[https://travis-ci.org/drdoctr/travis-ci-com-testing/builds](https://travis-ci.org/drdoctr/travis-ci-com-testing/builds)

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [December 4, 2018, 3:47pm UTC](https://travis-ci.community/t/active-on-org-from-api-v3-is-wrong/1199/2 "2018-12-04T15:47:14Z")

</div>

Hello, there. Please consider `active_on_org` as an internal field for now. Is there a reason you are interested in this field?

---

<div class="post-metadata">

**Author:** ![asmeurer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/asmeurer/32/641_2.png) [@asmeurer](https://travis-ci.community/u/asmeurer)\
**Post date:** [January 30, 2019, 9:18pm UTC](https://travis-ci.community/t/active-on-org-from-api-v3-is-wrong/1199/3 "2019-01-30T21:18:53Z")

</div>

This is for the [doctr](https://drdoctr.github.io/) tool. I am trying to figure out which of .com and .org a repo is active on. Since the two have different public keys, I have to know which to use to encrypt the secret variable. If this key worked, I would be able to do only one API request.
