{"action":"created","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/1735","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/1735/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/1735/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/1735/events","html_url":"https://github.com/WP-API/WP-API/issues/1735","id":116965570,"number":1735,"title":"How to GET only top level terms (without parent)","user":{"login":"equatorapps","id":7213657,"avatar_url":"https://avatars.githubusercontent.com/u/7213657?v=3","gravatar_id":"","url":"https://api.github.com/users/equatorapps","html_url":"https://github.com/equatorapps","followers_url":"https://api.github.com/users/equatorapps/followers","following_url":"https://api.github.com/users/equatorapps/following{/other_user}","gists_url":"https://api.github.com/users/equatorapps/gists{/gist_id}","starred_url":"https://api.github.com/users/equatorapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equatorapps/subscriptions","organizations_url":"https://api.github.com/users/equatorapps/orgs","repos_url":"https://api.github.com/users/equatorapps/repos","events_url":"https://api.github.com/users/equatorapps/events{/privacy}","received_events_url":"https://api.github.com/users/equatorapps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-15T01:22:57Z","updated_at":"2015-11-15T19:38:35Z","closed_at":null,"body":"We are using WP-API v2 beta-5 and the following path: wp-json/wp/v2/terms/product_cat/ to get the woo commerce categories we have entered, and there are many. I have tried to use parent=0, but that does nothing. parent=xxx only seems to work for whole numbers. Is there another parameter or path to get just   terms without a parent? Thanks."},"comment":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/comments/156845977","html_url":"https://github.com/WP-API/WP-API/issues/1735#issuecomment-156845977","issue_url":"https://api.github.com/repos/WP-API/WP-API/issues/1735","id":156845977,"user":{"login":"swissspidy","id":841956,"avatar_url":"https://avatars.githubusercontent.com/u/841956?v=3","gravatar_id":"","url":"https://api.github.com/users/swissspidy","html_url":"https://github.com/swissspidy","followers_url":"https://api.github.com/users/swissspidy/followers","following_url":"https://api.github.com/users/swissspidy/following{/other_user}","gists_url":"https://api.github.com/users/swissspidy/gists{/gist_id}","starred_url":"https://api.github.com/users/swissspidy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swissspidy/subscriptions","organizations_url":"https://api.github.com/users/swissspidy/orgs","repos_url":"https://api.github.com/users/swissspidy/repos","events_url":"https://api.github.com/users/swissspidy/events{/privacy}","received_events_url":"https://api.github.com/users/swissspidy/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T19:38:35Z","updated_at":"2015-11-15T19:38:35Z","body":"According to the docs and [the code](https://github.com/WP-API/WP-API/blob/develop/lib/endpoints/class-wp-rest-terms-controller.php#L82) `parent=0` should work.\r\n\r\nPerhaps the `0 === $request['parent']` check fails because it's not an int, so that would be a bug."}}