| name | polymer-pay-api-optimizer |
| description | Find cheapest API providers, compare pricing across skills, and audit files for cost savings |
| metadata | {"polymer-pay-skill":{"emoji":"๐ฐ","requires":{"env":[]}}} |
| registries | {} |
| provider | polymer-pay |
API Optimizer
Find the cheapest Polymer Pay API provider for any operation. The Polymer Pay catalog has 70+ APIs with significant overlap โ many
operations can be done by multiple providers at wildly different prices. This skill automates cost analysis with a static
pricing database (no API calls, no cost, instant results).
Overview
This is a local CLI tool (like polymer-pay-api-finder). It does not make API calls through the Polymer Pay proxy โ it reads from a
static pricing database bundled with the skill. Three commands for cost optimization:
- optimize โ Find cheapest provider for a use case
- compare โ Side-by-side pricing table of 2+ skills
- audit โ Scan a file for API URLs, flag cheaper alternatives
Commands
Optimize โ Find Cheapest Provider
Search by keyword to find the cheapest provider for an operation:
node scripts/optimize.js "email verification"
node scripts/optimize.js "twitter profile"
node scripts/optimize.js "company enrich"
node scripts/optimize.js "web search"
Returns: Providers sorted by price with savings percentage.
Compare โ Side-by-Side Pricing
Compare pricing across 2+ skills for all overlapping operations:
node scripts/compare.js polymer-pay-stableenrich polymer-pay-hunter polymer-pay-tomba
node scripts/compare.js polymer-pay-scrape-creators polymer-pay-stableenrich
node scripts/compare.js polymer-pay-firecrawl polymer-pay-x402engine-web
Returns: ASCII table with operations as rows, skills as columns, cheapest marked.
Audit โ Scan File for Savings
Scan any file for API URLs and identify cheaper alternatives:
node scripts/audit.js tools.md
node scripts/audit.js src/api-client.js
node scripts/audit.js pipeline.sh
Returns: List of found APIs with alternatives, total cost vs optimized cost.
Example Workflow
$ node scripts/optimize.js "email verification"
Email Verification (email-verify)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. $0.0100 โ Hunter (polymer-pay-hunter) [cheapest]
2. $0.0100 โ Tomba (polymer-pay-tomba)
3. $0.0300 โ StableEnrich Hunter (polymer-pay-stableenrich)
Savings: 67% by using Hunter instead of StableEnrich Hunter
$ node scripts/compare.js polymer-pay-stableenrich polymer-pay-hunter polymer-pay-tomba
$ node scripts/audit.js tools.md
File Locations
| File | Purpose |
|---|
scripts/optimize.js | Find cheapest provider by keyword |
scripts/compare.js | Side-by-side pricing comparison |
scripts/audit.js | Scan files for API cost savings |
data/pricing.json | Static pricing database (14 operations, 19 URL patterns) |
Data Sources
- Pricing Database:
data/pricing.json โ verified from each skill's SKILL.md
- 14 operations: social profiles, email, company, person enrichment, web scraping, search
- 19 URL patterns: regex patterns matching upstream API hostnames
- Last updated: 2026-03-06
Best Practices
- For errors โ See @skills/polymer-pay-api-errors/SKILL.md for complete error code reference and troubleshooting