Dokumentace API kosmetických ingrediencí
Kompletní reference API pro endpointy analýzy INCI, skóre bezpečnosti, detekce alergenů a kompatibility s pokožkou.
Autentizace pro kosmetické API
Všechny požadavky na INCI API vyžadují klíč API zaslaný v hlavičce X-API-Key. Bezplatný klíč API získáte v Panelu.
curl -X GET "https://api.inciapi.com/v1/products/3337875597913" \
-H "X-API-Key: sk_live_your_api_key"Upozornění k datům
Important Disclaimer
The ingredient safety data, scores, and ratings provided by INCI API are for informational and educational purposes only. This information is compiled from public databases and scientific literature, and may contain errors, omissions, or outdated information. INCI API does not guarantee the accuracy, completeness, or reliability of any data presented.
This service does not provide medical, dermatological, or health advice. Safety scores and ratings are algorithmic assessments based on available data and should not be used as a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare professional or dermatologist before making decisions about cosmetic products, especially regarding pregnancy safety, allergies, or skin conditions.
INCI API assumes no liability for any decisions made based on the information provided.
Všechny odpovědi API obsahují data o ingrediencích kompilovaná z veřejných zdrojů, jako jsou EU CosIng, zprávy CIR a publikovaná vědecká literatura. Přesnost není zaručena. Skóre bezpečnosti jsou algoritmické odhady na základě dostupných dat, nikoli klinická hodnocení. Uživatelé musí všechny informace o ingrediencích nezávisle ověřit. Úplné podmínky najdete v našich Podmínkách služby a Licenční smlouvě API.
Endpointy API analýzy INCI
/v1/products/:barcodeFree+Vyhledejte kosmetický produkt podle čárového kódu. Vrací informace o produktu, značku, seznam INCI a obrázky.
Požadavek
curl -X GET "https://api.inciapi.com/v1/products/3337875597913" \
-H "X-API-Key: sk_live_your_api_key"Odpověď
{
"success": true,
"data": {
"barcode": "3337875597913",
"name": "La Roche-Posay Toleriane Double Repair",
"brand": "La Roche-Posay",
"category": ["Skincare", "Moisturizer"],
"imageUrls": ["https://cdn.inciapi.com/..."],
"inciList": [
"Aqua", "Glycerin", "Dimethicone",
"Niacinamide", "Ceramide NP"
],
"vertical": "cosmetics",
"qualityScore": 92
}
}/v1/products/:barcode/safetyStarter+Získejte úplnou bezpečnostní analýzu produktu. Obsahuje celkové skóre a hodnocení podle ingrediencí.
Požadavek
curl -X GET "https://api.inciapi.com/v1/products/3337875597913/safety" \
-H "X-API-Key: sk_live_your_api_key"Odpověď
{
"success": true,
"data": {
"overallSafetyScore": 92,
"cleanBeautyScore": 88,
"ingredients": [
{
"inciName": "Aqua",
"safetyRating": 1,
"functions": ["Solvent"],
"isAllergen": false,
"isPregnancySafe": true
},
{
"inciName": "Niacinamide",
"safetyRating": 1,
"functions": ["Antioxidant", "Brightening"],
"isAllergen": false,
"isPregnancySafe": true
},
{
"inciName": "Phenoxyethanol",
"safetyRating": 4,
"functions": ["Preservative"],
"isAllergen": false,
"isPregnancySafe": true
}
]
}
}/v1/products/:barcode/allergensStarter+Získejte upozornění na alergeny v produktu. Kontroluje 80 povinných EU alergenů, kontaktní senzibilizátory a alergeny z konzervantů.
Požadavek
curl -X GET "https://api.inciapi.com/v1/products/3337875597913/allergens" \
-H "X-API-Key: sk_live_your_api_key"Odpověď
{
"success": true,
"data": {
"allergenWarnings": [
{
"inciName": "Linalool",
"allergenType": "EU Fragrance Allergen",
"severity": "moderate",
"description": "Common fragrance allergen, mandatory labeling in EU"
},
{
"inciName": "Citronellol",
"allergenType": "EU Fragrance Allergen",
"severity": "low",
"description": "Fragrance component, potential sensitizer"
}
],
"totalAllergens": 2,
"hasEuAllergens": true,
"hasContactSensitizers": false
}
}/v1/products/:barcode/compatibility?skinType=sensitiveBrzy+Zkontrolujte kompatibilitu s typem pokožky. Podporované typy: mastná, suchá, citlivá, smíšená, náchylná k akné, normální.
Požadavek
curl -X GET "https://api.inciapi.com/v1/products/3337875597913/compatibility?skinType=sensitive" \
-H "X-API-Key: sk_live_your_api_key"Odpověď
{
"success": true,
"data": {
"skinType": "sensitive",
"compatible": true,
"score": 95,
"concerns": [],
"recommendations": [
"Product is fragrance-free",
"Contains ceramides (skin barrier support)",
"Contains niacinamide (anti-inflammatory)"
],
"allSkinTypes": [
{ "skinType": "sensitive", "compatible": true, "score": 95 },
{ "skinType": "dry", "compatible": true, "score": 90 },
{ "skinType": "oily", "compatible": true, "score": 82 },
{ "skinType": "combination", "compatible": true, "score": 88 },
{ "skinType": "acne-prone", "compatible": true, "score": 78 },
{ "skinType": "normal", "compatible": true, "score": 96 }
]
}
}/v1/products/:barcode/pregnancyBrzy+Zkontrolujte bezpečnost v těhotenství. Označuje retinoidy, kyselinu salicylovou (BHA), hydrochinon a další ingredience nebezpečné v těhotenství.
Požadavek
curl -X GET "https://api.inciapi.com/v1/products/3337875597913/pregnancy" \
-H "X-API-Key: sk_live_your_api_key"Odpověď
{
"success": true,
"data": {
"pregnancySafe": true,
"warnings": [],
"flaggedIngredients": [],
"safeAlternatives": [],
"note": "No pregnancy-unsafe ingredients detected"
}
}/v1/analyzeBrzy+Analyzujte surový seznam INCI bez čárového kódu. Pošlete názvy ingrediencí a získejte úplnou analýzu bezpečnosti.
Požadavek
curl -X POST "https://api.inciapi.com/v1/analyze" \
-H "X-API-Key: sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"inci": [
"Aqua", "Glycerin", "Niacinamide",
"Cetearyl Alcohol", "Phenoxyethanol",
"Retinol", "Linalool"
]
}'Odpověď
{
"success": true,
"data": {
"overallSafetyScore": 78,
"cleanBeautyScore": 72,
"ingredients": [
{ "inciName": "Aqua", "safetyRating": 1, "isAllergen": false, "isPregnancySafe": true },
{ "inciName": "Glycerin", "safetyRating": 1, "isAllergen": false, "isPregnancySafe": true },
{ "inciName": "Niacinamide", "safetyRating": 1, "isAllergen": false, "isPregnancySafe": true },
{ "inciName": "Retinol", "safetyRating": 7, "isAllergen": false, "isPregnancySafe": false },
{ "inciName": "Linalool", "safetyRating": 5, "isAllergen": true, "isPregnancySafe": true }
],
"allergenWarnings": [
{ "inciName": "Linalool", "allergenType": "EU Fragrance Allergen", "severity": "moderate" }
],
"pregnancySafe": false,
"pregnancyWarnings": ["Retinol: Vitamin A derivative, avoid during pregnancy"]
}
}/v1/ingredients/:inciNameFree+Získejte podrobné informace o konkrétní ingredienci podle jejího názvu INCI.
Požadavek
curl -X GET "https://api.inciapi.com/v1/ingredients/Niacinamide" \
-H "X-API-Key: sk_live_your_api_key"Odpověď
{
"success": true,
"data": {
"inciName": "Niacinamide",
"commonName": "Vitamin B3",
"casNumber": "98-92-0",
"safetyRating": 1,
"functions": ["Antioxidant", "Brightening", "Anti-inflammatory"],
"isAllergen": false,
"isPregnancySafe": true,
"comedogenicity": 0,
"suitableSkinTypes": ["oily", "dry", "sensitive", "combination", "acne-prone", "normal"],
"euStatus": "approved",
"description": "Well-researched skincare ingredient. Helps with hyperpigmentation, fine lines, and skin barrier function."
}
}/v1/ingredients/search?q=retinolFree+Hledejte ingredience podle názvu nebo funkce. Vrací odpovídající ingredience s daty bezpečnosti.
Požadavek
curl -X GET "https://api.inciapi.com/v1/ingredients/search?q=retinol&limit=5" \
-H "X-API-Key: sk_live_your_api_key"Odpověď
{
"success": true,
"data": {
"ingredients": [
{
"inciName": "Retinol",
"safetyRating": 7,
"functions": ["Anti-Aging", "Cell Turnover"],
"isAllergen": false,
"isPregnancySafe": false
},
{
"inciName": "Retinyl Palmitate",
"safetyRating": 5,
"functions": ["Anti-Aging", "Antioxidant"],
"isAllergen": false,
"isPregnancySafe": false
}
],
"total": 2,
"page": 1,
"pageSize": 5
}
}/v1/products/submitFree+Odešlete chybějící kosmetický produkt s jeho seznamem INCI. Příspěvkové produkty jsou dostupné po moderaci.
Požadavek
curl -X POST "https://api.inciapi.com/v1/products/submit" \
-H "X-API-Key: sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"barcode": "1234567890123",
"name": "My Beauty Serum",
"brand": "Indie Beauty",
"inciList": ["Aqua", "Hyaluronic Acid", "Niacinamide"]
}'Odpověď
{
"success": true,
"data": {
"submissionId": "sub_abc123",
"status": "pending_review",
"message": "Product submitted successfully. Will be available after moderation."
}
}Limity požadavků kosmetického API
Limity požadavků API pro analýzu ingrediencí závisí na úrovni vašeho předplatného. Limity jsou vraceny v hlavičkách odpovědi.
| Plán | Limit | Reset |
|---|---|---|
| Free | 100 požadavků/den | Denně o půlnoci UTC |
| Starter | 5 000 požadavků/měs. | Měsíčně k datu fakturace |
Hlavičky odpovědi:
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4831
X-RateLimit-Reset: 1711929600Chybové kódy INCI API
| Kód | Význam | Akce |
|---|---|---|
400 | Špatný požadavek | Zkontrolujte parametry a formát těla požadavku |
401 | Neautorizováno | Zkontrolujte klíč API v hlavičce X-API-Key |
403 | Zakázáno | Endpoint vyžaduje vyšší plán |
404 | Nenalezeno | Produkt nebo ingredience není v naší databázi |
429 | Limit požadavků překročen | Počkejte sekundy uvedené v Retry-After a zkuste to znovu |
500 | Vnitřní chyba serveru | Zkuste to později; pokud potíže přetrvávají, kontaktujte podporu |
Formát chybové odpovědi:
{
"success": false,
"error": {
"code": 404,
"message": "Product not found for barcode: 1234567890123"
}
}