API

Free read-only JSON API. No authentication required for read endpoints.

GET /api/products

Returns a list of products with their supplier listings.

Query Parameters

ParamTypeDescription
qstringSearch by name or CAS number
casstringExact CAS number match (e.g. 75-05-8)
categorystringFilter by category (e.g. Solvents)
limitnumberResults per page (default 20, max 100)
offsetnumberPagination offset (default 0)

Example Request

curl "https://labpricecheck.vercel.app/api/products?cas=75-05-8"

Example Response

{
  "products": [
    {
      "name": "Acetonitrile",
      "cas_number": "75-05-8",
      "slug": "acetonitrile-75-05-8",
      "category": "Solvents",
      "molecular_formula": null,
      "molecular_weight": null,
      "listings": [
        {
          "supplier": "Fisher Scientific",
          "catalog_number": "A998-4",
          "grade": "Optima",
          "size": "4 L",
          "price": 152.00,
          "price_per_unit": 0.038,
          "unit": "mL",
          "url": "https://www.fishersci.com/...",
          "in_stock": true
        }
      ]
    }
  ],
  "total": 1,
  "limit": 20,
  "offset": 0
}

More Examples

All products

GET /api/products

Search by name

GET /api/products?q=methanol

Filter by category

GET /api/products?category=Solvents

Paginate results

GET /api/products?limit=10&offset=10

Rate limits: 60 requests per minute. Data updates daily. For bulk access or higher limits, get in touch.