GET ContentService/exporter/diagram/{identifier}.{ext}

reactome.org:reactome-api

Summary: Exports a given pathway diagram to the specified image format (png, jpg, jpeg, svg, gif)
Operation ID: diagramImage_1
Auth: unknown
Description

This method accepts identifiers for <a href="/content/schema/Event" target="_blank">Event class</a> instances.<br/>When a diagrammed pathway is provided, the diagram is exported to the specified format.<br/>When a subpathway is provided, the diagram for the parent is exported and the events that are part of the subpathways are selected.<br/>When a reaction is provided, the diagram containing the reaction is exported and the reaction is selected.<br/><br/>Find out more about this method <a href="/dev/content-service/diagram-exporter" target="_blank">here</a>

Parameters (16)

analysisProfile (string, query, optional)

Analysis Color Profile

Constraints: {'enum': ['Standard', 'Strosobar, Copper%20Plus']}

diagramProfile (string, query, optional)

Diagram Color Profile

Constraints: {'enum': ['Modern', 'Standard']}

ehld (boolean, query, optional, default: True)

Defines whether textbook-like illustration are taken into account

expColumn (integer, query, optional)

Expression column. When the token is associated to an expression analysis, this parameter allows specifying the expression column for the overlay

ext (string, path, required)

File extension (defines the image format)

Constraints: {'enum': ['png', 'jpg', 'jpeg', 'svg', 'gif']}

flg (string, query, optional)

Gene name, protein or chemical identifier or Reactome identifier used to flag elements in the diagram

flgInteractors (boolean, query, optional, default: True)

Defines whether to take into account interactors for the flagging

identifier (string, path, required)

Event identifier (it can be a pathway with diagram, a subpathway or a reaction)

includeRef (boolean, query, optional, default: False)

Global parameter - If true, replace element ref to dbId by standard JSOG object {@ref}

margin (integer, query, optional, default: 15)

Defines the image margin between [0 - 20] (Default 15)

quality (integer, query, optional, default: 5)

Result image quality between [1 - 10]. It defines the quality of the final image (Default 5)

resource (string, query, optional, default: TOTAL)

The <a href="/dev/analysis" target="_blank">analysis</a> resource for which the results will be overlaid on top of the given pathways overview

sel (array, query, optional)

Highlight element(s) selection in the diagram. CSV line.

title (boolean, query, optional, default: True)

Sets whether the name of the pathway is shown below

token (string, query, optional)

The <a href="/dev/analysis" target="_blank">analysis</a> token with the results to be overlaid on top of the given diagram

view (string, query, optional, default: flatten)

Global parameter - Customise the view to be more concise and/or aggregate relationships

Constraints: {'enum': ['flatten', 'nested', 'nested-aggregated']}

Examples (1)

TitleTypeURLAction
Exports a given pathway diagram to the specified image format (png, jpg, jpeg, svg, gif) openapi-spec https://reactome.org/ContentService/exporter/diagram/R-HSA-177929.png?quality=5&title=True&margin=15&ehld=True&diagramProfile=Modern&analysisProfile=Standard

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-03-23 09:02:28.510214 406 331ms