खाता
उपयोग प्राप्त करें
किसी दिए गए समय-सीमा के लिए खर्च/अनुरोध/टोकन योग लौटाता है, मॉडल, API कुंजी, और ऐप नाम के अनुसार विभाजित, साथ ही दैनिक समय-श्रृंखला भी। /v1/insights के विपरीत, इस एंडपॉइंट में शीर्ष-मॉडल रैंकिंग, कैश आँकड़े, या वार्षिक हीटमैप नहीं है — यह हल्का एग्रीगेट एंडपॉइंट है, और कस्टम दिनांक सीमा (period=custom) का समर्थन करता है।
GET
/api/v1/usageप्राधिकरण
Authorizationआवश्यकstring · header
Authorization हेडर में bearer token के रूप में API कुंजी।
क्वेरी पैरामीटर
periodstring
समय सीमा, डिफ़ॉल्ट month। तीन प्रकार: पुराने कैलेंडर शब्द (day/week/month/year), अभी तक चलने वाली रोलिंग विंडो (15m…1y), कैलेंडर-संरेखित विंडो (today…prev_year), या custom (from/to आवश्यक)। अपरिचित मान 400 लौटाता है।
dayweekmonthyear15m30m1h3h1d2d1w1mo1ytodayyesterdaythis_weekprev_weekthis_monthprev_monththis_yearprev_yearcustomExample:
"month"fromstring
कस्टम विंडो की शुरुआत (ISO 8601)। केवल period=custom के साथ उपयोग होता है।
ISO 8601, required with period=custom
Example:
"2026-07-01T00:00:00.000Z"tostring
कस्टम विंडो का अंत (ISO 8601)। केवल period=custom के साथ उपयोग होता है।
ISO 8601, required with period=custom
Example:
"2026-07-27T00:00:00.000Z"प्रतिक्रिया उदाहरण