惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
腾讯CDC
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
Vercel News
Vercel News
P
Proofpoint News Feed
雷峰网
雷峰网
博客园_首页
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
爱范儿
爱范儿
V
V2EX
F
Fortinet All Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
MyScale Blog
MyScale Blog
S
SegmentFault 最新的问题

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
How to get live 3D print pricing in Google Sheets with on...
Polyform Pri · 2026-05-29 · via DEV Community

Polyform Prints

If you sell 3D printed items on Etsy (or anywhere else), you've probably done the maths in your head or in a scrappy spreadsheet. Filament cost, electricity, time, markup - it adds up, and getting it wrong means you're working for free.

I built PolyQuote to solve this - a REST API that calculates an accurate recommended sale price from your print parameters. And recently I added a CSV endpoint so you can pull live pricing directly into Google Sheets with a single formula. No scripts, no code, no setup.

Here's how to do it.


The formula

Paste this into any cell in Google Sheets:

=IMPORTDATA("https://3d-print-quote-api.polyform-api.workers.dev/demo/quote/csv?filament_type=PETG&weight_grams=85&print_hours=3.5&markup_percent=120")

Enter fullscreen mode Exit fullscreen mode

Click "Allow access" if Sheets prompts you, and you'll get this:

PolyQuote data in Google Sheets

Row 1 is headers. Row 2 is your live pricing data - material cost, electricity cost, total base cost, and recommended sale price, all calculated from the parameters you passed in.


What the parameters mean

Parameter What it is
filament_type PLA, PETG, ABS, TPU, PLA+, PLA-SILK, PLA-MATTE, PETG-MATTE
weight_grams How much filament your slicer says the print uses
print_hours Total print time in hours
markup_percent Your profit margin - 100 means double your cost

So the formula above is asking: what should I charge for a PETG print that uses 85g of filament and takes 3.5 hours, with a 120% markup?

The answer comes back as £3.06.


Making it dynamic

The real power is linking the parameters to cells instead of hardcoding them. Set up a simple input table:

A B
Filament type PETG
Weight (g) 85
Print hours 3.5
Markup % 120

Then build the formula dynamically:

=IMPORTDATA(
  "https://3d-print-quote-api.polyform-api.workers.dev/demo/quote/csv"
  &"?filament_type=" & B1
  &"&weight_grams=" & B2
  &"&print_hours=" & B3
  &"&markup_percent=" & B4
)

Enter fullscreen mode Exit fullscreen mode

Change any input cell and the pricing updates automatically. Price a whole catalogue of prints by copying the formula down with different parameters per row.


What the API calculates

The response breaks down:

  • material_cost_gbp - filament weight × cost per kg (system defaults or your own)
  • electricity_cost_gbp - print time × printer wattage × your electricity rate
  • total_base_cost_gbp - everything combined before markup
  • recommended_price_gbp - base cost with your markup applied

The full API (with an API key) also supports failure rate buffer, packaging cost, printer depreciation, and platform fee breakdowns for Etsy, eBay, and Shopify. The demo endpoint keeps it simple - the four core parameters that cover most use cases.


Limits on the demo endpoint

The demo endpoint allows 5 requests per hour per IP - enough for testing and light use. For production use (pricing a full catalogue, running a batch script, or building a tool for other sellers), sign up for a free API key at api.polyformprints.co.uk. The free tier gives you 200 calls/month, no credit card required.


Why I built this

I run a small 3D printing business on Etsy - Polyform Prints - and kept pricing by gut feel. At the end of the month I'd realise I'd undercharged on half my listings.

PolyQuote started as a personal tool and I opened it up as a public API when I realised the problem wasn't unique to me. The Sheets integration came next because most small sellers live in spreadsheets, not terminal windows.

If you sell prints and want accurate pricing without building anything yourself, give it a try.