{"openapi":"3.1.0","info":{"title":"pub.dev API","version":"1.0.0","description":"The pub.dev registry — home of the Dart and Flutter package ecosystem — as an API. Look up any package for its description, latest version, repository, documentation and homepage links, Dart SDK constraint, whether it is a Flutter package, its dependencies and recent version history; search the registry by keyword (sorted by relevance, popularity, likes, points, downloads or recency); and read a package's popularity score — its like count, pub points out of the maximum, popularity percentage and 30-day download count. Live from the official pub.dev API. Ideal for package dashboards, dependency and supply-chain tooling, Flutter developer portals and ecosystem analytics. Open data from pub.dev.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/pubdev-api","description":"oanor gateway"}],"tags":[{"name":"pub.dev"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/package":{"get":{"operationId":"get_v1_package","tags":["pub.dev"],"summary":"Package metadata + recent versions","description":"","parameters":[{"name":"name","in":"query","required":true,"description":"Package name, e.g. http, provider","schema":{"type":"string"},"example":"http"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"package":{"name":"http","flutter":false,"published":"2025-11-10T18:27:56.434747Z","repository":"https://github.com/dart-lang/http/tree/master/pkgs/http","description":"A composable, multi-platform, Future-based API for HTTP requests.","pub_dev_url":"https://pub.dev/packages/http","dependencies":["async","http_parser","meta","web"],"version_count":130,"latest_version":"1.6.0","sdk_constraint":"^3.4.0","recent_versions":[{"version":"1.6.0","published":"2025-11-10T18:27:56.434747Z"},{"version":"1.5.0","published":"2025-08-07T22:35:23.863279Z"},{"version":"1.5.0-beta.2","published":"2025-07-15T23:37:56.942822Z"},{"version":"1.5.0-beta","published":"2025-07-08T17:55:50.858454Z"},{"version":"1.4.0","published":"2025-05-06T00:17:13.636460Z"},{"version":"1.3.0","published":"2025-01-21T00:32:28.622865Z"},{"version":"1.2.2","published":"2024-07-16T20:09:47.863320Z"},{"version":"1.2.1","published":"2024-02-15T23:25:27.572746Z"}]}},"meta":{"timestamp":"2026-05-31T11:53:06.112Z","request_id":"ee00c80b-8e4a-428b-b241-d62c7ed2b9b4"},"status":"ok","message":"Package retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/score":{"get":{"operationId":"get_v1_score","tags":["pub.dev"],"summary":"Popularity metrics for a package","description":"","parameters":[{"name":"name","in":"query","required":true,"description":"Package name, e.g. http","schema":{"type":"string"},"example":"http"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"score":{"tags":["publisher:dart.dev","has:topic","sdk:dart","sdk:flutter","platform:android","platform:ios","platform:windows","platform:linux","platform:macos","platform:web","runtime:native-aot","runtime:native-jit","runtime:web","is:null-safe","is:wasm-ready","is:dart3-compatible","license:bsd-3-clause","license:fsf-libre","license:osi-approved","topic:http","topic:network","topic:protocols"],"likes":8444,"max_points":160,"pub_points":160,"downloads_30d":8808968},"package":"http"},"meta":{"timestamp":"2026-05-31T11:53:06.207Z","request_id":"5308ec42-5903-4ad7-b4bd-7b62bdaa6426"},"status":"ok","message":"Score retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/search":{"get":{"operationId":"get_v1_search","tags":["pub.dev"],"summary":"Search the registry","description":"","parameters":[{"name":"q","in":"query","required":true,"description":"Search term","schema":{"type":"string"},"example":"http"},{"name":"sort","in":"query","required":false,"description":"top | text | created | updated | popularity | like | points | downloads","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results (1-100, default 20)","schema":{"type":"string"},"example":"20"},{"name":"page","in":"query","required":false,"description":"Page number","schema":{"type":"string"},"example":"1"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"page":1,"sort":"top","count":10,"query":"http","results":[{"name":"http","pub_dev_url":"https://pub.dev/packages/http"},{"name":"dio","pub_dev_url":"https://pub.dev/packages/dio"},{"name":"google_fonts","pub_dev_url":"https://pub.dev/packages/google_fonts"},{"name":"retry","pub_dev_url":"https://pub.dev/packages/retry"},{"name":"http_parser","pub_dev_url":"https://pub.dev/packages/http_parser"},{"name":"chopper","pub_dev_url":"https://pub.dev/packages/chopper"},{"name":"oauth2","pub_dev_url":"https://pub.dev/packages/oauth2"},{"name":"dio_cache_interceptor","pub_dev_url":"https://pub.dev/packages/dio_cache_interceptor"},{"name":"retrofit_generator","pub_dev_url":"https://pub.dev/packages/retrofit_generator"},{"name":"firebase_performance","pub_dev_url":"https://pub.dev/packages/firebase_performance"}]},"meta":{"timestamp":"2026-05-31T11:53:06.498Z","request_id":"5b595dae-001d-4faa-a665-0996d0f294e1"},"status":"ok","message":"Packages searched","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Source & sort options","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Live pub.dev registry data. /v1/package = metadata (description, repo, SDK constraint, dependencies, recent versions); /v1/search = search the registry; /v1/score = popularity metrics (likes, pub points out of max, popularity %, 30-day downloads).","source":"pub.dev (the Dart / Flutter package registry)","endpoints":["/v1/package","/v1/search","/v1/score","/v1/meta"],"sort_options":["top","text","created","updated","popularity","like","points","downloads"]},"meta":{"timestamp":"2026-05-31T11:53:06.549Z","request_id":"206d67f3-1e83-4d2e-b2a2-547e78aa1923"},"status":"ok","message":"Meta retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":3470,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":403,"monthly_call_quota":47700,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1208,"monthly_call_quota":236200,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":3296,"monthly_call_quota":1190000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/pubdev-api"}