---
title: "GET /GetJSON"
method: GET
path: "/GetJSON"
---

# GET /GetJSON

`GET /GetJSON`

## Request

- Base URL: `https://cadsrapi.cancer.gov/caDSR5.0/rest/getJSON`
- URL: `https://cadsrapi.cancer.gov/caDSR5.0/rest/getJSON/GetJSON`
- Auth: none declared
- TypeScript: <https://skmtc.dev/cancer/apis/cadsr-getjson/docs/GetJSON/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `query` string, required

## Response `200`

OK

- GetJSONGETResponse
  - `getXMLDocnew` GetXMLDoc, required: generated by webMethods
    - `@encoding` string, required
    - `xlink:httpQuery` Xlink, required
      - `queryRequest` QueryRequest
        - `query` Query
          - `queryString` string
          - `class` string
        - `criteria` string
      - `queryResponse` Xlink1, required
        - `recordCounter` string[]
        - `class` ClassDocTypeRef[]
          - `@name` string, required
          - `@recordNumber` string, required
          - `field` FieldsDocTypeRef[], required
            - `@name` string, required
            - `*body` string
            - `@xlink:type` string
            - `@xlink:href` string
        - `pages` Xlink2
          - `@count` string, required
          - `page` Xlink4, required
            - `@number` string, required
            - `@xlink:type` string, required
            - `@xlink:href` string, required
            - `*body` string, required
        - `start` string
        - `end` string
        - `Errors` Xlink3
          - `Error` Xlink5[], required
            - `ErrorMessage` string, required

## Other responses

- `401`: Access Denied

---

[API](https://skmtc.dev/cancer/apis/cadsr-getjson.md) - [All operations](https://skmtc.dev/cancer/apis/cadsr-getjson/llms.txt) - [OpenAPI document](https://skmtc.dev/cancer/apis/cadsr-getjson/revisions/58f1b84d4a4a?raw)
