बताए गए यूआरएल के पेज पर PageSpeed विश्लेषण करता है. साथ ही, PageSpeed स्कोर, उस पेज को ज़्यादा तेज़ बनाने के सुझावों की सूची, और अन्य जानकारी दिखाता है. इसे अभी आज़माएं.
अनुरोध
एचटीटीपी अनुरोध
GET https://www.googleapis.com/pagespeedonline/v5/runPagespeed
पैरामीटर
पैरामीटर का नाम | वैल्यू | ब्यौरा |
---|---|---|
ज़रूरी क्वेरी पैरामीटर | ||
url |
string |
वह यूआरएल जिसे फ़ेच और उसका विश्लेषण करना है |
वैकल्पिक क्वेरी पैरामीटर | ||
category |
string |
चलाने के लिए लाइटहाउस कैटगरी. अगर कोई कैटगरी नहीं दी जाती है, तो सिर्फ़ परफ़ॉर्मेंस कैटगरी को चलाया जाएगा
स्वीकार की जाने वाली वैल्यू ये हैं:
|
locale |
string |
फ़ॉर्मैट किए गए नतीजों को स्थानीय भाषा में उपलब्ध कराने के लिए इस्तेमाल की जाने वाली स्थान-भाषा |
strategy |
string |
विश्लेषण की रणनीति (डेस्कटॉप या मोबाइल) और डेस्कटॉप डिफ़ॉल्ट रूप से इस्तेमाल होती है
स्वीकार की जाने वाली वैल्यू ये हैं:
|
utm_campaign |
string |
Analytics के लिए कैंपेन का नाम. |
utm_source |
string |
Analytics के लिए कैंपेन का सोर्स. |
अनुरोध का मुख्य भाग
इस तरीके का इस्तेमाल करके, अनुरोध का मुख्य हिस्सा न दें.
जवाब
कामयाब होने पर, यह तरीका इस स्ट्रक्चर के साथ रिस्पॉन्स का मुख्य हिस्सा दिखाता है:
{ "captchaResult": string, "kind": "pagespeedonline#result", "id": string, "loadingExperience": { "id": string, "metrics": { (key): { "percentile": integer, "distributions": [ { "min": integer, "max": integer, "proportion": double } ], "category": string } }, "overall_category": string, "initial_url": string }, "originLoadingExperience": { "id": string, "metrics": { (key): { "percentile": integer, "distributions": [ { "min": integer, "max": integer, "proportion": double } ], "category": string } }, "overall_category": string, "initial_url": string }, "lighthouseResult": { "requestedUrl": string, "finalUrl": string, "lighthouseVersion": string, "userAgent": string, "fetchTime": string, "environment": { "networkUserAgent": string, "hostUserAgent": string, "benchmarkIndex": double }, "runWarnings": [ (value) ], "configSettings": { "emulatedFormFactor": string, "locale": string, "onlyCategories": (value), "onlyCategories": (value) }, "audits": { (key): { "id": string, "title": string, "description": string, "score": (value), "score": (value), "scoreDisplayMode": string, "displayValue": string, "explanation": string, "errorMessage": string, "warnings": (value), "warnings": (value), "details": { (key): (value) } } }, "categories": { (key): { "id": string, "title": string, "description": string, "score": (value), "score": (value), "manualDescription": string, "auditRefs": [ { "id": string, "weight": double, "group": string } ] } }, "categoryGroups": { (key): { "title": string, "description": string } }, "runtimeError": { "code": string, "message": string }, "timing": { "total": double }, "i18n": { "rendererFormattedStrings": { "varianceDisclaimer": string, "opportunityResourceColumnLabel": string, "opportunitySavingsColumnLabel": string, "errorMissingAuditInfo": string, "errorLabel": string, "warningHeader": string, "auditGroupExpandTooltip": string, "passedAuditsGroupTitle": string, "notApplicableAuditsGroupTitle": string, "manualAuditsGroupTitle": string, "toplevelWarningsMessage": string, "scorescaleLabel": string, "crcLongestDurationLabel": string, "crcInitialNavigation": string, "lsPerformanceCategoryDescription": string, "labDataTitle": string } } }, "analysisUTCTimestamp": string, "version": { "major": integer, "minor": integer } }
प्रॉपर्टी का नाम | वैल्यू | ब्यौरा | ज़रूरी जानकारी |
---|---|---|---|
captchaResult |
string |
कैप्चा की पुष्टि से जुड़ा नतीजा
इन वैल्यू के लिए ये इस्तेमाल किए जा सकते हैं:
|
|
kind |
string |
किस तरह का नतीजा. | |
id |
string |
पेज के रीडायरेक्ट (अगर कोई है) के बाद दस्तावेज़ के लिए कैननिकल और फ़ाइनल यूआरएल. | |
loadingExperience |
nested object |
असली उपयोगकर्ताओं के पेज लोड होने के अनुभव की मेट्रिक. | |
loadingExperience.id |
string |
वह यूआरएल, पैटर्न या ऑरिजिन जिस पर मेट्रिक मौजूद हैं. | |
loadingExperience.metrics |
object |
||
loadingExperience.metrics.(key) |
object |
मेट्रिक किस तरह की है. | |
loadingExperience.metrics.(key).distributions[] |
list |
||
loadingExperience.metrics.(key).distributions[].min |
integer |
||
loadingExperience.metrics.(key).distributions[].max |
integer |
||
loadingExperience.metrics.(key).distributions[].proportion |
double |
||
version |
object |
इन नतीजों को जनरेट करने के लिए, PageSpeed का वर्शन इस्तेमाल किया गया था. | |
version.major |
integer |
इन नतीजों को जनरेट करने के लिए, PageSpeed की मुख्य वर्शन संख्या का इस्तेमाल किया गया. | |
version.minor |
integer |
इन नतीजों को जनरेट करने के लिए, PageSpeed की माइनर वर्शन संख्या का इस्तेमाल किया गया. | |
loadingExperience.metrics.(key).category |
string |
स्वीकार की जाने वाली वैल्यू हैं:
|
|
loadingExperience.overall_category |
string |
स्वीकार की जाने वाली वैल्यू हैं:
|
|
loadingExperience.initial_url |
string |
||
loadingExperience.metrics.(key).percentile |
integer |
||
originLoadingExperience |
nested object |
ऑरिजिन के एग्रीगेट किए गए पेज लोड होने के अनुभव की मेट्रिक | |
originLoadingExperience.id |
string |
वह यूआरएल, पैटर्न या ऑरिजिन जिस पर मेट्रिक मौजूद हैं. | |
originLoadingExperience.metrics |
object |
||
originLoadingExperience.metrics.(key) |
object |
मेट्रिक किस तरह की है. | |
originLoadingExperience.metrics.(key).percentile |
integer |
||
originLoadingExperience.metrics.(key).distributions[] |
list |
||
originLoadingExperience.metrics.(key).distributions[].min |
integer |
||
originLoadingExperience.metrics.(key).distributions[].max |
integer |
||
originLoadingExperience.metrics.(key).distributions[].proportion |
double |
||
originLoadingExperience.metrics.(key).category |
string |
स्वीकार की जाने वाली वैल्यू हैं:
|
|
originLoadingExperience.overall_category |
string |
स्वीकार की जाने वाली वैल्यू हैं:
|
|
originLoadingExperience.initial_url |
string |
||
analysisUTCTimestamp |
string |
इस विश्लेषण का यूटीसी टाइमस्टैंप. | |
lighthouseResult |
nested object |
ऑब्जेक्ट के तौर पर ऑडिट यूआरएल के लिए लाइटहाउस रिस्पॉन्स. | |
lighthouseResult.requestedUrl |
string |
अनुरोध किया गया मूल यूआरएल. | |
lighthouseResult.finalUrl |
string |
ऑडिट किया गया फ़ाइनल यूआरएल, जिसका समाधान हो गया. | |
lighthouseResult.lighthouseVersion |
string |
लाइटहाउस का वह वर्शन जिसका इस्तेमाल इस LHR को जनरेट करने के लिए किया गया था. | |
lighthouseResult.userAgent |
string |
वह उपयोगकर्ता एजेंट जिसका इस्तेमाल इस LHR को चलाने के लिए किया गया था. | |
lighthouseResult.fetchTime |
string |
इस रन को फ़ेच करने का समय. | |
lighthouseResult.environment |
object |
इस एलएचआर को बनाते समय इस्तेमाल की गई एनवायरमेंट सेटिंग. | |
lighthouseResult.environment.networkUserAgent |
string |
||
lighthouseResult.environment.hostUserAgent |
string |
||
lighthouseResult.environment.benchmarkIndex |
double |
||
lighthouseResult.runWarnings[] |
list |
LHR में रन की सभी चेतावनियों की सूची. हमेशा कम से कम `[]` पर आउटपुट करेगा. | |
lighthouseResult.configSettings |
object |
इस LHR के लिए कॉन्फ़िगरेशन सेटिंग. | |
lighthouseResult.configSettings.emulatedFormFactor |
string |
इम्यूलेशन को किस नाप या आकार का इस्तेमाल करना चाहिए
स्वीकार की जाने वाली वैल्यू ये हैं:
|
|
lighthouseResult.configSettings.locale |
string |
स्थान-भाषा सेटिंग | |
lighthouseResult.configSettings.onlyCategories |
nested object |
||
lighthouseResult.audits |
object |
LHR में ऑडिट का मैप. | |
lighthouseResult.audits.(key) |
nested object |
||
lighthouseResult.audits.(key).id |
string |
ऑडिट का आईडी. | |
lighthouseResult.audits.(key).title |
string |
ऐसा टाइटल जिसे कोई भी व्यक्ति आसानी से पढ़ सके. | |
lighthouseResult.audits.(key).description |
string |
ऑडिट की जानकारी. | |
lighthouseResult.audits.(key).score |
nested object |
||
lighthouseResult.audits.(key).scoreDisplayMode |
string |
गिनती किया गया स्कोर दिखाने का मोड.
स्वीकार की जाने वाली वैल्यू हैं:
|
|
lighthouseResult.audits.(key).displayValue |
string |
वह वैल्यू जो इस ऑडिट के लिए, यूज़र इंटरफ़ेस (यूआई) पर दिखानी चाहिए. | |
lighthouseResult.audits.(key).explanation |
string |
ऑडिट में गड़बड़ियों की वजह. | |
lighthouseResult.audits.(key).errorMessage |
string |
ऑडिट में किसी गड़बड़ी की वजह से गड़बड़ी का मैसेज. | |
lighthouseResult.audits.(key).warnings |
nested object |
||
lighthouseResult.audits.(key).details |
object |
ऑडिट का फ़्रीफ़ॉर्म जानकारी सेक्शन. | |
lighthouseResult.audits.(key).details.(key) |
any value |
||
lighthouseResult.categories |
object |
LHR में कैटगरी का मैप. | |
lighthouseResult.categories.(key) |
nested object |
||
lighthouseResult.categories.(key).id |
string |
कैटगरी का स्ट्रिंग आइडेंटिफ़ायर. | |
lighthouseResult.categories.(key).title |
string |
किसी कैटगरी का ऐसा नाम जो लोगों के हिसाब से सही हो | |
lighthouseResult.categories.(key).description |
string |
श्रेणी और इसकी अहमियत के बारे में ज़्यादा जानकारी. | |
lighthouseResult.categories.(key).score |
nested object |
||
lighthouseResult.categories.(key).manualDescription |
string |
कैटगरी में मैन्युअल ऑडिट की जानकारी. | |
lighthouseResult.categories.(key).auditRefs[] |
list |
इस कैटगरी के सभी ऑडिट सदस्यों के लिए रेफ़रंस की कलेक्शन. | |
lighthouseResult.categories.(key).auditRefs[].id |
string |
ऑडिट रेफ़रंस आईडी. | |
lighthouseResult.categories.(key).auditRefs[].weight |
double |
पूरे कैटगरी के स्कोर पर इस ऑडिट के स्कोर का महत्व. | |
lighthouseResult.categories.(key).auditRefs[].group |
string |
वह कैटगरी ग्रुप जिससे ऑडिट जुड़ा है (ज़रूरी नहीं). | |
lighthouseResult.categoryGroups |
object |
LHR में कैटगरी ग्रुप का मैप. | |
lighthouseResult.categoryGroups.(key) |
object |
||
lighthouseResult.categoryGroups.(key).title |
string |
||
lighthouseResult.categoryGroups.(key).description |
string |
||
lighthouseResult.runtimeError |
object |
कोड में मौजूद ऑब्जेक्ट और रनटाइम की गड़बड़ियों का मैसेज. | |
lighthouseResult.runtimeError.code |
string |
स्वीकार की जाने वाली वैल्यू हैं:
|
|
lighthouseResult.runtimeError.message |
string |
||
lighthouseResult.timing |
object |
इस LHR के लिए समय की जानकारी. | |
lighthouseResult.timing.total |
double |
लाइटहाउस चलने का कुल समय | |
lighthouseResult.i18n |
object |
LHR को रेंडर करने के लिए ज़रूरी इंटरनैशनलाइज़ेशन स्ट्रिंग. | |
lighthouseResult.i18n.rendererFormattedStrings |
object |
||
lighthouseResult.i18n.rendererFormattedStrings.varianceDisclaimer |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.opportunityResourceColumnLabel |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.opportunitySavingsColumnLabel |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.errorMissingAuditInfo |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.errorLabel |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.warningHeader |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.auditGroupExpandTooltip |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.passedAuditsGroupTitle |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.notApplicableAuditsGroupTitle |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.manualAuditsGroupTitle |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.toplevelWarningsMessage |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.scorescaleLabel |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.crcLongestDurationLabel |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.crcInitialNavigation |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.lsPerformanceCategoryDescription |
string |
||
lighthouseResult.i18n.rendererFormattedStrings.labDataTitle |
string |
इसे आज़माएं!
इस तरीके को लाइव डेटा पर कॉल करने और रिस्पॉन्स देखने के लिए, नीचे दिए गए एपीआई एक्सप्लोरर का इस्तेमाल करें.