---
title: "Search the ingredient library (max 10, public fields)"
method: GET
path: "/lib/search"
---

# Search the ingredient library (max 10, public fields)

`GET /lib/search`

## Request

- Base URL: `https://api.nanobaselabs.com`
- URL: `https://api.nanobaselabs.com/lib/search`
- Auth: API key in header `x-nb-key`

## Query parameters

- `q` string, required

## Response `200`

{total, results:[{n,c,up,...}]}

- object
  - `api_version` string

## Other responses

- `400`: error (see Error)
- `401`: error (see Error)
- `403`: error (see Error)
- `429`: limited; Retry-After gives the seconds to wait
- `500`: error (see Error)

---

[API](https://skmtc.dev/nanobaselabs/apis/nanobase-api.md) · [All operations](https://skmtc.dev/nanobaselabs/apis/nanobase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nanobaselabs/apis/nanobase-api/revisions/f9c58488c2fb?raw)
