# How to export Event Logo using the REST API?

**URL:** <https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550>\
**Category:** Development\
**Created:** [May 23, 2024, 3:33pm UTC](https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550 "2024-05-23T15:33:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ioclaudio](https://talk.getindico.io/user_avatar/talk.getindico.io/ioclaudio/32/1580_2.png) [@ioclaudio](https://talk.getindico.io/u/ioclaudio)\
**Post date:** [May 23, 2024, 3:33pm UTC](https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550/1 "2024-05-23T15:33:30Z")

</div>

Hi,

I’m developing a procedure that exports events from Indico to import them into a CMS.

I’m using the REST API to achieve this goal.

However, it seems that the JSON files of both the category and the event don’t contain **the URL of the logo of the event**.

Is it possible to retrieve the URL of the event logo using the REST API?

Thank you very much

Claudio

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [May 23, 2024, 3:37pm UTC](https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550/2 "2024-05-23T15:37:07Z")

</div>

Which endpoint are you using? And what’s the JSON you get?

---

<div class="post-metadata">

**Author:** ![ioclaudio](https://talk.getindico.io/user_avatar/talk.getindico.io/ioclaudio/32/1580_2.png) [@ioclaudio](https://talk.getindico.io/u/ioclaudio)\
**Post date:** [May 24, 2024, 7:20am UTC](https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550/3 "2024-05-24T07:20:42Z")

</div>

Hi,  
I’m using these endpoints:

- export/event/69.json?occ=yes&pretty=yes:
- export/categ/1.json?pretty=yes

I can’t see the event logo.

Claudio B.

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [May 24, 2024, 10:07am UTC](https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550/4 "2024-05-24T10:07:44Z")

</div>

Oh, I missed the logo, I thought you meant the event URL itself. The logo URL is indeed not included in any of the APIs.

---

<div class="post-metadata">

**Author:** ![ioclaudio](https://talk.getindico.io/user_avatar/talk.getindico.io/ioclaudio/32/1580_2.png) [@ioclaudio](https://talk.getindico.io/u/ioclaudio)\
**Post date:** [May 25, 2024, 1:14pm UTC](https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550/5 "2024-05-25T13:14:20Z")

</div>

ok, thank you.  
We are using Indico as management tool for events, and we want populate the web sites of the organisation without inserting them again with a brief description of the event and the link to Indico event.  
I can find all the fields needed in the category endpoint except for the logo of the event. I will get it in a different way.

Claudio

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [May 27, 2024, 1:02pm UTC](https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550/6 "2024-05-27T13:02:56Z")

</div>

Try applying this patch:

```auto
diff --git a/indico/modules/events/api.py b/indico/modules/events/api.py
index 3f1315cc47..96a8a27121 100644
--- a/indico/modules/events/api.py
+++ b/indico/modules/events/api.py
@@ -600,6 +600,7 @@ class CategoryEventFetcher(IteratedDataFetcher, SerializerBase):
             'note': build_note_api_data(event.note),
             'roomFullname': event.room_name,
             'url': event.external_url,
+ 'logo': event.external_signed_logo_url,
             'creationDate': self._serialize_date(event.created_dt),
             'creator': self._serialize_person(event.creator, person_type='Avatar', can_manage=can_manage),
             'hasAnyProtection': event.effective_protection_mode != ProtectionMode.public,

```

That should add a `logo` key in both the event and category API endpoints you’re using.

I wouldn’t mind adding this in the next release.

---

<div class="post-metadata">

**Author:** ![ioclaudio](https://talk.getindico.io/user_avatar/talk.getindico.io/ioclaudio/32/1580_2.png) [@ioclaudio](https://talk.getindico.io/u/ioclaudio)\
**Post date:** [May 27, 2024, 2:35pm UTC](https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550/7 "2024-05-27T14:35:11Z")

</div>

Hi,  
thank you I didn’t kow you are a developer of Indico.  
Thank you that’s very kind.

Claudio B.

---

<div class="post-metadata">

**Author:** ![bpedersen2](https://talk.getindico.io/user_avatar/talk.getindico.io/bpedersen2/32/25_2.png) [@bpedersen2](https://talk.getindico.io/u/bpedersen2)\
**Post date:** [June 4, 2024, 2:10pm UTC](https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550/8 "2024-06-04T14:10:20Z")

</div>

If you need a more fine-grained control, maybe take at this [plugin](https://github.com/bpedersen2/indico-mlz_appadapter/blob/main/indico_mlz_appadapter/controller.py), which we use to either provide a custom image, the event logo or the category logo to an external application.

Björn

---

<div class="post-metadata">

**Author:** ![ioclaudio](https://talk.getindico.io/user_avatar/talk.getindico.io/ioclaudio/32/1580_2.png) [@ioclaudio](https://talk.getindico.io/u/ioclaudio)\
**Post date:** [June 4, 2024, 5:02pm UTC](https://talk.getindico.io/t/how-to-export-event-logo-using-the-rest-api/3550/9 "2024-06-04T17:02:09Z")

</div>

Hi thank you @bpedersen2,  
I’ll take a look at your plugin.  
I needed only a simple way to import a few fields of an event into a project of our organization that allows to create small sites for laboratories or research groups.  
The goal is to populate a section of these WordPress sites with events without having to create them a second time.  
I’ve solved it for now using the web service that returns the categories and with a quick parse of the page to retrieve the logo.  
It seems to work correctly.  
Since I don’t manage the Indico serve I can’t modify its code.  
If I understand correctly I could use your plugin to achieve the same thing.

Thank you

Claudio B.
