# API: How to get blocked contacts?

**URL:** <https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086>\
**Category:** Third Party Developers\
**Created:** [August 19, 2024, 5:13pm UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086 "2024-08-19T17:13:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blasty\_McBlastface](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blasty_mcblastface/32/415888_2.png) [@Blasty\_McBlastface](https://forums.eveonline.com/u/Blasty_McBlastface)\
**Post date:** [August 19, 2024, 5:13pm UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/1 "2024-08-19T17:13:55Z")

</div>

Hello - Using the API to get a character’s contacts, one of the documented fields is “is\_blocked” (true/false). However, when I get a character’s contacts, I don’t get any of their blocked contacts. One of my characters has 361 contacts, of which 332 are blocked (because Jita, of course). However, when I fetch that character’s contacts via the API, I get only the 29 non-blocked contacts (all of which have the field “is\_blocked”: false).

The way I’m reading the API docs, all of the character’s contacts should come over including the ones that are blocked. Is there another endpoint or a query parameter I need to send to get all of my characters’ contacts including blocked ones?

Thank you

---

<div class="post-metadata">

**Author:** ![Brock\_Khans](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/brock_khans/32/409174_2.png) [@Brock\_Khans](https://forums.eveonline.com/u/Brock_Khans)\
**Post date:** [August 22, 2024, 3:21am UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/2 "2024-08-22T03:21:14Z")

</div>

Perhaps you need to check additional pages of results?

---

<div class="post-metadata">

**Author:** ![Blasty\_McBlastface](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blasty_mcblastface/32/415888_2.png) [@Blasty\_McBlastface](https://forums.eveonline.com/u/Blasty_McBlastface)\
**Post date:** [August 22, 2024, 11:36am UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/3 "2024-08-22T11:36:27Z")

</div>

Thanks for the suggestion, but I already handle that. The character I refer to with the 361 total contacts (332 blocked, 29 non-blocked) only comes back with the 1 page of 29 non-blocked contacts. I appreciate the tip though.

---

<div class="post-metadata">

**Author:** ![stefnia\_Freir](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/stefnia_freir/32/390048_2.png) [@stefnia\_Freir](https://forums.eveonline.com/u/stefnia_Freir)\
**Post date:** [August 22, 2024, 12:42pm UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/4 "2024-08-22T12:42:09Z")

</div>

When I call, it works for me ?

I receive all the contacts, and some have is\_blocked set to true.

---

<div class="post-metadata">

**Author:** ![Blasty\_McBlastface](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blasty_mcblastface/32/415888_2.png) [@Blasty\_McBlastface](https://forums.eveonline.com/u/Blasty_McBlastface)\
**Post date:** [August 23, 2024, 10:33am UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/5 "2024-08-23T10:33:04Z")

</div>

I have figured out that the only ones that have **is\_blocked** set to **true** are ones that you have added as a contact with a standing and _then_ blocked them. If you block a character without adding them as a contact, you will not see that blocked character when you fetch your contacts.

So, the question is, is there any way to get a list of the characters you have blocked via the API? Doesn’t seem to be the case. ☹

---

<div class="post-metadata">

**Author:** ![stefnia\_Freir](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/stefnia_freir/32/390048_2.png) [@stefnia\_Freir](https://forums.eveonline.com/u/stefnia_Freir)\
**Post date:** [August 23, 2024, 10:39am UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/6 "2024-08-23T10:39:38Z")

</div>

interesting.  
submit a bug ?

> **[Issues · esi/esi-issues](https://github.com/esi/esi-issues/issues)**
>
> Issue tracking and feature requests for ESI. Contribute to esi/esi-issues development by creating an account on GitHub.

(search before)

---

<div class="post-metadata">

**Author:** ![Blasty\_McBlastface](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blasty_mcblastface/32/415888_2.png) [@Blasty\_McBlastface](https://forums.eveonline.com/u/Blasty_McBlastface)\
**Post date:** [August 25, 2024, 4:59pm UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/7 "2024-08-25T16:59:55Z")

</div>

Thanks - that was a good idea. I found the open issue here:

> <https://github.com/esi/esi-issues/issues/231>
>
> As a user of the contacts API I would like to be able to block a character.
> 
> h…ttps://esi.tech.ccp.is/latest/#!/Contacts/get\_characters\_character\_id\_contacts has is\_blocked as an attribute of the contact
> 
> https://esi.tech.ccp.is/latest/#!/Contacts/post\_characters\_character\_id\_contacts and https://esi.tech.ccp.is/latest/#!/Contacts/put\_characters\_character\_id\_contacts don't support setting it, only "watched".
> 
> Example use cases: 
> \* monitoring chat logs for disruptive or spammy characters and using the API to block them.
> \* sharing a block list amongst characters.

It’s more than a 7 1/2-year old request, but about 3 months ago someone removed the **in-backlog** label so hopefully that’s an encouraging sign… (?) 🙂

---

<div class="post-metadata">

**Author:** ![stefnia\_Freir](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/stefnia_freir/32/390048_2.png) [@stefnia\_Freir](https://forums.eveonline.com/u/stefnia_Freir)\
**Post date:** [August 25, 2024, 5:06pm UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/8 "2024-08-25T17:06:03Z")

</div>

Backlog means it’s to be done.  
removing it means it’s not to be done.

That being said, this issue is not about a bug but about a feature request.  
It is about [EVE Swagger Interface](https://esi.evetech.net/ui/#/Contacts/post_characters_character_id_contacts) missing the attribute “blocked”.

---

<div class="post-metadata">

**Author:** ![Blasty\_McBlastface](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blasty_mcblastface/32/415888_2.png) [@Blasty\_McBlastface](https://forums.eveonline.com/u/Blasty_McBlastface)\
**Post date:** [August 25, 2024, 5:15pm UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/9 "2024-08-25T17:15:30Z")

</div>

Right but this issue, to expose blocked characters in the ESI, was marked as a duplicate of the one above.

> <https://github.com/esi/esi-issues/issues/390>
>
> \# Feature Request
> 
> I would like to be able to retrieve and update a character'…s blocklist via ESI (so I can propagate it between characters).
> 
> It appears that blocked characters aren't necessarily included in the existing contacts endpoint Characters.get\_characters\_character\_id\_contacts()
> 
> (I just retrieved several hundred contacts from ESI, but not one of them was listed as blocked. Its possible that this is a bug, in which case this issue should not be a feature request)
> 
> \## Proposed route
> 
> Characters.get\_characters\_character\_id\_blocklist()
> 
> Additional routes to post a new character to block, or put a character to unblock.
> 
> \### Use case
> 
> I have blocked unsavoury characters on several different characters, but I have a different set of blocked characters on each of my characters. I wish that when I blocked a deplorable on one character, it would also be blocked on another character - i.e. I wish I had exactly the same list of blocked characters on all of my characters.
> 
> \### Example returns
> 
> \[ 
> {
> contact\_type : 'character',
> contact\_id : 12345,
> },
> \]

---

<div class="post-metadata">

**Author:** ![stefnia\_Freir](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/stefnia_freir/32/390048_2.png) [@stefnia\_Freir](https://forums.eveonline.com/u/stefnia_Freir)\
**Post date:** [August 25, 2024, 5:20pm UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/10 "2024-08-25T17:20:58Z")

</div>

yes, both are about updating the contacts.  
While yours is about retrieving the blocked people who are not added as contacts.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [November 23, 2024, 5:21pm UTC](https://forums.eveonline.com/t/api-how-to-get-blocked-contacts/459086/11 "2024-11-23T17:21:10Z")

</div>

Closed on November 23, 2024, 5:21pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
