---
title: "GET /nhtsa/component/api/v1/component-database-test-results/by-search"
method: GET
path: "/nhtsa/component/api/v1/component-database-test-results/by-search"
tags: ["component-data-controller"]
---

# GET /nhtsa/component/api/v1/component-database-test-results/by-search

`GET /nhtsa/component/api/v1/component-database-test-results/by-search`

## Request

- Base URL: `https://nrd.api.nhtsa.dot.gov`
- URL: `https://nrd.api.nhtsa.dot.gov/nhtsa/component/api/v1/component-database-test-results/by-search`
- Auth: none declared
- TypeScript: <https://skmtc.dev/dot/apis/component-nhtsa-database-code-library-apis/docs/nhtsa/component/api/v1/component-database-test-results/by-search/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `pageNumber` integer
- `testNoFrom` integer
- `testNoTo` integer
- `testDateFrom` string, date
- `testDateTo` string, date
- `occupantType` string[]
- `testRefNumber` string
- `testType` string
- `contract` string
- `testPerformer` string
- `testSpecification` string
- `orderBy` 'contractorStudyTitle ,testNo ,testPerformer,testReferenceNo,testType'
- `count` integer
- `sortBy` 'ASC' | 'DESC'

## Response `200`

OK

- APIResponse
  - `meta` Meta
    - `pagination` Pagination
      - `pageNumber` integer
      - `count` integer
      - `total` integer
      - `currentUrl` string
      - `nextUrl` string
      - `previousUrl` string
    - `status` integer
    - `message` string
    - `error` string
  - `results` object[]

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/dot/apis/component-nhtsa-database-code-library-apis.md) - [All operations](https://skmtc.dev/dot/apis/component-nhtsa-database-code-library-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/dot/apis/component-nhtsa-database-code-library-apis/revisions/b38c7035b1b2?raw)
