---
title: "Get All Raw Data"
method: POST
path: "/get_all_raw_data"
---

# Get All Raw Data

`POST /get_all_raw_data`

Retrieve all results for a specific query, after query has finished as indicated by /check_query.

Parameters:

- **query_id**: Number returned by /start_query endpoint to run the query of interest
- **query**: The same data that was passed to /start_query to generate above query_id

Returns JSON with items:
- **column_headers**: Array of strings (headers) associated with data in **rows**, can be used as columns for a table: smiles, compound_ids, property data, etc.
- **rows**: Array of arrays (i.e., rows), whose elements match the above column_headers, where each row represents a unique MMP.

## Request body

- GetAllRawData
  - `query_id` integer, required
  - `query` QueryInput, required
    - `snapquery_id` string
    - `query_id` integer
    - `query_type` 'exact' | 'substructure', required
    - `transform_order` 'first_order' | 'second_order', required
    - `sketched_content` SketchedContent, required
      - `mol1_molfile` string
      - `mol1_variable_atoms` string
      - `mol1_variable_bonds` string
      - `mol1_environment_atoms` string
      - `mol1_environment_bonds` string
      - `mol2_molfile` string
      - `mol2_variable_atoms` string
      - `mol2_variable_bonds` string
      - `mol2_environment_atoms` string
      - `mol2_environment_bonds` string
    - `REQUIRED_properties` string
    - `OPTIONAL_properties` string
    - `advanced_options` AdvancedOptions
      - `variable_min_heavies` integer
      - `variable_max_heavies` integer
      - `compound_min_heavies` integer
      - `compound_max_heavies` integer
      - `aggregation_type` 'individual_transforms' | 'group_by_fragment'
    - `snapfilter_id` string
    - `snapfilter_string` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/merck/apis/matcher-backend.md) · [All operations](https://skmtc.dev/merck/apis/matcher-backend/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/merck/matcher-backend/revisions/59028f512f31/schema)
