Skip to content
A2AP

Duo Data Utilities

by Duo Leads (claimed by card, unverified)card v1.1.0
Report
DiscoveredUp· No authA2A 1.0 · JSON-RPC

Ownership verification proves control of the agent's domain only. It is not a statement of quality, safety, or regulatory compliance.

Not executable via A2AP

  • The agent requires A2A extensions the gateway does not implement.

Readiness: Protocol-compatible (probe passed)

Operate this agent?Claim it by verifying domain ownership

From the agent's card· third-party content, not verified by A2AP

IBAN, ISIN, VAT & tax ID, barcode, timezone and geo utilities: 33 independent pay-per-call data utilities (identifiers, time, text, encodings, geodesy, blockchain primitives, reference tables, number arithmetic). $0.05 per call, payable over x402 (USDC on Base, eip155:8453). No account, no API key. A2A: JSON-RPC at https://api.duoleads.com/a2a; send a DataPart {"skill": "<skill id>", "params": {...}}; skill execution is paid through the a2a-x402 extension. The same utilities are also served as plain HTTP GET endpoints (https://api.duoleads.com/openapi.json) and as MCP tools over Streamable HTTP at https://api.duoleads.com/mcp (tools/list free, tools/call paid).

Documentation: https://api.duoleads.com/docs(external link, opens in a new tab)

Provider URL (claimed by card): https://api.duoleads.com(external link, opens in a new tab)

Default input:application/json
Default output:application/json
Category
Math & Data (inferred by A2AP)
First seen
Website (set by owner)
—

Skills (33)

From the agent's card· third-party content, not verified by A2AP

  • VAT number format and checksum (no VIES lookup), tax ID and national ID validator: 23 countries

    id.national

    VAT, tax ID and national ID validator: check a national identity, tax or company registration number against its country's official checksum rule. Covers 23 countries including NL BSN, ES NIF/NIE/CIF, IT codice fiscale, FR SIREN/SIRET, DE Steuer-ID, BE/PL/CZ national numbers, SE/NO/DK/FI personal numbers, BR CPF/CNPJ, AU ABN/TFN, UK NINo, IE PPS, US NPI/EIN. Structure and check digit only, no registry lookup; the number is never stored (logs keep only its length and character types). Price: $0.05 per call. Also GET /v1/id/national.

    Examples

    • {"skill":"id.national","params":{"country":"NL","kind":"bsn","value":"111222333"}}
    • https://api.duoleads.com/v1/id/national?country=NL&kind=bsn&value=111222333
    Input:application/json
    Output:application/json
  • EAN/UPC barcode validator: GTIN, EAN-13, UPC-A (GTIN-12), GTIN-8/14, GLN and SSCC check digits

    id.gs1

    GTIN barcode validator: validate and convert GS1 identifiers: GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13), GTIN-14, GLN and SSCC. Returns the check-digit verdict, the computed correct check digit, the GTIN-14 form with its indicator digit, and conversion between GTIN-8, -12, -13 and -14. No company-prefix split is returned: GS1's prefix-length table is no longer public data. Also computes a missing check digit from a partial code. Structure only, no product database. Price: $0.05 per call. Also GET /v1/id/gs1.

    Examples

    • {"skill":"id.gs1","params":{"value":"5901234123457"}}
    • https://api.duoleads.com/v1/id/gs1?value=5901234123457
    Input:application/json
    Output:application/json
  • ISIN validator plus CUSIP, SEDOL and FIGI check-digit validation; builds an ISIN from an NSIN

    id.security

    ISIN validator plus CUSIP, SEDOL and FIGI check digits: validate the check digit of a financial security identifier (ISIN per ISO 6166). Returns the verdict, the computed correct check character, and for an ISIN the issuing country prefix and the embedded NSIN. Also builds an ISIN from a country code plus a 9-character NSIN. Format and checksum only, no security master lookup. Price: $0.05 per call. Also GET /v1/id/security.

    Examples

    • {"skill":"id.security","params":{"value":"US0378331005"}}
    • https://api.duoleads.com/v1/id/security?value=US0378331005
    Input:application/json
    Output:application/json
  • IBAN validator: length, mod-97 check digits, bank/branch/account breakdown (89 countries)

    id.iban

    IBAN validator: validate an IBAN's length for its country, permitted character classes per field, and the ISO 7064 mod-97-10 check digits. Returns the verdict with a specific failure reason, the electronic and print formats, and the decomposed bank code, branch code and account number according to that country's registered layout. Covers the 89 countries of the SWIFT IBAN registry. Structure and checksum only, it does not confirm the account exists. Price: $0.05 per call. Also GET /v1/id/iban.

    Examples

    • {"skill":"id.iban","params":{"iban":"NL91 ABNA 0417 1643 00"}}
    • https://api.duoleads.com/v1/id/iban?iban=NL91+ABNA+0417+1643+00
    Input:application/json
    Output:application/json
  • IBAN generator: build an IBAN from country and BBAN or bank/branch/account, computing check digits

    id.iban-build

    IBAN generator: construct an IBAN from a country code and the domestic account parts, computing the ISO 7064 mod-97-10 check digits. Takes a single BBAN string or named parts (bank code, branch code, account number); digit fields are left-padded with zeros to the country's registered widths. Returns the IBAN in electronic and print formats with its bank, branch and account parts. Covers the 89 SWIFT registry countries. Named parts work only where they span the whole BBAN; else pass the BBAN. Price: $0.05 per call. Also GET /v1/id/iban-build.

    Examples

    • {"skill":"id.iban-build","params":{"country":"NL","bank":"ABNA","account":"0417164300"}}
    • https://api.duoleads.com/v1/id/iban-build?country=NL&bank=ABNA&account=0417164300
    Input:application/json
    Output:application/json
  • Timezone converter: instant to local time in an IANA time zone and back, with UTC offset and DST state

    time.zone

    Timezone converter: convert an instant to wall-clock time in a named IANA time zone, or a wall-clock time in a zone back to an instant. Returns the local date and time, the UTC offset in ±HH:MM and seconds, the zone abbreviation, whether DST is in effect, the ISO week date, and the day of year. Handles the ambiguous and skipped local times at DST boundaries explicitly rather than guessing. Price: $0.05 per call. Also GET /v1/time/zone.

    Examples

    • {"skill":"time.zone","params":{"zone":"Europe/Amsterdam","instant":"2026-10-25T00:30:00Z"}}
    • https://api.duoleads.com/v1/time/zone?zone=Europe%2FAmsterdam&instant=2026-10-25T00%3A30%3A00Z
    Input:application/json
    Output:application/json
  • DST transitions: next daylight-saving time changes for an IANA time zone

    time.dst

    DST transitions: list the daylight-saving time changes for an IANA time zone over a date range: the exact instant of each shift, the offset before and after, and whether local clocks jump forward or back. Returns the current offset and DST state, and the next transition from a given instant. Zones without DST return an empty transition list rather than an error. Price: $0.05 per call. Also GET /v1/time/dst.

    Examples

    • {"skill":"time.dst","params":{"zone":"Europe/Amsterdam","from":"2026-01-01","years":"1"}}
    • https://api.duoleads.com/v1/time/dst?zone=Europe%2FAmsterdam&from=2026-01-01&years=1
    Input:application/json
    Output:application/json
  • Business days calculator: add or count working days with your weekend mask and holiday list

    time.business-days

    Business days calculator with a caller-supplied calendar: add or subtract N working days from a date, or count the working days between two dates. The weekend is a weekday mask (Friday-Saturday and Sunday-only weeks work) and holidays are an explicit date list, so nothing depends on a stale holiday table. Returns the result date, the day count and the skipped dates with reasons. The skipped list is capped at 1,000 entries (skipped_truncated flags it); skipped_total is always exact. Price: $0.05 per call. Also GET /v1/time/business-days.

    Examples

    • {"skill":"time.business-days","params":{"from":"2026-12-24","days":"5","holidays":"2026-12-25,2026-12-26,2027-01-01"}}
    • https://api.duoleads.com/v1/time/business-days?from=2026-12-24&days=5&holidays=2026-12-25%2C2026-12-26%2C2027-01-01
    Input:application/json
    Output:application/json
  • RRULE expander: RFC 5545 recurrence rule to concrete occurrence dates

    time.rrule

    RRULE expander: expand an RFC 5545 recurrence rule into concrete occurrence timestamps. Accepts an RRULE string with DTSTART, an IANA time zone, and optional EXDATE and RDATE lists, and returns up to 200 occurrences as both local wall-clock times and UTC instants. Supports FREQ, INTERVAL, COUNT, UNTIL, BYDAY, BYMONTHDAY, BYMONTH, BYSETPOS and WKST. Occurrences moved by a DST gap carry gap: true. Rules needing over 50,000 candidate evaluations are rejected. Price: $0.05 per call. Also GET /v1/time/rrule.

    Examples

    • {"skill":"time.rrule","params":{"rrule":"FREQ=MONTHLY;BYDAY=-1FR;COUNT=3","dtstart":"2026-01-01T09:00:00","zone":"Europe/Amsterdam"}}
    • https://api.duoleads.com/v1/time/rrule?rrule=FREQ%3DMONTHLY%3BBYDAY%3D-1FR%3BCOUNT%3D3&dtstart=2026-01-01T09%3A00%3A00&zone=Europe%2FAmsterdam
    Input:application/json
    Output:application/json
  • Calendar converter: Gregorian to Hijri, Hebrew, Japanese era, Persian and more, plus Easter date

    time.calendar

    Calendar converter: convert a Gregorian date to other calendar systems: Islamic (both the tabular civil calendar and the Umm al-Qura variant), Hebrew, Japanese imperial era, Republic of China, Buddhist and Persian. Also computes Easter Sunday for a year in both the Gregorian and Julian reckonings. Uses the calendar support built into the runtime, with the algorithm named in every response. Price: $0.05 per call. Also GET /v1/time/calendar.

    Examples

    • {"skill":"time.calendar","params":{"date":"2026-09-28","to":"islamic,hebrew,japanese"}}
    • https://api.duoleads.com/v1/time/calendar?date=2026-09-28&to=islamic%2Chebrew%2Cjapanese
    Input:application/json
    Output:application/json
  • Slug generator: Unicode-aware URL slug with transliteration

    text.slug

    Slug generator: turn arbitrary text into a URL-safe slug. Decomposes accents, transliterates German umlauts, Scandinavian and Turkish letters, the ligatures that lose meaning under plain NFD, and Cyrillic (Russian, Ukrainian, Belarusian, Bulgarian, Serbian, Macedonian; language from lang or inferred from the letters). Lowercases, collapses separators, truncates on a word boundary. Returns the slug plus what was removed. Price: $0.05 per call. Also GET /v1/text/slug.

    Examples

    • {"skill":"text.slug","params":{"text":"Crème Brûlée — Ærøskøbing, Straße 42","lang":"de"}}
    • https://api.duoleads.com/v1/text/slug?text=Cr%C3%A8me+Br%C3%BBl%C3%A9e+%E2%80%94+%C3%86r%C3%B8sk%C3%B8bing%2C+Stra%C3%9Fe+42&lang=de
    Input:application/json
    Output:application/json
  • Cyrillic transliteration to Latin (ISO 9:1995, BGN/PCGN Russian)

    text.transliterate

    Cyrillic transliteration to Latin using a named standard: ISO 9:1995 (one-to-one, with diacritics, covering the full standard: Russian, other Slavic, historic and non-Slavic Cyrillic letters) or BGN/PCGN, which is the Russian system only (Ukrainian, Serbian and other letters are passed through unmapped). Returns the transliteration, the source script, the standard, the mapped fraction and the unmapped characters. Other scripts are rejected with UNSUPPORTED_VALUE. Price: $0.05 per call. Also GET /v1/text/transliterate.

    Examples

    • {"skill":"text.transliterate","params":{"text":"Щука","standard":"iso-9"}}
    • https://api.duoleads.com/v1/text/transliterate?text=%D0%A9%D1%83%D0%BA%D0%B0&standard=iso-9
    Input:application/json
    Output:application/json
  • Unicode normalization (NFC/NFKC), script detection and homoglyph/confusable check

    text.unicode

    Unicode normalization and confusables check: apply NFC, NFD, NFKC or NFKD, report which forms a string is already in, list the scripts present (all Unicode scripts), and flag confusable and homoglyph characters — Cyrillic а in a Latin word, fullwidth or mathematical look-alikes, all-look-alike words — plus zero-width joiners, bidirectional overrides, invisible and blank characters. Returns per-character detail with code points, names and the ASCII character each imitates. Price: $0.05 per call. Also GET /v1/text/unicode.

    Examples

    • {"skill":"text.unicode","params":{"text":"café","form":"nfd"}}
    • https://api.duoleads.com/v1/text/unicode?text=caf%C3%A9&form=nfd
    Input:application/json
    Output:application/json
  • String similarity: Levenshtein, Jaro-Winkler distance and Soundex/Metaphone phonetic keys

    text.similarity

    String similarity: compare two strings and return every standard measure in one call: Levenshtein and Damerau-Levenshtein edit distance, normalised similarity, Jaro and Jaro-Winkler, longest common subsequence, Dice coefficient on character bigrams, and the Soundex, Metaphone and NYSIIS phonetic keys of each string. Optional case folding, accent folding and whitespace normalisation before comparison. Price: $0.05 per call. Also GET /v1/text/similarity.

    Examples

    • {"skill":"text.similarity","params":{"a":"kitten","b":"sitting"}}
    • https://api.duoleads.com/v1/text/similarity?a=kitten&b=sitting
    Input:application/json
    Output:application/json
  • URL parser: parse, canonicalize and extract the registrable domain (eTLD+1)

    code.url

    URL parser: parse and canonicalise a URL, and extract its registrable domain using the Public Suffix List — the part an agent needs to decide whether two URLs belong to the same owner. Returns scheme, host, port, path, decoded query parameters and fragment, the public suffix, the registrable domain (eTLD+1), the subdomain, whether the suffix is ICANN or private, plus a canonical form with default port, dot-segments and percent-encoding normalised. unicode_host uses WHATWG/UTS 46 (non-strict). Price: $0.05 per call. Also GET /v1/code/url.

    Examples

    • {"skill":"code.url","params":{"url":"https://a.b.example.co.uk:443/x/../y?q=1&q=2#f"}}
    • https://api.duoleads.com/v1/code/url?url=https%3A%2F%2Fa.b.example.co.uk%3A443%2Fx%2F..%2Fy%3Fq%3D1%26q%3D2%23f
    Input:application/json
    Output:application/json
  • Punycode converter: IDN domain to ASCII and back, with IDNA2008 label validation

    code.idn

    Punycode converter: convert internationalised domain names between Unicode and ASCII punycode in either direction, label by label, and validate each label against IDNA2008: length, leading and trailing hyphens, the hyphen-hyphen rule at positions 3 and 4, disallowed code points and bidirectional rules. Returns both forms, the per-label breakdown and the first rule violated. Strict mode is IDNA2008 (UTS 46 non-transitional); it may reject names /v1/code/url displays. Price: $0.05 per call. Also GET /v1/code/idn.

    Examples

    • {"skill":"code.idn","params":{"domain":"bücher.example"}}
    • https://api.duoleads.com/v1/code/idn?domain=b%C3%BCcher.example
    Input:application/json
    Output:application/json
  • Semver parser: parse and compare versions, check range satisfaction

    code.semver

    Semver parser and comparator: parse a semantic version into major, minor, patch, prerelease and build parts; compare two versions by precedence including prerelease ordering; or test whether a version satisfies a range expression using caret, tilde, hyphen, x-ranges and comparator sets. Returns the parsed structure, the comparison result and the reason a range did not match. Price: $0.05 per call. Also GET /v1/code/semver.

    Examples

    • {"skill":"code.semver","params":{"version":"1.2.3-rc.1+build.5"}}
    • https://api.duoleads.com/v1/code/semver?version=1.2.3-rc.1%2Bbuild.5
    Input:application/json
    Output:application/json
  • SHA-256/HMAC hash generator: SHA-256, SHA-512, SHA-3, Keccak-256, BLAKE2 and HMAC digests

    code.hash

    Hash generator: compute a cryptographic digest of supplied data: SHA-256, SHA-384, SHA-512, SHA-1, SHA3-256, SHA3-512, Keccak-256, BLAKE2b-256 and BLAKE2b-512, plus HMAC with any of them. Input is UTF-8 text, base64 or hex bytes; output is hex, base64, base64url or base32. Returns the digest, the byte length of the input, and the exact algorithm identifier used. Price: $0.05 per call. Also GET /v1/code/hash.

    Examples

    • {"skill":"code.hash","params":{"algo":"sha256","data":"hello"}}
    • https://api.duoleads.com/v1/code/hash?algo=sha256&data=hello
    Input:application/json
    Output:application/json
  • JWT decoder: header, claims and expiry state (no signature verification)

    code.jwt

    JWT decoder: decode a JSON Web Token without verifying it: returns the header, the claims, the signature length and algorithm, and a computed view of the time claims — whether exp has passed, whether nbf is in the future, and the remaining lifetime in seconds against a supplied or current instant. Reports structural problems such as a missing part, invalid base64url or an alg of none. It does not and cannot verify the signature; do not use it to decide trust. Price: $0.05 per call. Also GET /v1/code/jwt.

    Examples

    • {"skill":"code.jwt","params":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","at":"2026-09-28T00:00:00Z"}}
    • https://api.duoleads.com/v1/code/jwt?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c&at=2026-09-28T00%3A00%3A00Z
    Input:application/json
    Output:application/json
  • Geohash encoder and decoder with neighbour cells

    geo.geohash

    Geohash encoder and decoder: encode a WGS-84 latitude and longitude to a geohash at a chosen precision, or decode a geohash back to its bounding box, centre point and error bounds in metres. Encoding also returns the eight neighbouring cells, which is what a caller needs to do proximity search over a geohash-indexed store without a spatial database. Price: $0.05 per call. Also GET /v1/geo/geohash.

    Examples

    • {"skill":"geo.geohash","params":{"op":"encode","lat":"52.3728","lon":"4.8936","precision":"9"}}
    • https://api.duoleads.com/v1/geo/geohash?op=encode&lat=52.3728&lon=4.8936&precision=9
    Input:application/json
    Output:application/json
  • Plus code (Open Location Code) encoder and decoder

    geo.pluscode

    Plus code (Open Location Code) encoder and decoder: encode coordinates as a plus code at a chosen length, or decode a full code back to its bounding box and centre. Also shortens a full code against a reference coordinate and recovers a shortened code given a reference, which is how plus codes are normally exchanged in text. Returns code length, precision in metres and validity. Price: $0.05 per call. Also GET /v1/geo/pluscode.

    Examples

    • {"skill":"geo.pluscode","params":{"lat":"52.3728","lon":"4.8936"}}
    • https://api.duoleads.com/v1/geo/pluscode?lat=52.3728&lon=4.8936
    Input:application/json
    Output:application/json
  • Point in polygon check, plus bounding box, centroid and area for GeoJSON

    geo.polygon

    Point in polygon check and GeoJSON geometry: point-in-polygon with correct hole handling, bounding box, centroid, signed area in square metres, perimeter length, and ring winding order for a geometry supplied in the request. Accepts Polygon and MultiPolygon, and a GeoJSON Feature wrapping either. Area and length are geodesic on the WGS-84 ellipsoid, correct at any latitude; containment is planar in lon/lat. Price: $0.05 per call. Also GET /v1/geo/polygon.

    Examples

    • {"skill":"geo.polygon","params":{"geometry":"{\"type\":\"Polygon\",\"coordinates\":[[[4.85,52.35],[4.95,52.35],[4.95,52.40],[4.85,52.40],[4.85,52.35]]]}","lat":"52.3728","lon":"4.8936"}}
    • https://api.duoleads.com/v1/geo/polygon?geometry=%7B%22type%22%3A%22Polygon%22%2C%22coordinates%22%3A%5B%5B%5B4.85%2C52.35%5D%2C%5B4.95%2C52.35%5D%2C%5B4.95%2C52.40%5D%2C%5B4.85%2C52.40%5D%2C%5B4.85%2C52.35%5D%5D%5D%7D&lat=52.3728&lon=4.8936
    Input:application/json
    Output:application/json
  • Distance calculator: geodesic distance, bearing and destination point on WGS-84

    geo.distance

    Distance calculator: distance and direction between WGS-84 coordinates: geodesic distance by Vincenty with a haversine fallback, initial and final bearing, the midpoint, and the destination point reached from a start point on a given bearing and distance. Also computes the cumulative length of a supplied coordinate path. Results in metres, kilometres, nautical miles and miles. Price: $0.05 per call. Also GET /v1/geo/distance.

    Examples

    • {"skill":"geo.distance","params":{"lat1":"52.3728","lon1":"4.8936","lat2":"40.7128","lon2":"-74.0060"}}
    • https://api.duoleads.com/v1/geo/distance?lat1=52.3728&lon1=4.8936&lat2=40.7128&lon2=-74.0060
    Input:application/json
    Output:application/json
  • Crypto address validator: detect the blockchain and verify the checksum (EVM, Bitcoin, Solana and more)

    chain.address

    Crypto address validator: identify which blockchain an address belongs to and validate its encoding: EVM EIP-55 checksum, Bitcoin base58check and bech32/bech32m with witness version, Solana base58 and on-curve check, Cosmos bech32 with its HRP, Tron, XRP, Litecoin, Dogecoin, Cardano, Polkadot SS58 and Algorand. Returns every chain the address is valid for (ambiguous when several match), the checksummed form for EVM addresses, and the reason a check failed, including unrecognised_format. Price: $0.05 per call. Also GET /v1/chain/address.

    Examples

    • {"skill":"chain.address","params":{"address":"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"}}
    • https://api.duoleads.com/v1/chain/address?address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045
    Input:application/json
    Output:application/json
  • Solidity function selector: Keccak-256, 4-byte selector and event topic from a signature

    chain.selector

    Solidity function selector and event topic: compute the Keccak-256 hash of a function or event signature and derive the 4-byte selector and the 32-byte topic. Normalises the signature first — strips parameter names, expands uint to uint256 and the other aliases, flattens tuples — so a signature copied from source code produces the same selector as the canonical form. Also hashes arbitrary text or hex bytes with Keccak-256. Price: $0.05 per call. Also GET /v1/chain/selector.

    Examples

    • {"skill":"chain.selector","params":{"signature":"transfer(address,uint256)"}}
    • https://api.duoleads.com/v1/chain/selector?signature=transfer%28address%2Cuint256%29
    Input:application/json
    Output:application/json
  • NUTS region lookup: EU statistical region codes, names and hierarchy

    ref.nuts

    NUTS region lookup (EU statistical regions): resolve a NUTS code to its name, country and level, walk up to its parents or down to its children, or search regions by name. Covers all four levels (country, major region, basic region, small region) for the 27 member states and 12 further reporting countries, from the NUTS 2024 classification. Returns the Latin-script and local-language names plus the urbanisation, coastal and mountain typologies. Price: $0.05 per call. Also GET /v1/ref/nuts.

    Examples

    • {"skill":"ref.nuts","params":{"code":"NL32B","include":"parents,typology"}}
    • https://api.duoleads.com/v1/ref/nuts?code=NL32B&include=parents%2Ctypology
    Input:application/json
    Output:application/json
  • Airport lookup by IATA or ICAO code: name, coordinates, elevation, time zone; nearest airports

    ref.airport

    Airport lookup by IATA or ICAO code: get the airport's name, city, country, ISO 3166-2 region code, WGS-84 coordinates, elevation and IANA time zone, or find the nearest airports to a coordinate within a radius. Covers every airport worldwide that holds a three-letter IATA code and scheduled service. Returns the code type that matched and the distance in kilometres for proximity results. Price: $0.05 per call. Also GET /v1/ref/airport.

    Examples

    • {"skill":"ref.airport","params":{"code":"AMS"}}
    • https://api.duoleads.com/v1/ref/airport?code=AMS
    Input:application/json
    Output:application/json
  • Currency lookup: ISO 4217 codes, names, minor units and cash rounding

    ref.currency

    Currency lookup by ISO 4217 alphabetic or numeric code: the official English name, minor-unit exponent, fund flag, the smallest cash denomination where it differs from the minor unit, the territories that use it, and historic codes on request. Returns the correct rounding increment for cash amounts, which is what a caller needs to render or settle a price. This route returns currency facts only and never an exchange rate. Price: $0.05 per call. Also GET /v1/ref/currency.

    Examples

    • {"skill":"ref.currency","params":{"code":"EUR","include":"territories"}}
    • https://api.duoleads.com/v1/ref/currency?code=EUR&include=territories
    Input:application/json
    Output:application/json
  • Country lookup: ISO 3166 codes, currency, TLD, UN region and ISO 3166-2 subdivisions

    ref.country

    Country lookup: find a country or territory by ISO 3166-1 alpha-2, alpha-3 or numeric code, or by name, and get the other codes, the official and common English names, the UN M49 region and sub-region, the currencies in use, the country-code TLD, and optionally the full ISO 3166-2 subdivision list with each subdivision's type. Also resolves an ISO 3166-2 subdivision code such as NL-NH directly. Names are matched case- and accent-insensitively. Price: $0.05 per call. Also GET /v1/ref/country.

    Examples

    • {"skill":"ref.country","params":{"code":"NL"}}
    • https://api.duoleads.com/v1/ref/country?code=NL
    Input:application/json
    Output:application/json
  • Base converter: integers between number bases 2 to 36 (hex, binary, octal)

    num.radix

    Base converter: convert an integer between any two numeric bases from 2 to 36 (hex, binary, octal and more), with arbitrary precision so values far beyond 2^53 are exact. Accepts an optional sign and common prefixes (0x, 0b, 0o), validates every digit against the source base, and returns the value in the target base, in decimal, and as its bit length and digit count. Price: $0.05 per call. Also GET /v1/num/radix.

    Examples

    • {"skill":"num.radix","params":{"value":"0xdeadbeef","to":"10"}}
    • https://api.duoleads.com/v1/num/radix?value=0xdeadbeef&to=10
    Input:application/json
    Output:application/json
  • Number to words in 12 languages, with ordinal and currency forms

    num.words

    Number to words: spell a number out in English, Dutch, German, French, Spanish, Italian, Portuguese, Polish, Russian, Turkish, Swedish or Japanese, in cardinal, ordinal or currency form. Currency form agrees the number with the currency noun and gives real minor-unit names for 19 currencies (EUR, USD, GBP, CHF, SEK, NOK, DKK, PLN, RUB, TRY, CNY, INR, BRL, MXN, CAD, AUD, NZD, CZK, HUF); any other ISO 4217 code uses a fraction such as 56/100. Values up to 10^15. Price: $0.05 per call. Also GET /v1/num/words.

    Examples

    • {"skill":"num.words","params":{"value":"1234","lang":"nl"}}
    • https://api.duoleads.com/v1/num/words?value=1234&lang=nl
    Input:application/json
    Output:application/json
  • Statistics calculator: mean, median, standard deviation, quartiles and percentiles

    num.stats

    Statistics calculator for a numeric array in one call: count, sum, mean, median, mode, variance and standard deviation honouring ddof (default 1, the sample form; 0 gives the population form) plus always-population *_population fields, min, max, range, the quartiles and interquartile range, skewness, kurtosis, and any requested percentiles. Percentiles use a named interpolation method so the result is reproducible rather than implementation-defined. Price: $0.05 per call. Also GET /v1/num/stats.

    Examples

    • {"skill":"num.stats","params":{"values":"1,2,3,4,5"}}
    • https://api.duoleads.com/v1/num/stats?values=1%2C2%2C3%2C4%2C5
    Input:application/json
    Output:application/json
  • Money split: allocate an amount into shares with no rounding loss

    num.allocate

    Money split: split a money amount into shares without losing or inventing a cent. Divide evenly into N parts, or by a list of ratios, and the remainder is distributed one minor unit at a time by a named, deterministic rule — largest-remainder, first-wins or last-wins — so the parts always sum exactly to the original. Uses the ISO 4217 minor-unit exponent of the currency, so zero- and three-decimal currencies work (JPY 0, KWD 3); metals and XXX are rejected. Price: $0.05 per call. Also GET /v1/num/allocate.

    Examples

    • {"skill":"num.allocate","params":{"amount":"100.00","currency":"EUR","parts":"3"}}
    • https://api.duoleads.com/v1/num/allocate?amount=100.00&currency=EUR&parts=3
    Input:application/json
    Output:application/json