Hello world

Last 7 days, UTC

Average Latency
22ms

Average Uptime
100.0%

Current Status
Online

  • No information
  • Outage
  • Disruption
  • Normal
Average latency determined from Mashape to API Response time

Simple & Straightforward Pricing

Pay as you go. No long-term contracts.

Freemium

$0

additional fees may apply

Api Calls

500 / mo.

$0.0001 per extra

Subscribe

basic

$5.00

per month

Api Calls

1,500 / day

$0.0001 per extra

Subscribe

Endpoints

HTTP 200 : Currency Model GET/api/format/currency
						{
  "given": "3,498.28",
  "formatted": "$3,498.28"
}						
Currency

Format currency amounts in multiple locales, default en-US


Test console
Description
Parameter
string

Value to be formatted as currency
Example: 3,498.28

value

Required

string

Country codes, there are a lot supported, full list coming soon. Popular: cy, da, de, en-US, en-GB, en-CA, el, es, fr, ga, gd, gl, gu, ha, he, hu, is, it, km, ko, kok, ky, kl, ka, ja, iu, ro, ru, se, tr, vi, wo, yi, zh
Example: en-US

country

Optional

HTTP 200 : Name Model GET/api/format/name
						{
  "prefix": [
    "Mr."
  ],
  "suffix": [
    "Ph.D",
    "the IV",
    "kun"
  ],
  "firstName": "Nijiko",
  "lastName": "Yonskai",
  "fullName": "Nijiko Yonskai"
}						
Name

Name normalization / formatting. Currently only English, and Japanese honorifics are supported, more coming soon.


Test console
Description
Parameter
string

Name to be normalized / formatted.
Example: Dr. Nijiko-kun Yonskai the IV Ph.D

name

Required

HTTP 200 : Numbers Model GET/api/format/numeric
						{
  "given": "20359.82",
  "formatted": "20,359.82"
}						
Numbers

Numeric formatting based on country code and input


Test console
Description
Parameter
number

Value to be formatted
Example: 20359.82

value

Required

number

Decimal places to show, zero for none, with rounding.

places

Optional

boolean

Should we format this as a decimal?

decimal

Optional

boolean

Should we format this as a percentage?

percentage

Optional

HTTP 200 : Number Format GET/api/format/number
Formatting, validation, and type of number
						{
  "e164": "+15555558235",
  "national": "(555) 555-8235",
  "international": "+1 555-555-8235",
  "valid": false,
  "type": "UNKNOWN"
}						
Phone Number

Formats, validates, and returns the type of given number


Test console
Description
Parameter
string

Phone number to be formatted, validated, and returns the type of number such as FAX, LINE, etc...
Example: (555)555-8235

number

Required

string

Country acronym of number given
Example: us

country

Optional

HTTP 200 : Time Model GET/api/format/time
						{
  "given": 1360002924000,
  "time": {
    "daysInMonth": 28,
    "millisecond": 0,
    "second": 24,
    "minute": 35,
    "hour": 18,
    "date": 4,
    "day": 1,
    "week": 6,
    "month": 1,
    "year": 2013
  },
  "formatted": {
    "ago": "a month",
    "calendar": "02/04/2013",
    "generic": "2013-02-04T18:35:24+00:00",
    "time": "6:35 PM",
    "short": "02/04/2013",
    "slim": "2/4/2013",
    "hand": "Feb 4 2013",
    "handTime": "Feb 4 2013 6:35 PM",
    "longhand": "February 4 2013",
    "longhandTime": "February 4 2013 6:35 PM",
    "full": "Monday, February 4 2013 6:35 PM",
    "fullSlim": "Mon, Feb 4 2013 6:35 PM"
  },
  "array": [
    2013,
    1,
    4,
    18,
    35,
    24,
    0
  ],
  "offset": 1360002924000,
  "unix": 1360002924,
  "utc": "2013-02-04T18:35:24.000Z",
  "valid": true,
  "integer": true,
  "zone": 0
}						
Time

Format, Validate, and get extensive information and details about a date / time.


Test console
Description
Parameter
string

Can be timestamp based, or valid date as string
Example: 1362446014869

value

Optional

string

Supported Languages: ar-ma, ar, bg, ca, cs, cv, da, de, el, en-ca, en-gb, eo, es, et, eu, fi, fr-ca, fr, gl, he, hi, hu, id, is, it, ja, ko, lv, ms-my, nb, ne, nl, pl, pt-br, pt, ro, ru, sl, sv, th, tr, tzm-la, tzm, uk, zh-cn, zh-tw
Example: en

lang

Optional

HTTP 200 : string GET/api/format/trim/spaces
Trim Spaces

Trim whitespace from the beginning and end or only one side of a sentence or word. Does not deal with tabs.


Test console
Description
Parameter
string

String to be trimmed
Example: Hello World

value

Required

string

Which side needs to be trimmed?
Example: Left or Right (Also supports start, and end)

side

Optional

You must have an API key to test this API!


Mashape allows developers to find, consume, and distribute cloud APIs just like Format.

Login to your account or signup: Create Account

or
   Signup with GitHub

By signing up you agree to our terms of service.