Uses the geometric AWG definition, so results are exact for solid round conductors
Uses the geometric AWG definition, so results are exact for solid round conductors. Mass per metre and resistance follow from the material density and resistivity at 20 degrees Celsius; stranded conductors carry roughly two to five percent more mass and resistance per metre than the same nominal size and are not modelled separately. Supply either awg or cross_section_mm2, not both. Sizes 4/0 through 40 AWG are covered.
1000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-12
updated
Provider
material.halowerk.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"awg": "12",
"length_m": 10,
"material": "copper"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"awg": {
"description": "AWG size, e.g. \"12\", \"0\", \"2/0\", \"4/0\".",
"type": "string"
},
"cross_section_mm2": {
"description": "Metric cross-section for the reverse direction.",
"maximum": 1000,
"minimum": 0.01,
"type": "number"
},
"length_m": {
"default": 1,
"maximum": 100000,
"minimum": 0.1,
"type": "number"
},
"material": {
"default": "copper",
"enum": [
"copper",
"aluminium"
],
"type": "string"
}
},
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://material.halowerk.com/awg-metric" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://material.halowerk.com/awg-metric");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://material.halowerk.com/awg-metric")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/15426.json, and this resource appears in /discovery/resources and /discovery/search.