# WikiPathways Webservices API

> WikiPathways Webservices API on Apizie: 27 endpoints (createPathwayCreate a new pathway on the wiki with the given GPML code. Note: To create/modify pathways via…, findInteractionsFind interactions defined in WikiPathways pathways., findPathwaysByLiterature, findPathwaysByText, …) returned as clean JSON through one API key. 27 endpoints are live now. Call it over REST at https://apizie.tech/v1/open-data:wikipathways/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `open-data:wikipathways`
- Category: Open Data
- Status: live
- Source: https://wikipathways.org
- Page: https://apizie.tech/api/open-data/wikipathways
- OpenAPI: https://apizie.tech/api/open-data/wikipathways/openapi.json



## Endpoints

### createPathwayCreate a new pathway on the wiki with the given GPML code. Note: To create/modify pathways via…
`POST https://apizie.tech/v1/open-data:wikipathways/post-create-pathway`

| Parameter | Type | Required | Description |
|---|---|---|---|
| gpml | string | yes | The GPML code for the new pathway |
| auth | string | yes | The authentication info |
| username | string | yes | The user name |
| format | string | no |  |

### findInteractionsFind interactions defined in WikiPathways pathways.
`GET https://apizie.tech/v1/open-data:wikipathways/get-find-interactions`

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | The name of an entity to find interactions for (e.g. 'P53') |
| format | string | no |  |

### findPathwaysByLiterature
`GET https://apizie.tech/v1/open-data:wikipathways/get-find-pathways-by-literature`

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | The query, can be a pubmed id, author name or title keyword. |
| format | string | no |  |

### findPathwaysByText
`GET https://apizie.tech/v1/open-data:wikipathways/get-find-pathways-by-text`

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | The query, e.g. 'apoptosis' |
| species | string | no | Optional, limit the query by species. Leave |
| format | string | no |  |

### findPathwaysByXref
`GET https://apizie.tech/v1/open-data:wikipathways/get-find-pathways-by-xref`

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | string |
| codes | array | no | string |
| format | string | no |  |

### getColoredPathwayGet a colored image version of the pathway.
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-colored-pathway`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| revision | string | yes | The revision of the pathway (use '0' for most recent) |
| graphId | array | yes | string |
| color | array | yes | string |
| fileType | string | yes | The image type (One of 'svg', 'pdf' or 'png'). |
| format | string | no |  |

### getCurationTagHistory
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-curation-tag-history`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| timestamp | string | no | Only include history from after the given date |
| format | string | no |  |

### getCurationTagsGet all curation tags for the given tag name. Use this method if you want to find all…
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-curation-tags`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| format | string | no |  |

### getCurationTagsByNameGet all curation tags for the given tag name. Use this method if you want to find all…
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-curation-tags-by-name`

| Parameter | Type | Required | Description |
|---|---|---|---|
| tagName | string | yes | The tag name |
| format | string | no |  |

### getOntologyTermsByPathway
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-ontology-terms-by-pathway`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| format | string | no |  |

### getPathway
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-pathway`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| revision | integer | no | The revision number of the pathway (use 0 for most recent) |
| format | string | no |  |

### getPathwayAsDownload a pathway in the specified file format.
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-pathway-as`

| Parameter | Type | Required | Description |
|---|---|---|---|
| fileType | string | yes | The file type to convert to, e.g. |
| pwId | string | yes | The pathway identifier |
| revision | integer | no | The revision number of the pathway (use 0 for most recent) |
| format | string | no |  |

### getPathwayHistoryGet the revision history of a pathway.
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-pathway-history`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| timestamp | string | yes | Limit by time, only history items after the given |
| format | string | no |  |

### getPathwayInfoGet some general info about the pathway, such as the name, species, without downloading the…
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-pathway-info`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| format | string | no |  |

### getPathwaysByOntologyTerm
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-pathways-by-ontology-term`

| Parameter | Type | Required | Description |
|---|---|---|---|
| term | string | yes | The Ontology term |
| format | string | no |  |

### getPathwaysByParentOntologyTerm
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-pathways-by-parent-ontology-term`

| Parameter | Type | Required | Description |
|---|---|---|---|
| term | string | yes | The Ontology term |
| format | string | no |  |

### getRecentChangesGet the recently changed pathways. Note: the recent changes table only retains items for a…
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-recent-changes`

| Parameter | Type | Required | Description |
|---|---|---|---|
| timestamp | string | yes | Get the changes after this time |
| format | string | no |  |

### getUserByOrcid
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-user-by-orcid`

| Parameter | Type | Required | Description |
|---|---|---|---|
| orcid | string | yes | string |
| format | string | no |  |

### getXrefList
`GET https://apizie.tech/v1/open-data:wikipathways/get-get-xref-list`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier. |
| code | string | yes | The database code to translate to (e.g. 'S' for UniProt). |
| format | string | no |  |

### listOrganisms
`GET https://apizie.tech/v1/open-data:wikipathways/get-list-organisms`

| Parameter | Type | Required | Description |
|---|---|---|---|
| format | string | no |  |

### listPathways
`GET https://apizie.tech/v1/open-data:wikipathways/get-list-pathways`

| Parameter | Type | Required | Description |
|---|---|---|---|
| organism | string | no | The organism to filter by (optional) |
| format | string | no |  |

### loginStart a logged in session, using an existing WikiPathways account. This function will return an…
`GET https://apizie.tech/v1/open-data:wikipathways/get-login`

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The usernameset_include_path(get_include_path().PATH_SEPARATOR.realpath('../includes').PATH_SEPARATOR.realpath('../').PATH_SEPARATOR); |
| pass | string | yes | The password |
| format | string | no |  |

### removeCurationTagRemove a curation tag from a pathway.
`GET https://apizie.tech/v1/open-data:wikipathways/get-remove-curation-tag`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| tagName | string | yes | The name of the tag to apply |
| auth | string | yes | The authentication data |
| username | string | yes | The user name |
| format | string | no |  |

### removeOntologyTag
`GET https://apizie.tech/v1/open-data:wikipathways/get-remove-ontology-tag`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| termId | string | yes | The ontology term identifier in the ontology |
| auth | string | yes | The authentication key |
| user | string | yes | The username |
| format | string | no |  |

### saveCurationTag
`GET https://apizie.tech/v1/open-data:wikipathways/get-save-curation-tag`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| tagName | string | yes | The name of the tag to apply |
| text | string | yes | string |
| revision | integer | yes | The revision this tag applies to |
| auth | string | yes | The authentication key |
| username | string | yes | The user name |
| format | string | no |  |

### saveOntologyTag
`GET https://apizie.tech/v1/open-data:wikipathways/get-save-ontology-tag`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| term | string | yes | The ontology term to apply |
| termId | string | yes | The identifier of the term in the ontology |
| auth | string | yes | The authentication key |
| user | string | yes | The username |
| format | string | no |  |

### updatePathwayUpdate a pathway on the wiki with the given GPML code. Note: To create/modify pathways via the…
`GET https://apizie.tech/v1/open-data:wikipathways/get-update-pathway`

| Parameter | Type | Required | Description |
|---|---|---|---|
| pwId | string | yes | The pathway identifier |
| description | string | yes | A description of the modifications |
| gpml | string | yes | The updated GPML code |
| revision | integer | yes | The revision the GPML code is based on |
| auth | string | yes | The authentication key |
| username | string | yes | The username |
| format | string | no |  |

## Example
```
curl "https://apizie.tech/v1/open-data:wikipathways/post-create-pathway" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the WikiPathways Webservices API?
Create a free Apizie key, then send POST https://apizie.tech/v1/open-data:wikipathways/post-create-pathway with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the WikiPathways Webservices API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the WikiPathways Webservices API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key open-data:wikipathways.

### What is the status of the WikiPathways Webservices API?
Live: works with just an Apizie key
