{"uid":"cap_wDHGwAZaYcF_YgWVuyDVY","slug":"halowerk-scrap-margin-calculator-0d367761","name":"Halowerk Scrap Margin Calculator","description":"Takes the gross lot weight, the purchase price paid per kilogram of gross weight and the sales price per kilogram of recovered metal, then applies recovery yield and melting loss for the scrap grade. Yield and loss default to practice values per grade and can be overridden. Handling, transport and disposal cost are optional flat amounts. The endpoint applies no market price and fetches none: sales_price_eur_per_kg is supplied by the caller.","url":"https://material.halowerk.com/scrap-margin?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"grade":{"type":"string","description":"Scrap grade key, e.g. copper_millberry, cable_scrap_high, motor_scrap."},"yield_percent":{"type":"number","maximum":100,"minimum":1,"description":"Overrides the recovery yield of the grade."},"gross_weight_kg":{"type":"number","maximum":1000000,"minimum":0.1},"transport_cost_eur":{"type":"number","default":0,"maximum":1000000,"minimum":0},"processing_cost_eur":{"type":"number","default":0,"maximum":1000000,"minimum":0},"melting_loss_percent":{"type":"number","maximum":50,"minimum":0,"description":"Overrides the melting loss of the grade."},"sales_price_eur_per_kg":{"type":"number","maximum":10000,"minimum":0,"description":"Achievable price per kilogram of recovered metal."},"disposal_cost_eur_per_kg":{"type":"number","default":0,"maximum":1000,"minimum":0,"description":"Cost per kilogram of non-metal residue."},"purchase_price_eur_per_kg":{"type":"number","maximum":10000,"minimum":0,"description":"Price paid per kilogram of gross weight."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gLBJ5qV5KN4en6IctKFHn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates scrap margin for material or manufacturing inputs, returning margin/profitability data for scrap material transactions","exampleAgentPrompt":"Calculate the scrap margin for 500 kg of steel offcuts with a raw material cost of $1.20 per kg and a scrap sale price of $0.45 per kg.","exampleUseCases":[{"title":"Scrap yield profitability for steel run","prompt":"I just finished a production run and have 200 kg of steel scrap — the material cost me $1.80 per kg and I can sell the scrap at $0.50 per kg. Can you calculate my scrap margin on this?"},{"title":"Recycling margin check for aluminum","prompt":"What's the margin I'm making on scrapping 1,000 kg of aluminum if my input cost is $2.10 per kg and the scrap buyer is paying $0.95 per kg?"},{"title":"Compare scrap margins across material types","prompt":"I need to compare scrap margins for copper at $0.80 per kg scrap price with a $3.50 cost, versus brass at $0.60 scrap price with a $2.20 cost — which has the better margin?"}],"resultDescription":"Returns computed scrap margin data including margin value, margin percentage, and potentially a cost-versus-revenue breakdown for the given material inputs and quantities.","failureModes":["Missing required input parameters such as cost or sale price returns a 400 error","Invalid or non-numeric values for price/quantity fields cause a validation error","Negative margin results returned if scrap price is below cost (valid but may need handling)","Payment failure or insufficient USDC balance returns a 402 error via x402 protocol"],"whenToPreferThis":"Use this endpoint when you need a quick, paid computation of scrap margin for manufacturing or recycling scenarios and want a simple API call rather than building your own margin formula. Prefer this over generic spreadsheet calculations when integrating into an automated procurement or materials management workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:40:14.443Z","isFirstParty":false,"canonicalSlug":"halowerk-scrap-margin-calculator-0d367761"}