---
title: "Query to get the Normalized Google Distance between two MeSH terms based on co-occurrence in all PubMed article annotations"
method: GET
path: "/PubmedMeshNgd/{term1}/{term2}"
tags: ["PubmedMeshNgd"]
---

# Query to get the Normalized Google Distance between two MeSH terms based on co-occurrence in all PubMed article annotations

`GET /PubmedMeshNgd/{term1}/{term2}`

## Request

- Base URL: `https://arax.transltr.io/api/arax/v1.4`
- URL: `https://arax.transltr.io/api/arax/v1.4/PubmedMeshNgd/{term1}/{term2}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/rtxteam/apis/arax-translator-reasoner-trapi-1-6-0/docs/PubmedMeshNgd/:term1/:term2/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `term1` string, required
- `term2` string, required

## Response `200`

successful operation

- MeshNgdResponse
  - `result_code` string: Set to OK for success, or some other short string to indicate and error (e.g., TermNotFound, etc.)
  - `message` string: Extended message denoting the success or mode of failure for request
  - `value` number, float: Calculated Normalized Google Distance for the two supplied terms

## Other responses

- `400`: Invalid terms

---

[API](https://skmtc.dev/rtxteam/apis/arax-translator-reasoner-trapi-1-6-0.md) - [All operations](https://skmtc.dev/rtxteam/apis/arax-translator-reasoner-trapi-1-6-0/llms.txt) - [OpenAPI document](https://skmtc.dev/rtxteam/apis/arax-translator-reasoner-trapi-1-6-0/revisions/d34f07f69837?raw)
