{"api":{"id":"api_9910be22d08de8c92d1634c2","slug":"js-cdn-usage","name":"JavaScript CDN Usage","description":"Real-world use of JavaScript packages through the jsDelivr and cdnjs CDNs: requests and bytes served for a day, week, month, quarter or year, rank among all packages, change from the period before, a daily series, the latest version on cdnjs and GitHub stars.","kind":"ready_made","visibility":"public","domain":"jsdelivr.com","source_url":"https://www.jsdelivr.com/docs/data.jsdelivr.com","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":2000,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":23,"created_at":"2026-12-06T03:33:09.225Z","updated_at":"2026-12-06T03:33:09.225Z","runnable":true},"version":"1.0","contract_hash":"f30cadc8b715de3b5b96d443497ac1666a21b7c53b75cca5f978967a964d4131","fields":[{"name":"package","type":"string","description":"npm package name, or user/repo for a GitHub repository served by jsDelivr.","required":true,"coverage":1,"example":"jquery"},{"name":"type","type":"string","description":"npm or gh (a GitHub repository).","required":true,"coverage":1,"example":"npm"},{"name":"found_by","type":"string","description":"Why it is in the results: packages (you named it), search (a cdnjs match) or top_list.","required":false,"coverage":1,"example":"packages"},{"name":"period","type":"string","description":"The period the counts cover: day, week, month, quarter or year.","required":false,"coverage":1,"example":"month"},{"name":"period_start_date","type":"date","description":"First day the counts cover.","required":false,"coverage":0.2,"example":"2026-11-05"},{"name":"period_end_date","type":"date","description":"Last day the counts cover.","required":false,"coverage":0.2,"example":"2026-12-04"},{"name":"rank","type":"integer","description":"Rank among all jsDelivr packages by requests in the period (1 = most requested).","required":false,"coverage":1,"example":27},{"name":"type_rank","type":"integer","description":"Rank among packages of the same type (npm or gh).","required":false,"coverage":1,"example":19},{"name":"hits_total","type":"integer","description":"Requests jsDelivr served for the package in the period.","required":false,"coverage":1,"example":1889707809},{"name":"prev_hits","type":"integer","description":"Requests in the period of the same length just before.","required":false,"coverage":1,"example":1816696201},{"name":"hits_change_percent","type":"number","description":"Change in requests from the period before, in percent.","required":false,"coverage":1,"example":4},{"name":"hits_by_day","type":"object","description":"Requests per day, as {\"2026-11-05\": 68015752, ...}.","required":false,"coverage":0.2,"example":{"2026-11-05":68015752,"2026-11-06":73173175,"2026-11-07":71715177,"2026-11-08":71040167,"2026-11-09":72455409}},{"name":"bandwidth_bytes","type":"integer","description":"Bytes jsDelivr served for the package in the period.","required":false,"coverage":1,"example":53878971773929},{"name":"prev_bandwidth_bytes","type":"integer","description":"Bytes served in the period just before.","required":false,"coverage":1,"example":57506352902306},{"name":"bandwidth_rank","type":"integer","description":"Rank among all jsDelivr packages by bytes served.","required":false,"coverage":0.2,"example":61},{"name":"jsdelivr_url","type":"url","description":"The package's page on jsDelivr.","required":false,"coverage":1,"example":"https://www.jsdelivr.com/package/npm/jquery"},{"name":"cdnjs_latest_version","type":"string","description":"Latest version on cdnjs.","required":false,"coverage":0.2,"example":"4.1.0"},{"name":"cdnjs_url","type":"url","description":"The library's page on cdnjs.","required":false,"coverage":0.2,"example":"https://cdnjs.com/libraries/jquery"},{"name":"cdnjs_file_url","type":"url","description":"CDN link to the library's main file in its latest version on cdnjs.","required":false,"coverage":0.2,"example":"https://cdnjs.cloudflare.com/ajax/libs/jquery/4.1.0/jquery.min.js"},{"name":"github_stars","type":"integer","description":"Stars of the library's GitHub repository, as cdnjs lists them.","required":false,"coverage":0.2,"example":60101},{"name":"repository_url","type":"url","description":"The library's GitHub repository.","required":false,"coverage":0.6,"example":"https://github.com/jquery/jquery"},{"name":"description","type":"string","description":"The library's description on cdnjs.","required":false,"coverage":0.2,"example":"JavaScript library for DOM operations"},{"name":"license","type":"string","description":"License on cdnjs, such as MIT.","required":false,"coverage":0.2,"example":"MIT"}],"inputs":[{"name":"packages","type":"array","description":"npm package names to look up, such as jquery, bootstrap or @popperjs/core.","example":["jquery"]},{"name":"period","type":"string","description":"The period counts cover: the last day, week, month (30 days), quarter or year.","default":"month","example":"month","enum":["day","week","month","quarter","year"]},{"name":"top_list","type":"boolean","description":"Also return jsDelivr's most-requested packages for the period, most requests first.","default":false,"example":true},{"name":"top_list_type","type":"string","description":"Which packages the top list ranks: all, npm packages only, or GitHub repositories only (gh).","default":"all","enum":["all","npm","gh"]},{"name":"search","type":"string","description":"Words to search cdnjs libraries for, such as vue or charts. Each match comes with its jsDelivr counts.","example":"vue"},{"name":"max_results","type":"integer","description":"Most records to return in one run, 1 to 1,000.","default":100,"example":100}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"bandwidth_bytes":{"description":"Bytes jsDelivr served for the package in the period.","type":"integer"},"bandwidth_rank":{"description":"Rank among all jsDelivr packages by bytes served.","type":"integer"},"cdnjs_file_url":{"description":"CDN link to the library's main file in its latest version on cdnjs.","format":"uri","type":"string"},"cdnjs_latest_version":{"description":"Latest version on cdnjs.","type":"string"},"cdnjs_url":{"description":"The library's page on cdnjs.","format":"uri","type":"string"},"description":{"description":"The library's description on cdnjs.","type":"string"},"found_by":{"description":"Why it is in the results: packages (you named it), search (a cdnjs match) or top_list.","type":"string"},"github_stars":{"description":"Stars of the library's GitHub repository, as cdnjs lists them.","type":"integer"},"hits_by_day":{"description":"Requests per day, as {\"2026-11-05\": 68015752, ...}.","type":"object"},"hits_change_percent":{"description":"Change in requests from the period before, in percent.","type":"number"},"hits_total":{"description":"Requests jsDelivr served for the package in the period.","type":"integer"},"jsdelivr_url":{"description":"The package's page on jsDelivr.","format":"uri","type":"string"},"license":{"description":"License on cdnjs, such as MIT.","type":"string"},"package":{"description":"npm package name, or user/repo for a GitHub repository served by jsDelivr.","type":"string"},"period":{"description":"The period the counts cover: day, week, month, quarter or year.","type":"string"},"period_end_date":{"description":"Last day the counts cover.","format":"date","type":"string"},"period_start_date":{"description":"First day the counts cover.","format":"date","type":"string"},"prev_bandwidth_bytes":{"description":"Bytes served in the period just before.","type":"integer"},"prev_hits":{"description":"Requests in the period of the same length just before.","type":"integer"},"rank":{"description":"Rank among all jsDelivr packages by requests in the period (1 = most requested).","type":"integer"},"repository_url":{"description":"The library's GitHub repository.","format":"uri","type":"string"},"type":{"description":"npm or gh (a GitHub repository).","type":"string"},"type_rank":{"description":"Rank among packages of the same type (npm or gh).","type":"integer"}},"required":["package","type"],"title":"JavaScript CDN Usage","type":"object"},"samples":[{"package":"jquery","type":"npm","found_by":"packages","period":"month","period_start_date":"2026-11-05","period_end_date":"2026-12-04","rank":27,"type_rank":19,"hits_total":1889707809,"prev_hits":1816696201,"hits_change_percent":4,"hits_by_day":{"2026-11-05":68015752,"2026-11-06":73173175,"2026-11-07":71715177,"2026-11-08":71040167,"2026-11-09":72455409,"2026-11-10":66401226,"2026-11-11":58889401,"2026-11-12":59420553,"2026-11-13":59487266,"2026-11-14":56156846,"2026-11-15":52871696,"2026-11-16":57195214,"2026-11-17":59396835,"2026-11-18":60530619},"bandwidth_bytes":53878971773929,"prev_bandwidth_bytes":57506352902306,"bandwidth_rank":61,"jsdelivr_url":"https://www.jsdelivr.com/package/npm/jquery","cdnjs_latest_version":"4.1.0","cdnjs_url":"https://cdnjs.com/libraries/jquery","cdnjs_file_url":"https://cdnjs.cloudflare.com/ajax/libs/jquery/4.1.0/jquery.min.js","github_stars":60101,"repository_url":"https://github.com/jquery/jquery","description":"JavaScript library for DOM operations","license":"MIT"},{"package":"prebid/currency-file","type":"gh","found_by":"top_list","period":"month","period_start_date":null,"period_end_date":null,"rank":1,"type_rank":1,"hits_total":40441344849,"prev_hits":41988225017,"hits_change_percent":-3.7,"hits_by_day":null,"bandwidth_bytes":57977142481535,"prev_bandwidth_bytes":61987427044797,"bandwidth_rank":null,"jsdelivr_url":"https://www.jsdelivr.com/package/gh/prebid/currency-file","cdnjs_latest_version":null,"cdnjs_url":null,"cdnjs_file_url":null,"github_stars":null,"repository_url":"https://github.com/prebid/currency-file","description":null,"license":null},{"package":"orioncactus/pretendard","type":"gh","found_by":"top_list","period":"month","period_start_date":null,"period_end_date":null,"rank":2,"type_rank":2,"hits_total":33559043168,"prev_hits":31570399092,"hits_change_percent":6.3,"hits_by_day":null,"bandwidth_bytes":3689157655397369,"prev_bandwidth_bytes":3604865266481792,"bandwidth_rank":null,"jsdelivr_url":"https://www.jsdelivr.com/package/gh/orioncactus/pretendard","cdnjs_latest_version":null,"cdnjs_url":null,"cdnjs_file_url":null,"github_stars":null,"repository_url":"https://github.com/orioncactus/pretendard","description":null,"license":null}],"validation":{"checked_at":"2026-12-06T03:33:09.177Z","field_coverage":{"bandwidth_bytes":1,"bandwidth_rank":0.33,"cdnjs_file_url":0.33,"cdnjs_latest_version":0.33,"cdnjs_url":0.33,"description":0.33,"found_by":1,"github_stars":0.33,"hits_by_day":0.33,"hits_change_percent":1,"hits_total":1,"jsdelivr_url":1,"license":0.33,"package":1,"period":1,"period_end_date":0.33,"period_start_date":0.33,"prev_bandwidth_bytes":1,"prev_hits":1,"rank":1,"repository_url":1,"type":1,"type_rank":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:33:09.225Z","activated_at":"2026-12-06T03:33:09.225Z","active":true,"contract_hash":"f30cadc8b715de3b5b96d443497ac1666a21b7c53b75cca5f978967a964d4131","fields_count":23}]}