{
  "openapi": "3.1.0",
  "info": {
    "title": "Obviously Skincare: actions for AI assistants",
    "version": "1.0.0",
    "description": "Obviously Skincare is an independent UK skincare publication (owned by Neverhalf). Its endpoints search the ingredient encyclopedia (what each ingredient does, evidence, safety, pregnancy notes, how often it appears in UK products), check whether two actives can be used together, and search the site's guides. Data is CC BY 4.0: cite Obviously Skincare with a link.\n\nThe same tools are available over MCP (Streamable HTTP) at https://obviouslyskincare.com/mcp and in the page through WebMCP. Human-readable notes: https://obviouslyskincare.com/for-ai-assistants",
    "contact": {
      "name": "Obviously Skincare",
      "email": "obviouslyskincare@gmail.com",
      "url": "https://obviouslyskincare.com/for-ai-assistants"
    }
  },
  "servers": [
    {
      "url": "https://obviouslyskincare.com"
    }
  ],
  "externalDocs": {
    "description": "For AI assistants",
    "url": "https://obviouslyskincare.com/for-ai-assistants"
  },
  "tags": [
    {
      "name": "Read",
      "description": "Read-only data. No personal data."
    },
    {
      "name": "Datasets",
      "description": "Whole datasets as static JSON (CSV alongside). Free to use and show to users with a link to the page named in each."
    }
  ],
  "paths": {
    "/api/agent/ingredients": {
      "get": {
        "operationId": "search_ingredients",
        "summary": "Search skincare ingredients",
        "description": "Search Obviously Skincare's ingredient encyclopedia (735 ingredients: 133 full profiles with evidence tables, plus dictionary entries) by name, INCI name, alias or role. Returns a short summary, pregnancy note and links for each.",
        "tags": [
          "Read"
        ],
        "responses": {
          "200": {
            "description": "Success. JSON with ok: true.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid input. The message says which field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. Retry-After header gives seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Name, INCI name or role, e.g. 'niacinamide', 'retinal', 'humectant'.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Optional category, e.g. Active, Humectant, Emollient, UV filter, Exfoliant, Retinoid, Fragrance allergen.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "profiles_only",
            "in": "query",
            "required": false,
            "description": "Only full profiles (with evidence and references).",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many to return (default 10).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25
            }
          }
        ]
      }
    },
    "/api/agent/ingredient": {
      "get": {
        "operationId": "get_ingredient",
        "summary": "Get one ingredient's full profile",
        "description": "The full record for one ingredient: what it does, studied strength, pH, EU/UK limit, pregnancy note, evidence table with references, how to use it, combinations, safety, myths, FAQs and how often it appears in UK products. Use a slug from search_ingredients.",
        "tags": [
          "Read"
        ],
        "responses": {
          "200": {
            "description": "Success. JSON with ok: true.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid input. The message says which field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. Retry-After header gives seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "required": true,
            "description": "Ingredient slug, e.g. 'niacinamide'.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          }
        ]
      }
    },
    "/api/agent/pair": {
      "get": {
        "operationId": "check_ingredient_pair",
        "summary": "Can these two actives be used together?",
        "description": "Whether two skincare actives can be layered, with the reason and how to use them. Same rules as the site's ingredient checker. Ids: retinol (Retinol or retinal), tretinoin (Tretinoin (prescription)), adapalene (Adapalene), vitc (Vitamin C (L-ascorbic acid)), niacinamide (Niacinamide), aha (AHA (glycolic or lactic acid)), bha (BHA (salicylic acid)), pha (PHA (gluconolactone)), bpo (Benzoyl peroxide), azelaic (Azelaic acid), ha (Hyaluronic acid), ceramides (Ceramides), peptides (Peptides), copper (Copper peptides), bakuchiol (Bakuchiol), txa (Tranexamic acid), spf (Sunscreen).",
        "tags": [
          "Read"
        ],
        "responses": {
          "200": {
            "description": "Success. JSON with ok: true.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid input. The message says which field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. Retry-After header gives seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "a",
            "in": "query",
            "required": true,
            "description": "First ingredient id.",
            "schema": {
              "type": "string",
              "enum": [
                "retinol",
                "tretinoin",
                "adapalene",
                "vitc",
                "niacinamide",
                "aha",
                "bha",
                "pha",
                "bpo",
                "azelaic",
                "ha",
                "ceramides",
                "peptides",
                "copper",
                "bakuchiol",
                "txa",
                "spf"
              ]
            }
          },
          {
            "name": "b",
            "in": "query",
            "required": true,
            "description": "Second ingredient id.",
            "schema": {
              "type": "string",
              "enum": [
                "retinol",
                "tretinoin",
                "adapalene",
                "vitc",
                "niacinamide",
                "aha",
                "bha",
                "pha",
                "bpo",
                "azelaic",
                "ha",
                "ceramides",
                "peptides",
                "copper",
                "bakuchiol",
                "txa",
                "spf"
              ]
            }
          }
        ]
      }
    },
    "/api/agent/guides": {
      "get": {
        "operationId": "search_guides",
        "summary": "Search Obviously Skincare guides",
        "description": "Search the site's guides and product round-ups by words in the title or description. Returns title, description, date and URL.",
        "tags": [
          "Read"
        ],
        "responses": {
          "200": {
            "description": "Success. JSON with ok: true.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid input. The message says which field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. Retry-After header gives seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Words to look for, e.g. 'sensitive skin cleanser' or 'vitamin c serum'.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many to return (default 8).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            }
          }
        ]
      }
    },
    "/api/agent/datasets": {
      "get": {
        "operationId": "list_datasets",
        "summary": "List this site's datasets",
        "description": "Every dataset Obviously Skincare publishes (JSON and CSV), with what it holds, row count, date updated and links. Free to use and show to users with a link to the page named.",
        "tags": [
          "Read"
        ],
        "responses": {
          "200": {
            "description": "Success. JSON with ok: true.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid input. The message says which field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. Retry-After header gives seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": []
      }
    },
    "/api/agent/dataset": {
      "get": {
        "operationId": "get_dataset",
        "summary": "Get a dataset",
        "description": "Pull one of Obviously Skincare's datasets by name (see list_datasets): metadata, units, sources, licence and rows. Use offset and limit to page through big ones (up to 500 rows a call), or download the JSON/CSV file directly.",
        "tags": [
          "Read"
        ],
        "responses": {
          "200": {
            "description": "Success. JSON with ok: true.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid input. The message says which field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. Retry-After header gives seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "description": "Dataset name from list_datasets.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "First row to return (default 0).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows to return (default 200).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          }
        ]
      }
    },
    "/data/skincare-ingredient-frequency-uk.json": {
      "get": {
        "operationId": "dataset_skincare_ingredient_frequency_uk",
        "summary": "How often each ingredient appears in UK skincare",
        "description": "Share of 5406 UK skincare products whose published ingredient list includes each ingredient, with median label position. 603 rows, updated 2026-11-21. CSV: https://obviouslyskincare.com/data/skincare-ingredient-frequency.csv. CC BY 4.0: free to use and show to your users; credit Obviously Skincare with a link to https://obviouslyskincare.com/uk-skincare-ingredients-analysis.",
        "tags": [
          "Datasets"
        ],
        "responses": {
          "200": {
            "description": "The whole dataset: metadata plus rows.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "updated": {
                      "type": "string"
                    },
                    "licence": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/uk-skincare-study.json": {
      "get": {
        "operationId": "dataset_uk_skincare_study",
        "summary": "UK skincare ingredients study: aggregated results",
        "description": "Shares of UK skincare products with fragrance, named allergens, essential oils, sulfates and other attributes, by group, with 95% confidence intervals, from the ingredient lists of 5406 products from 319 brands. 162 rows, updated 2026-11-21. CSV: https://obviouslyskincare.com/data/uk-skincare-study.csv. CC BY 4.0: free to use and show to your users; credit Obviously Skincare with a link to https://obviouslyskincare.com/uk-skincare-ingredients-analysis.",
        "tags": [
          "Datasets"
        ],
        "responses": {
          "200": {
            "description": "The whole dataset: metadata plus rows.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "updated": {
                      "type": "string"
                    },
                    "licence": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/ingredients.json": {
      "get": {
        "operationId": "dataset_ingredients",
        "summary": "Skincare ingredient encyclopedia",
        "description": "Every ingredient profile and dictionary entry: what it does, category, pregnancy note and how common it is in UK products. The JSON holds the full records (evidence tables, references, safety, FAQs); the CSV is one line per ingredient. 735 rows, updated 2026-12-03. CSV: https://obviouslyskincare.com/data/ingredients.csv. CC BY 4.0: free to use and show to your users; credit Obviously Skincare with a link to https://obviouslyskincare.com/ingredients.",
        "tags": [
          "Datasets"
        ],
        "responses": {
          "200": {
            "description": "The whole dataset: metadata plus rows.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "updated": {
                      "type": "string"
                    },
                    "licence": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/ingredient-pairs.json": {
      "get": {
        "operationId": "dataset_ingredient_pairs",
        "summary": "Can these skincare actives be used together?",
        "description": "Every pair of 17 common actives with a verdict (fine together, different times of day, alternate nights, don't layer), the reason and how to use them. Same rules as the site's ingredient pair checker. 136 rows, updated 2026-12-03. CSV: https://obviouslyskincare.com/data/ingredient-pairs.csv. CC BY 4.0: free to use and show to your users; credit Obviously Skincare with a link to https://obviouslyskincare.com/tools/ingredient-checker.",
        "tags": [
          "Datasets"
        ],
        "responses": {
          "200": {
            "description": "The whole dataset: metadata plus rows.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "updated": {
                      "type": "string"
                    },
                    "licence": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/guides.json": {
      "get": {
        "operationId": "dataset_guides",
        "summary": "Guide index",
        "description": "Every published guide: title, description and link. 294 rows, updated 2026-12-03. CSV: https://obviouslyskincare.com/data/guides.csv. CC BY 4.0: free to use and show to your users; credit Obviously Skincare with a link to https://obviouslyskincare.com/.",
        "tags": [
          "Datasets"
        ],
        "responses": {
          "200": {
            "description": "The whole dataset: metadata plus rows.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "updated": {
                      "type": "string"
                    },
                    "licence": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/index.json": {
      "get": {
        "operationId": "list_dataset_files",
        "summary": "Every dataset on this site",
        "description": "Names, descriptions, dates and JSON/CSV links for each dataset.",
        "tags": [
          "Datasets"
        ],
        "responses": {
          "200": {
            "description": "Dataset index",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean",
            "const": false
          },
          "error": {
            "type": "string",
            "description": "Machine-readable code, e.g. invalid_input, invalid_postcode, consent_required, rate_limited."
          },
          "message": {
            "type": "string",
            "description": "Plain-English explanation to pass on."
          }
        },
        "required": [
          "ok",
          "error",
          "message"
        ]
      }
    }
  }
}