{"id":21131172,"url":"https://github.com/wnameless/aws-price-list-api","last_synced_at":"2026-04-21T20:33:38.697Z","repository":{"id":57724081,"uuid":"271290049","full_name":"wnameless/aws-price-list-api","owner":"wnameless","description":"A Java wrapper to Amazon AWS Price List (web) API","archived":false,"fork":false,"pushed_at":"2021-06-04T10:23:39.000Z","size":131,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T23:20:50.547Z","etag":null,"topics":["aws","aws-price","java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wnameless.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-10T13:51:36.000Z","updated_at":"2025-12-07T17:19:18.000Z","dependencies_parsed_at":"2022-09-02T07:02:03.988Z","dependency_job_id":null,"html_url":"https://github.com/wnameless/aws-price-list-api","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/wnameless/aws-price-list-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnameless%2Faws-price-list-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnameless%2Faws-price-list-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnameless%2Faws-price-list-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnameless%2Faws-price-list-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wnameless","download_url":"https://codeload.github.com/wnameless/aws-price-list-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnameless%2Faws-price-list-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32108741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-price","java"],"created_at":"2024-11-20T05:50:28.521Z","updated_at":"2026-04-21T20:33:38.672Z","avatar_url":"https://github.com/wnameless.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.wnameless.aws/aws-price-list-api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.wnameless.aws/aws-price-list-api)\n\naws-price-list-api\n=============\nA Java wrapper to Amazon AWS Price List (web) API.\n\n## Maven Repo\n```xml\n\u003cdependency\u003e\n\t\u003cgroupId\u003ecom.github.wnameless.aws\u003c/groupId\u003e\n\t\u003cartifactId\u003eaws-price-list-api\u003c/artifactId\u003e\n\t\u003cversion\u003e1.0.6\u003c/version\u003e\n\u003c/dependency\u003e\n```\n## Important\nIt's only a Java wrapper to\n```diff\n+ AWS AWS Price List API +\n```\n, aka the bulk API, and it has nothing to do with the\n```diff\n- AWS Price List Service API -\n```\n, aka the query API. If you need the query API, you should go ask for the [Amazon AWS Java SDK](https://aws.amazon.com/sdk-for-java/) library.\n\n```diff\n\n! Because this library simply provides a wrapper to the bulk API,\n! some of the JSON format response is over 1GB~, if you need to access those products,\n! such as AmazonEC2, please to increase your JVM memory heap first.\n```\n# Quick Start\n\n## OfferIndex \u003c- the entrypoint of all AWS offers\n```java\n// Get the OfferIndex which contains all offers of AWS\nOfferIndex offerIndex = OfferIndex.get();\n\n// Select an offer called AmazonA2I\nOffer offer = offerIndex.getOffer(AWSOffer.AmazonA2I);\n\n// Get all AmazonA2I products sorted by region\nProductRegionIndex productRegionIndex = offer.getCurrentProductRegionIndex();\n\n// Select products under region eu-central-1\nProductRegion productRegion = productRegionIndex.getProductRegion(AWSRegion.eu_central_1);\n\n// Iterate all products\nfor (Product product : productRegion.getProductVersion().getProducts().values()) {\n  product.getSku();\n  product.getAttributes().getUsagetype();\n  product.getAttributes().getOperation();\n}\n\n// Browse the OnDemand term under a product SKU\nMap\u003cString, OnDemandDetail\u003e onDemandDetails = productVersion.getTerms().getOnDemand().get(product.getSku());\nfor (OnDemandDetail onDemandDetail : onDemandDetails.values()) {\n  onDemandDetail.getSku();\n  Map\u003cString, PriceDimension\u003e priceDimensions = onDemandDetail.getPriceDimensions();\n  for (PriceDimension priceDimension : priceDimensions.values()) {\n    priceDimension.getPricePerUnit().get(\"USD\");\n  }\n}\n```\n## SavingsPlanIndex \u003c- the entrypoint of all AWS savingsplan\n```java\n// Get the SavingsPlanIndex which contains all SavingsPlan of AWS\nSavingsPlanIndex savingsPlanIndex = SavingsPlanIndex.get();\n\n// Get current version of SavingsPlan\nSavingsPlanVersion savingsPlanVersion = savingsPlanIndex.getCurrentSavingsPlanVersion();\n\n// Get all SavingsPlan under region ap-northeast-1\nSavingsPlanRegion savingsPlanRegion = savingsPlanVersion.getSavingsPlanRegion(AWSRegion.ap_northeast_1);\n\n// Iterate all discounted rates under different sku, usageType and operation\nfor (SavingsPlan savingsPlan : savingsPlanRegion.getTerms().getSavingsPlan()) {\n  for (SavingsPlanRate rate : savingsPlan.getRates()) {\n    rate.getDiscountedSku();\n    rate.getDiscountedUsageType();\n    rate.getDiscountedOperation();\n    rate.getDiscountedRate();\n  }\n}\n```\n\n### Logging Level\nAll API request is backend by okhttp library, we need to set a logging level to intercept the log, otherwise nothing will show up even there is an exception happened.\n```java\n// Log nothing\nPriceListApi.INSTANCE.setLoggingLevel(Level.NONE);\n// Log request and response lines\nPriceListApi.INSTANCE.setLoggingLevel(Level.BASIC);\n// Log request and response lines with header\nPriceListApi.INSTANCE.setLoggingLevel(Level.HEADERS);\n// Log request and response lines, header and body\nPriceListApi.INSTANCE.setLoggingLevel(Level.BODY);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwnameless%2Faws-price-list-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwnameless%2Faws-price-list-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwnameless%2Faws-price-list-api/lists"}