# Get a single user by username response limited via Python request

**URL:** https://meta.discourse.org/t/get-a-single-user-by-username-response-limited-via-python-request/313887
**Category:** Development
**Tags:** rest-api
**Created:** [June 27, 2024, 12:16am UTC](https://meta.discourse.org/t/get-a-single-user-by-username-response-limited-via-python-request/313887 "2024-06-27T00:16:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![littleviolette](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@littleviolette](https://meta.discourse.org/u/littleviolette)
#### Post date: [June 27, 2024, 12:16am UTC](https://meta.discourse.org/t/get-a-single-user-by-username-response-limited-via-python-request/313887/1 "2024-06-27T00:16:42Z")

</div>

I have been using the following endpoint to [get user’s data via username](https://docs.discourse.org/#tag/Users/operation/getUser) via Python requests.  
`https://{defaultHost}/u/{username}.json`

Recently, I found that the data returned via Python requests is different from entering the same url in the browser.  
Here is an example:  
[https://forum.leasehackr.com/u/jalopspecial.json](https://forum.leasehackr.com/u/jalopspecial.json)  
Via the browser, I get the complete dataset of the user. If I request the data via Python requests using the same endpoint:

```plaintext
user_url = https://forum.leasehackr.com/u/jalopspecial.json
user_profile_request = requests.get(user_url)
user_profile = user_profile_request.json()

```

I get only:

```plaintext
{'user': {'avatar_template': '/user_avatar/forum.leasehackr.com/jalopspecial/{size}/92094_2.png',
          'id': 11498,
          'name': 'Whitt',
          'primary_group_name': 'supporters',
          'profile_hidden': True,
          'title': 'Supporter',
          'username': 'JalopSpecial'}}

```

This was not the case in the past. Did something change? Appreciate the help! 🙏

---

<div class="post-metadata">

### Author: ![littleviolette](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@littleviolette](https://meta.discourse.org/u/littleviolette)
#### Post date: [June 29, 2024, 3:27am UTC](https://meta.discourse.org/t/get-a-single-user-by-username-response-limited-via-python-request/313887/2 "2024-06-29T03:27:55Z")

</div>

Update: I noticed that this is happening only to the specific user. I am not sure if there are settings that are off.
