Search Tests
This api is used to fetch all tests which contains the search text. If page_number
and page_size
are not provided, by default, api will return first 20 tests in the response.
For ios version >=6.5.0 and for android version>=8.5.0 it checks tests for pathalogy and radiology else it only checks for pathalogy. We can also specify lab_ids and remove_radiology, remove_unavailable (remove unavailable tests) params.
Various filters like city
, remove_radiology
, remove_unavailable
can be also provided in query params. We can provide multiple lab ids in the query param using the key lab[]
This is a paginated api, so the page_number and page_size in the query params accordingly.
Query Parameters
- page_number integer
(Optional) Page Number
Example: 0 - page_size integer
(Optional) Page Size
Example: 10 - city string
(Optional) City Name
Example: gurgaon - search_text string
(Required) Test Name/Substring
Example: complete - lab[] integer
(Optional) Lab Id
Example: 95 - remove_radiology string
(Optional) Pass value as True if Radiology tests are not required in response
Example: True - remove_unavailable string
(Optional) Pass value as True if only available tests are required in response
Example: True
Header Parameters
- Content-Type stringExample: application/json
- x-access-key stringExample: 1mg_client_public_access_key
- X-Authorization stringExample: {{X-Authorization}}
- 200
OK
Response Headers
Date string
Content-Type string
Transfer-Encoding string
Connection string
vary string
x-request-id string
set-cookie string
visitor-id string
x-visitor-id string
access-control-allow-methods string
access-control-allow-headers string
access-control-allow-origin string
CF-Cache-Status string
Server string
CF-RAY string
Content-Encoding string
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"data": [
{
"id": 34910,
"name": "Complete Blood Count With NLR",
"highlight_name": "<b>Complete</b> Blood Count With NLR",
"sub_name": "CBP",
"highlight_sub_name": "CBP",
"abbreviation": "CBC",
"highlight_abbreviation": "CBC",
"category": "Pathology",
"type": "TEST",
"available": true,
"is_fuzzy": false,
"leaf_count": 22,
"composition_count": 22,
"component_tests": null,
"highlight_component_tests": null
},
{
"id": 1743,
"name": "Complete Haemogram",
"highlight_name": "<b>Complete</b> Haemogram",
"sub_name": "Hemogram, Heamogram, CBC+ESR",
"highlight_sub_name": "Hemogram, Heamogram, CBC+ESR",
"abbreviation": "Hmg",
"highlight_abbreviation": "Hmg",
"category": "Pathology",
"type": "TEST",
"available": true,
"is_fuzzy": false,
"leaf_count": 22,
"composition_count": 22,
"component_tests": "Complete Blood Count",
"highlight_component_tests": "<b>Complete</b> Blood Count"
},
{
"id": 1717,
"name": "Complete Blood Count",
"highlight_name": "<b>Complete</b> Blood Count",
"sub_name": "CBP",
"highlight_sub_name": "CBP",
"abbreviation": "CBC",
"highlight_abbreviation": "CBC",
"category": "Pathology",
"type": "TEST",
"available": true,
"is_fuzzy": false,
"leaf_count": 21,
"composition_count": 21,
"component_tests": null,
"highlight_component_tests": null
},
{
"id": 34904,
"name": "Covid Home Care Complete",
"highlight_name": "Covid Home Care <b>Complete</b>",
"sub_name": null,
"highlight_sub_name": null,
"abbreviation": null,
"highlight_abbreviation": null,
"category": "Pathology",
"type": "PACKAGE",
"available": true,
"is_fuzzy": false,
"leaf_count": 38,
"composition_count": 38,
"component_tests": null,
"highlight_component_tests": null
}
],
"partial_complete": false,
"is_success": true,
"status_code": 200
}