NanoBase™ Ingredients API

The Ingredients API from NanoBase™ — 1 operation(s) for ingredients.

GitHub OpenAPI

Operations 1

POST /ingredients/submit Submit data for an unlisted ingredient (the REST form of the submit_ingredient… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nanobaselabs-com:nanobaselabs-com-ingredients-api"
All apis
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.

Get an API 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 Specification

nanobaselabs-com-ingredients-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NanoBase™ Ingredients API
  version: 1.3.0
  description: 'Loader envelope check, live ingredient search, INCI label builder and preservative guidance for formulas built on the NanoBase™ Architecture. Read https://api.nanobaselabs.com/ai/primer first. NanoBase™ composition, processing and equipment are protected trade secrets; queries seeking them are refused, logged and can suspend the key. Businesses sign up at https://api.nanobaselabs.com/register; use is governed by https://api.nanobaselabs.com/terms. Also available as a remote MCP server at https://api.nanobaselabs.com/mcp (Authorization: Bearer ).'
servers:
- url: https://api.nanobaselabs.com
security:
- key: []
tags:
- name: Ingredients
paths:
  /ingredients/submit:
    post:
      summary: Submit data for an unlisted ingredient (the REST form of the submit_ingredient…
      description: Stores an unlisted ingredient's props and supplier documents for the ingredient library. Stored without the formula, with a one-way pseudonymous account identifier; the document text is kept privately and never returned; links are never fetched. Each submission is used right away for your own account and added to the shared library after review by Pensive Beauty® Nanoscience Labs; properties less strict than a reviewed library entry are held for review. Up to 1 MB of new document text a day and 20 MB in total per account; over that the props are still recorded and the result says the text was not stored.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                n:
                  type: string
                  description: INCI name (inci or name accepted)
                props:
                  $ref: '#/components/schemas/Props'
                source:
                  $ref: '#/components/schemas/Sources'
                ingredients:
                  type: array
                  maxItems: 40
                  items:
                    type: object
                    properties:
                      n:
                        type: string
                      props:
                        $ref: '#/components/schemas/Props'
                      source:
                        $ref: '#/components/schemas/Sources'
                    required:
                    - n
                    - props
      responses:
        '200':
          description: '{ok, counted: false, results: [{n, inci, stored, status (candidate | community | rejected), document_backed, documents [{doc_type, doc_date, text_stored, document_backed}], reason, note, text_not_stored, documents_not_stored}], next, retention}'
          content:
            application/json:
              schema:
                type: object
                properties:
                  api_version:
                    type: string
        '400':
          description: invalid_input, invalid_props {field, detail, props_schema} or invalid_source {field, detail, source_schema}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: missing or invalid key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: api_key_required, or protected_ip
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              schema:
                type: integer
        '500':
          description: error (see Error)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: submitIngredient
      tags:
      - Ingredients
components:
  schemas:
    Error:
      type: object
      description: Every error from the formula endpoints. The error string is kept as before.
      required:
      - outcome
      - code
      - retryable
      - api_version
      properties:
        outcome:
          type: string
          enum:
          - error
        code:
          type: string
          description: snake_case, e.g. unauthorized, rate_limited, monthly_limit_reached, incomplete_limit, invalid_input, invalid_props, invalid_source, formula_exceeds_100, unknown_architecture, protected_ip, access_suspended, label_sweep_limited, engine_error
        error:
          type: string
        detail:
          type: string
        retryable:
          type: boolean
        retry_after_seconds:
          type:
          - number
          - 'null'
        resets_at:
          type: string
          description: ISO time the monthly limit resets (monthly_limit_reached)
        field:
          type: string
        line:
          type: integer
          description: 1-based formula line
        do_not_rephrase:
          type: boolean
          description: 'true on protected_ip: do not retry or rephrase'
        api_version:
          type: string
    Sources:
      anyOf:
      - $ref: '#/components/schemas/Source'
      - type: array
        minItems: 1
        maxItems: 3
        items:
          $ref: '#/components/schemas/Source'
    Props:
      type: object
      required:
      - class
      additionalProperties: false
      description: Properties of an ingredient the library does not list, researched by the caller's AI. The line is then assessed like a library ingredient of that class and echoed under declared_by_caller. Library entries win unless override is true. Invalid props return 400 invalid_props with the field.
      properties:
        class:
          type: string
          enum:
          - oil
          - water_soluble
          - peptide
          - lipopeptide
          - charged
          - polymer
          - surfactant
          - preservative
          - humectant
          - neutral
        charge:
          type: string
          enum:
          - nonionic
          - zwitterionic
          - cationic
          - anionic
        oil_type:
          type: string
          enum:
          - insoluble_heavy
          - light_ester_ripening_prone
          - polar
        mw_class:
          type: string
          enum:
          - low
          - medium
          - high
        mw:
          type: number
          minimum: 10
          maximum: 100000000
        valence:
          type: integer
          minimum: 1
          maximum: 4
        ionized_fraction:
          type: number
          minimum: 0
          maximum: 1
        form:
          type: string
          enum:
          - nonionic
          - salt
          - acid
        override:
          type: boolean
        logP:
          type: number
          minimum: -10
          maximum: 15
          description: logP of the neutral molecule
        pKa:
          oneOf:
          - type: number
          - type: array
            items:
              type: number
            minItems: 1
            maxItems: 4
          description: pKa value or list (conjugate-acid pKa for a base); requires acid_or_base
        acid_or_base:
          type: string
          enum:
          - acid
          - base
          - neutral
        pI:
          type: number
          minimum: 0
          maximum: 14
          description: isoelectric point (peptides, proteins, charged polymers; zwitterions such as amino acids and betaines send pI rather than acid pKa values); ph_path advisory
        neutral_solubility_pct:
          type: number
          minimum: 0
          maximum: 100
          description: water solubility of the neutral form in g per 100 g water at 20 to 25 C; ph_path advisory
        stability:
          type: array
          maxItems: 3
          items:
            anyOf:
            - type: string
              enum:
              - hydrolysis_prone
              - hydrolysis_prone_ester
              - oxidation_prone
              - deamidation_prone
            - type: object
              additionalProperties: false
              required:
              - flag
              properties:
                flag:
                  type: string
                  enum:
                  - hydrolysis_prone
                  - hydrolysis_prone_ester
                  - oxidation_prone
                  - deamidation_prone
                ph_above:
                  type: number
                  minimum: 0
                  maximum: 14
                ph_below:
                  type: number
                  minimum: 0
                  maximum: 14
          description: stability flags with the sensitive pH range if known; ph_path advisory
    Source:
      type: object
      required:
      - doc_type
      additionalProperties: false
      description: A supplier document that confirms an ingredient's information. Ask your user to upload it and send its text. Stored, never fetched; the text is kept privately and never returned or shown to other users; responses echo doc_type and doc_date only. A submission is used right away for your own account and added to the shared library after review by Pensive Beauty® Nanoscience Labs; a document whose text (doc_type plus at least about 200 characters) names the ingredient supports the review (a url alone does not count). Invalid sources return 400 invalid_source with the field.
      properties:
        doc_type:
          type: string
          enum:
          - TDS
          - SDS
          - CoA
          - spec
        supplier:
          type: string
          maxLength: 120
        doc_date:
          type: string
          description: YYYY, YYYY-MM or YYYY-MM-DD
        url:
          type: string
          maxLength: 500
          description: http(s); never fetched
        excerpt:
          type: string
          description: accepted as the same field as text
        text:
          type: string
          description: the document text, up to 200 KB (204,800 bytes UTF-8)
  securitySchemes:
    key:
      type: apiKey
      in: header
      name: x-nb-key