Skip to main content

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 string
    Example: application/json
  • x-access-key string
    Example: 1mg_client_public_access_key
  • X-Authorization string
    Example: {{X-Authorization}}
Responses

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

Schema
  • object
Loading...