TestWell Compare API
The compare API from TestWell, for compare.
The compare API from TestWell, for compare.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/test-well-com:test-well-com-compare-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TestWell Agent Compare API
version: 1.2.0
description: 'Cash-pay lab tests without insurance: search TestWell''s catalog, get all-in quotes by state (Quest, Labcorp, BioReference in NY/NJ), find draw sites by ZIP, look up physician-reviewed reference ranges, convert units, calculate free testosterone, compare providers and read guides. Read-only; purchases complete on test-well.com.
Pricing rule: sticker prices plus one flat $6.00 lab processing fee per order. All endpoints are public, read-only and rate limited (120 requests/minute/IP).'
contact:
name: TestWell
url: https://www.test-well.com/developers
email: support@test-well.com
termsOfService: https://www.test-well.com/terms
servers:
- url: https://www.test-well.com
tags:
- name: compare
paths:
/api/agent/compare_prices:
post:
operationId: compare_prices
summary: Compare all-in prices across providers for a test
description: For one blood test, the all-in single-test price (sticker + per-order fees) at TestWell and at every tracked direct-to-consumer provider with a verified equivalent — JustLabs, Quest, Labcorp OnDemand, Ulta Lab Tests, Walk-In Lab, HealthLabs and more — each with the date it was verified, plus…
tags:
- compare
x-openai-isConsequential: false
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
test:
type: string
minLength: 1
maxLength: 80
description: Test slug or name, e.g. 'tsh', 'lipid panel', 'vitamin-d'
required:
- test
examples:
example1:
summary: TSH all-in at TestWell vs JustLabs, Quest, Labcorp and others
value:
test: tsh
responses:
'200':
description: Tool result
content:
application/json:
schema:
type: object
required:
- tool
- result
properties:
tool:
type: string
enum:
- compare_prices
result:
type: object
properties:
found:
type: boolean
test:
type: object
properties:
name:
type: string
slug:
type: string
cpt:
anyOf:
- type: string
- type: 'null'
category:
type: string
additionalProperties: {}
cheapestSingleTestAllIn:
type: object
properties:
provider:
type: string
providerName:
type: string
sticker:
type: number
description: USD
perOrderFees:
type: number
description: USD
allIn:
description: Sticker + that provider's per-order fees, one test ordered alone
type: number
pricedAt:
description: Date the price was verified (YYYY-MM-DD)
type: string
url:
type: string
note:
anyOf:
- type: string
- type: 'null'
additionalProperties: {}
providers:
description: Sorted by all-in price, TestWell included
type: array
items:
type: object
properties:
provider:
type: string
providerName:
type: string
sticker:
type: number
description: USD
perOrderFees:
type: number
description: USD
allIn:
description: Sticker + that provider's per-order fees, one test ordered alone
type: number
pricedAt:
description: Date the price was verified (YYYY-MM-DD)
type: string
url:
type: string
note:
anyOf:
- type: string
- type: 'null'
additionalProperties: {}
reference:
type: object
properties:
hospitalTypical:
anyOf:
- type: number
description: USD
- type: 'null'
questDirect:
anyOf:
- type: number
description: USD
- type: 'null'
questDirectAllIn:
anyOf:
- type: number
description: USD
- type: 'null'
questDirectCheckedAt:
anyOf:
- type: string
- type: 'null'
questDirectUrl:
anyOf:
- type: string
- type: 'null'
additionalProperties: {}
caveats:
type: array
items:
type: string
dataset:
type: string
description: Absolute https URL on test-well.com
methodology:
type: string
license:
type: string
query:
type: string
hint:
type: string
additionalProperties: {}
'400':
description: Invalid input
content:
application/json:
schema:
$ref: '#/components/schemas/ToolError'
'429':
description: Rate limited
content:
application/json:
schema:
$ref: '#/components/schemas/ToolError'
/api/agent/compare_provider:
post:
operationId: compare_provider
summary: Compare TestWell with another lab-testing service
description: 'Honest side-by-side of TestWell and another direct-to-consumer lab service (Quest Direct, Labcorp OnDemand, Function Health, JustLabs, Ulta Lab Tests, …): pricing model, per-order fees, labs, turnaround, where each wins, spot prices on common tests as sticker AND all-in, with verification dates…'
tags:
- compare
x-openai-isConsequential: false
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
provider:
description: Competitor slug or name, e.g. 'quest-direct', 'Function Health', 'justlabs'
type: string
maxLength: 60
examples:
example1:
summary: Sticker vs all-in with their per-order fees
value:
provider: justlabs
responses:
'200':
description: Tool result
content:
application/json:
schema:
type: object
required:
- tool
- result
properties:
tool:
type: string
enum:
- compare_provider
result:
type: object
properties:
found:
type: boolean
competitor:
type: object
properties:
name:
type: string
url:
type: string
pricingModel:
type: string
perOrderFees: {}
labPartners:
type: array
items:
type: string
statesServed:
type: number
additionalProperties: {}
testwell:
type: object
properties: {}
additionalProperties: {}
verdict:
type: string
spotPrices:
type: array
items:
type: object
properties:
test:
type: string
testwell: {}
competitor: {}
note:
anyOf:
- type: string
- type: 'null'
additionalProperties: {}
testWellWinsAt:
type: array
items:
type: string
competitorWinsAt:
type: array
items:
type: string
testWellNotFor:
type: array
items:
type: string
verified:
description: Date the competitor's prices were verified
type: string
sources:
type: array
items:
type: string
url:
type: string
description: Absolute https URL on test-well.com
providers:
description: Returned when no provider was named
type: array
items:
type: object
properties:
slug:
type: string
name:
type: string
url:
type: string
additionalProperties: {}
additionalProperties: {}
'400':
description: Invalid input
content:
application/json:
schema:
$ref: '#/components/schemas/ToolError'
'429':
description: Rate limited
content:
application/json:
schema:
$ref: '#/components/schemas/ToolError'
components:
schemas:
ToolError:
type: object
properties:
error:
type: string
issues:
type: array
items:
type: object
additionalProperties: true
required:
- error
externalDocs:
url: https://www.test-well.com/developers
description: Developer documentation
x-mcp:
url: https://www.test-well.com/mcp
serverCard: https://www.test-well.com/.well-known/mcp/server-card.json