{
"url": "https://github.com/",
"finalUrl": "https://github.com/",
"statusCode": 200,
"redirectChain": [
{
"url": "https://github.com/",
"statusCode": 200,
"cookieCount": 3
}
],
"cookieCount": 3,
"grade": "A+",
"score": 99,
"summary": {
"errors": 0,
"warnings": 0,
"infos": 3
},
"cookies": [
{
"name": "_gh_sess",
"valueLength": 354,
"valuePreview": "55D…",
"attributes": {
"domain": null,
"path": "/",
"expires": null,
"maxAge": null,
"secure": true,
"httpOnly": true,
"sameSite": "Lax",
"partitioned": false,
"priority": null
},
"prefix": null,
"lifetime": {
"type": "session",
"seconds": null,
"source": null
},
"deletion": false,
"sizeBytes": 362,
"issues": [],
"score": 100,
"grade": "A+",
"setBy": {
"hop": 1,
"url": "https://github.com/",
"statusCode": 200
}
},
{
"name": "_octo",
"valueLength": 27,
"valuePreview": "GH1…",
"attributes": {
"domain": ".github.com",
"path": "/",
"expires": "2027-10-12T16:56:41.000Z",
"maxAge": null,
"secure": true,
"httpOnly": false,
"sameSite": "Lax",
"partitioned": false,
"priority": null
},
"prefix": null,
"lifetime": {
"type": "persistent",
"seconds": 31536000,
"source": "expires"
},
"deletion": false,
"sizeBytes": 32,
"issues": [
{
"severity": "info",
"code": "domain_leading_dot",
"message": "A leading dot in Domain is ignored by modern browsers (RFC 6265 section 5.2.3); it can be removed."
},
{
"severity": "info",
"code": "httponly_missing",
"message": "The cookie has no HttpOnly attribute, so scripts can read it. Fine if JavaScript needs it; otherwise add HttpOnly."
}
],
"score": 98,
"grade": "A+",
"setBy": {
"hop": 1,
"url": "https://github.com/",
"statusCode": 200
}
},
{
"name": "logged_in",
"valueLength": 2,
"valuePreview": "…",
"attributes": {
"domain": ".github.com",
"path": "/",
"expires": "2027-10-12T16:56:41.000Z",
"maxAge": null,
"secure": true,
"httpOnly": true,
"sameSite": "Lax",
"partitioned": false,
"priority": null
},
"prefix": null,
"lifetime": {
"type": "persistent",
"seconds": 31536000,
"source": "expires"
},
"deletion": false,
"sizeBytes": 11,
"issues": [
{
"severity": "info",
"code": "domain_leading_dot",
"message": "A leading dot in Domain is ignored by modern browsers (RFC 6265 section 5.2.3); it can be removed."
}
],
"score": 99,
"grade": "A+",
"setBy": {
"hop": 1,
"url": "https://github.com/",
"statusCode": 200
}
}
],
"cached": false,
"checkedAt": "2026-10-12T16:56:41.406Z"
}
curl --location --request GET 'https://zylalabs.com/api/14204/set-cookie+analyzer+api/35259/analyze+the+set-cookie+headers+of+a+url' --header 'Authorization: Bearer YOUR_API_KEY'
{
"cookieCount": 3,
"grade": "D",
"score": 66,
"summary": {
"errors": 2,
"warnings": 4,
"infos": 5
},
"assumptions": {
"https": true,
"host": null,
"note": "Parsed offline. Secure checks assume the cookie was served over HTTPS (set \"https\": false to change); Domain checks run only when \"host\" is given."
},
"cookies": [
{
"name": "__Host-id",
"valueLength": 1,
"valuePreview": "…",
"attributes": {
"domain": "a.com",
"path": null,
"expires": null,
"maxAge": null,
"secure": false,
"httpOnly": false,
"sameSite": null,
"partitioned": false,
"priority": null
},
"prefix": "__Host-",
"lifetime": {
"type": "session",
"seconds": null,
"source": null
},
"deletion": false,
"sizeBytes": 10,
"issues": [
{
"severity": "error",
"code": "host_prefix_violation",
"message": "A __Host- cookie requires the Secure attribute, Path=/, no Domain attribute (RFC 6265bis section 4.1.3.2); browsers reject it otherwise."
},
{
"severity": "warning",
"code": "secure_missing",
"message": "The cookie has no Secure attribute although it was served over HTTPS, so browsers may also send it over plain HTTP."
},
{
"severity": "info",
"code": "httponly_missing",
"message": "The cookie has no HttpOnly attribute, so scripts can read it. Fine if JavaScript needs it; otherwise add HttpOnly."
},
{
"severity": "info",
"code": "samesite_missing",
"message": "No SameSite attribute: browsers default to Lax (Chrome, Edge, Firefox in some modes). State the intent explicitly with SameSite=Lax, Strict or None."
}
],
"score": 63,
"grade": "D"
},
{
"name": "s",
"valueLength": 1,
"valuePreview": "…",
"attributes": {
"domain": null,
"path": null,
"expires": null,
"maxAge": null,
"secure": false,
"httpOnly": false,
"sameSite": "None",
"partitioned": false,
"priority": null
},
"prefix": null,
"lifetime": {
"type": "session",
"seconds": null,
"source": null
},
"deletion": false,
"sizeBytes": 2,
"issues": [
{
"severity": "error",
"code": "samesite_none_requires_secure",
"message": "SameSite=None requires the Secure attribute; Chrome, Firefox and Safari reject the cookie otherwise (RFC 6265bis section 4.1.2.7)."
},
{
"severity": "warning",
"code": "secure_missing",
"message": "The cookie has no Secure attribute although it was served over HTTPS, so browsers may also send it over plain HTTP."
},
{
"severity": "info",
"code": "httponly_missing",
"message": "The cookie has no HttpOnly attribute, so scripts can read it. Fine if JavaScript needs it; otherwise add HttpOnly."
}
],
"score": 64,
"grade": "D"
},
{
"name": "t",
"valueLength": 1,
"valuePreview": "…",
"attributes": {
"domain": null,
"path": null,
"expires": null,
"maxAge": 99999999,
"secure": false,
"httpOnly": false,
"sameSite": null,
"partitioned": false,
"priority": null
},
"prefix": null,
"lifetime": {
"type": "persistent",
"seconds": 99999999,
"source": "max-age"
},
"deletion": false,
"sizeBytes": 2,
"issues": [
{
"severity": "warning",
"code": "lifetime_exceeds_400_days",
"message": "The lifetime is about 1157 days; Chrome caps cookie lifetime at 400 days (RFC 6265bis section 5.5), so it will be truncated."
},
{
"severity": "warning",
"code": "secure_missing",
"message": "The cookie has no Secure attribute although it was served over HTTPS, so browsers may also send it over plain HTTP."
},
{
"severity": "info",
"code": "httponly_missing",
"message": "The cookie has no HttpOnly attribute, so scripts can read it. Fine if JavaScript needs it; otherwise add HttpOnly."
},
{
"severity": "info",
"code": "samesite_missing",
"message": "No SameSite attribute: browsers default to Lax (Chrome, Edge, Firefox in some modes). State the intent explicitly with SameSite=Lax, Strict or None."
}
],
"score": 78,
"grade": "C"
}
],
"checkedAt": "2026-10-12T16:57:50.219Z"
}
curl --location --request POST 'https://zylalabs.com/api/14204/set-cookie+analyzer+api/35260/analyze+pasted+set-cookie+header+text+offline' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"headers":"Set-Cookie: __Host-id=1; Domain=a.com\nSet-Cookie: s=1; SameSite=None\nSet-Cookie: t=1; Max-Age=99999999"}'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए सेट-कुकी विश्लेषक API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।
GET अंतिम बिंदु एक JSON वस्तु लौटाता है जिसमें कुकी विश्लेषण परिणाम शामिल होते हैं जैसे अंतिम URL स्थिति कोड रीडायरेक्ट श्रृंखला कुकी संख्या ग्रेड स्कोर और विस्तृत कुकी विशेषताएँ POST अंतिम बिंदु समान डेटा लौटाता है लेकिन प्रदान किए गए सेट-कुकी हेडर पर ध्यान केंद्रित करता है जिसमें त्रुटियाँ चेतावनियाँ और कुकी विशेषताएँ शामिल होती हैं
मुख्य क्षेत्र शामिल हैं `url` `finalUrl` `statusCode` `cookieCount` `grade` `score` और `cookies` प्रत्येक कुकी ऑब्जेक्ट में ऐसे विशेषताएँ होती हैं जैसे `name` `valueLength` `valuePreview` और ध्वज जैसे `secure` `httpOnly` और `sameSite`
प्रस्तुत डेटा JSON फ़ॉर्मेट में है संरचना में एक उच्च स्तर का ऑब्जेक्ट शामिल है जिसमें सारांश जानकारी और कुकी ऑब्जेक्ट्स की एक श्रृंखला है प्रत्येक में विशेषताएँ और अनुपालन मुद्दों का विवरण है उदाहरण के लिए कुकीज़ श्रृंखला में व्यक्तिगत कुकी विवरण होते हैं जैसे नाम मान लंबाई और विशेषताएँ
GET एंडपॉइंट कुक्की विशेषताएँ अनुपालन ग्रेड और रीडायरेक्ट विश्लेषण प्रदान करता है POST एंडपॉइंट दिए गए Set-Cookie हेडर पर अंतर्दृष्टि प्रदान करता है जिसमें कुक्की विशेषताओं और मानकों के अनुपालन से संबंधित त्रुटियाँ और चेतावनियाँ शामिल हैं
प्रतिक्रिया डेटा को मुख्य वस्तु में व्यवस्थित किया गया है जिसमें सारांश जानकारी और कुकीज का एक एरे शामिल है प्रत्येक कुकी वस्तु में इसके लक्षण और अनुपालन स्थिति शामिल हैं जिससे उपयोगकर्ता कुकी सुरक्षा और मानकों के अनुपालन का आसानी से आकलन कर सकें
डेटा निर्दिष्ट URL या प्रदान किए गए सेट-कुकी हेडर के विश्लेषण के दौरान प्राप्त HTTP प्रतिक्रियाओं से लिया गया है API RFC 6265 और कुकी गुणों और अनुपालन का आकलन करने के लिए सर्वोत्तम प्रथाओं का पालन करता है
सामान्य उपयोग के मामले में वेब एप्लिकेशनों के लिए कुकी सुरक्षा का ऑडिट करना कुकी मानकों के साथ अनुपालन सुनिश्चित करना और कुकी कॉन्फ़िगरेशन में संभावित कमजोरियों की पहचान करना शामिल है डेवलपर्स इस विश्लेषण को स्वचालित जांच के लिए CI/CD पाइपलाइनों में एकीकृत कर सकते हैं
उपयोगकर्ता GET एंडपॉइंट में `fresh` पैरामीटर निर्दिष्ट करके अनुरोधों को कस्टमाइज़ कर सकते हैं ताकि कैश किए गए परिणामों को बायपास किया जा सके POST एंडपॉइंट में उपयोगकर्ता विभिन्न स्वरूपों में कस्टम सेट-कुकी हेडर प्रदान कर सकते हैं जो विशिष्ट कुकीज़ का व्यक्तिगत विश्लेषण करने की अनुमति देते हैं