Mashape API

The Mashape API allows you to query and retrieve API and user information from Mashape. They are accordingy grouped as API and User.

Below are sample responses for each Mashape API endpoint.

API

Get API - Get API information given a username and apiname

Sample response:

{
  "user": {
    "slugifiedName": "mashaper",
    "id": "4ce3f1231355db3cb0ab7cbb",
    "username": "mashaper",
    "url": "https://mashape.p.mashape.com/users/mashaper"
  },
  "category": {
    "name": "Tools",
    "url": "https://mashape.p.mashape.com/apis?category=Tools"
  },
  "image": "https://s3.amazonaws.com/mashape-fs-production/apis/51476fcee4b025f6fe2aaf63/logo.png",
  "name": "Mashape",
  "description": "Mashape provides a world-class marketplace to manage, distribute and consume both private and public APIs by developers from all over the world. Here is the official Mashape API to retrieve APIs and users information.",
  "url": "https://mashape.p.mashape.com/users/mashaper/apis/mashape"
}

Get current user's API - Get the APIs created by current user

Sample response:

{
  "apis": [
    {
      "user": {
        "slugifiedName": "mashaper",
        "id": "4ce3f1231355db3cb0ab7cbb",
        "username": "mashaper",
        "url": "https://mashape.p.mashape.com/users/mashaper"
      },
      "category": null,
      "image": null,
      "name": "Basic Auth Test",
      "description": null,
      "url": "https://mashape.p.mashape.com/users/mashaper/apis/basic-auth-test"
    }
  ],
  "total":1
}

Get user's APIs - Get the list of APIs created and published by the user

Sample response:

{
    "apis": [
    {
      "user": {
        "slugifiedName": "ismaelc",
        "id": "50292245e4b0c1fe292a5b8d",
        "username": "ismaelc",
        "url": "https://mashape.p.mashape.com/users/ismaelc"
      },
      "category": {
        "name": "Data",
        "url": "https://mashape.p.mashape.com/apis?category=Data"
      },
      "image": "https://s3.amazonaws.com/mashape-fs-production/apis/5150c3e6e4b036feb502e81d/logo.png",
      "name": "data.NASA",
      "description": "About data.nasa.gov - The Open Data project is part of the NASA Open Government Initiative, and is intended to improve access to NASA data.  This data catalog is a continually-growing listing of publicly available NASA datasets.",
      "url": "https://mashape.p.mashape.com/users/ismaelc/apis/data-nasa"
    }
  ],
  "total": 6
}

Search APIs - Perform a search on Mashape's API catalog

Sample response:

{
  "apis": [
    {
      "user": {
        "slugifiedName": "ismaelc",
        "id": "50292245e4b0c1fe292a5b8d",
        "username": "ismaelc",
        "url": "https://mashape.p.mashape.com/users/ismaelc"
      },
      "category": {
        "name": "Entertainment",
        "url": "https://mashape.p.mashape.com/apis?category=Entertainment"
      },
      "image": "https://s3.amazonaws.com/mashape-fs-production/apis/50ef1b1ae4b0d5865205453e/logo.png",
      "name": "Yoda Speak",
      "description": "Turn your sentences into Yoda-speak!  Credits to http://www.yodaspeak.co.uk/ for providing this service.\r\n\r\nThis API is a test in progress, and still sitting on a dev sandbox.  Things might break quite often.",
      "url": "https://mashape.p.mashape.com/users/ismaelc/apis/yoda-speak"
    }
  ],
  "total": 1
}

User

Get API consumers - Get API consumers given a username and apiname

Sample response:

{
  "total": 5,
  "users": [
    {
      "slugifiedName": "speciosus",
      "id": "50506424e4b03db47431d5e3",
      "username": "speciosus",
      "url": "https://mashape.p.mashape.com/users/speciosus"
    },
    {
      "slugifiedName": "montanaflynn",
      "id": "4d2bd097254adb3c7803a074",
      "username": "montanaflynn",
      "url": "https://mashape.p.mashape.com/users/montanaflynn"
    },
    {
      "slugifiedName": "mashaper",
      "id": "4ce3f1231355db3cb0ab7cbb",
      "username": "mashaper",
      "url": "https://mashape.p.mashape.com/users/mashaper"
    },
    {
      "slugifiedName": "ismaelc",
      "id": "50292245e4b0c1fe292a5b8d",
      "username": "ismaelc",
      "url": "https://mashape.p.mashape.com/users/ismaelc"
    }
  ]
}

Get current user - Get current user information

Sample response:

{
  "slugifiedName": "mashaper",
  "id": "4ce3f1231355db3cb0ab7cbb",
  "username": "mashaper",
  "url": "https://mashape.p.mashape.com/users/mashaper"
}

Get user - Get user information

Sample response:

{
  "slugifiedName": "mashaper",
  "id": "4ce3f1231355db3cb0ab7cbb",
  "username": "mashaper",
  "url": "https://mashape.p.mashape.com/users/mashaper"
}
Last 7 days, UTC

Average Latency
6ms

Average Uptime
100.0%

Current Status
Online

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

APIs

HTTP 200 : API GET/users/{username}/apis/{apiname}
						{
  "user": {
    "slugifiedName": "mashaper",
    "id": "4ce3f1231355db3cb0ab7cbb",
    "username": "mashaper",
    "url": "https://mashape.p.mashape.com/users/mashaper"
  },
  "category": {
    "name": "Tools",
    "url": "https://mashape.p.mashape.com/apis?category=Tools"
  },
  "image": "https://s3.amazonaws.com/mashape-fs-production/apis/51476fcee4b025f6fe2aaf63/logo.png",
  "name": "Mashape",
  "description": "Mashape provides a world-class marketplace to manage, distribute and consume both private and public APIs by developers from all over the world. Here is the official Mashape API to retrieve APIs and users information.",
  "url": "https://mashape.p.mashape.com/users/mashaper/apis/mashape"
}						
Get API

Get API information given a username and apiname


Test console
Description
Parameter
string

Mashape username
Example: mashaper

username

Required

string

API name
Example: mashape

apiname

Required

HTTP 200 : User's API GET/user/apis
						{
  "apis": [
    {
      "user": {
        "slugifiedName": "mashaper",
        "id": "4ce3f1231355db3cb0ab7cbb",
        "username": "mashaper",
        "url": "https://mashape.p.mashape.com/users/mashaper"
      },
      "category": {
        "name": "Tools",
        "url": "https://mashape.p.mashape.com/apis?category=Tools"
      },
      "image": "https://s3.amazonaws.com/mashape-fs-production/apis/51476fcee4b025f6fe2aaf63/logo.png",
      "name": "Mashape",
      "description": "Mashape provides a world-class marketplace to manage, distribute and consume both private and public APIs by developers from all over the world. Here is the official Mashape API to retrieve APIs and users information.",
      "url": "https://mashape.p.mashape.com/users/mashaper/apis/mashape"
    },
    {
      "user": {
        "slugifiedName": "mashaper",
        "id": "4ce3f1231355db3cb0ab7cbb",
        "username": "mashaper",
        "url": "https://mashape.p.mashape.com/users/mashaper"
      },
      "category": {
        "name": "Social",
        "url": "https://mashape.p.mashape.com/apis?category=Social"
      },
      "image": "https://s3.amazonaws.com/mashape-fs-production/apis/4ce3f3d81355db3cd8ab7cbb/logo.png",
      "name": "bitly",
      "description": "bit.ly allows users to shorten, share, and track links (URLs). Reducing the URL length makes sharing easier. See http://dev.bitly.com/ for more information.",
      "url": "https://mashape.p.mashape.com/users/mashaper/apis/bitly"
    }
  ],
  "total": 2
}						
Get current user's API

Get the APIs created by current user


HTTP 200 : Subscription GET/users/{username}/apis/{apiname}/consumers/{subscriber_name}/subscription
						{
  "endDate": null,
  "startDate": "Fri Nov 30 14:29:11 UTC 2012",
  "limits": [
    {
      "additionalPrice": "0.1000",
      "key": "Statuses classified",
      "type": "day",
      "limit": 500
    }
  ],
  "name": "FREE"
}						
Get subscription

Get subscription details of a specific user for a particular API


Test console
Description
Parameter
string

Mashape username
Example: chatterbox.co

username

Required

string

API name
Example: sentiment-analysis-for-social-media

apiname

Required

string

Mashape username subscribed to the API
Example: ismaelc

subscriber_name

Required

HTTP 200 : User's API GET/users/{username}/apis
						{
  "apis": [
    {
      "user": {
        "slugifiedName": "mashaper",
        "id": "4ce3f1231355db3cb0ab7cbb",
        "username": "mashaper",
        "url": "https://mashape.p.mashape.com/users/mashaper"
      },
      "category": {
        "name": "Tools",
        "url": "https://mashape.p.mashape.com/apis?category=Tools"
      },
      "image": "https://s3.amazonaws.com/mashape-fs-production/apis/51476fcee4b025f6fe2aaf63/logo.png",
      "name": "Mashape",
      "description": "Mashape provides a world-class marketplace to manage, distribute and consume both private and public APIs by developers from all over the world. Here is the official Mashape API to retrieve APIs and users information.",
      "url": "https://mashape.p.mashape.com/users/mashaper/apis/mashape"
    },
    {
      "user": {
        "slugifiedName": "mashaper",
        "id": "4ce3f1231355db3cb0ab7cbb",
        "username": "mashaper",
        "url": "https://mashape.p.mashape.com/users/mashaper"
      },
      "category": {
        "name": "Social",
        "url": "https://mashape.p.mashape.com/apis?category=Social"
      },
      "image": "https://s3.amazonaws.com/mashape-fs-production/apis/4ce3f3d81355db3cd8ab7cbb/logo.png",
      "name": "bitly",
      "description": "bit.ly allows users to shorten, share, and track links (URLs). Reducing the URL length makes sharing easier. See http://dev.bitly.com/ for more information.",
      "url": "https://mashape.p.mashape.com/users/mashaper/apis/bitly"
    }
  ],
  "total": 2
}						
Get user's APIs

Get the list of APIs created and published by the user


Test console
Description
Parameter
string

Mashape username
Example: mashaper

username

Required

HTTP 200 : User's API GET/apis
						{
  "apis": [
    {
      "user": {
        "slugifiedName": "mashaper",
        "id": "4ce3f1231355db3cb0ab7cbb",
        "username": "mashaper",
        "url": "https://mashape.p.mashape.com/users/mashaper"
      },
      "category": {
        "name": "Tools",
        "url": "https://mashape.p.mashape.com/apis?category=Tools"
      },
      "image": "https://s3.amazonaws.com/mashape-fs-production/apis/51476fcee4b025f6fe2aaf63/logo.png",
      "name": "Mashape",
      "description": "Mashape provides a world-class marketplace to manage, distribute and consume both private and public APIs by developers from all over the world. Here is the official Mashape API to retrieve APIs and users information.",
      "url": "https://mashape.p.mashape.com/users/mashaper/apis/mashape"
    },
    {
      "user": {
        "slugifiedName": "mashaper",
        "id": "4ce3f1231355db3cb0ab7cbb",
        "username": "mashaper",
        "url": "https://mashape.p.mashape.com/users/mashaper"
      },
      "category": {
        "name": "Social",
        "url": "https://mashape.p.mashape.com/apis?category=Social"
      },
      "image": "https://s3.amazonaws.com/mashape-fs-production/apis/4ce3f3d81355db3cd8ab7cbb/logo.png",
      "name": "bitly",
      "description": "bit.ly allows users to shorten, share, and track links (URLs). Reducing the URL length makes sharing easier. See http://dev.bitly.com/ for more information.",
      "url": "https://mashape.p.mashape.com/users/mashaper/apis/bitly"
    }
  ],
  "total": 2
}						
Search APIs

Perform a search on Mashape's API catalog


Test console
Description
Parameter
string

Keywords
Example: mashape

query

Optional

number

How many results
Example: 20

limit

Optional

number

Offset (for pagination)

offset

Optional

string

Category

category

Optional

Users

HTTP 200 : API consumers GET/users/{username}/apis/{apiname}/consumers
						{
  "total": 5,
  "users": [
    {
      "slugifiedName": "speciosus",
      "id": "50506424e4b03db47431d5e3",
      "username": "speciosus",
      "url": "https://mashape.p.mashape.com/users/speciosus"
    },
    {
      "slugifiedName": "walgreensapi",
      "id": "51073afde4b0f75e489eab11",
      "username": "walgreensapi",
      "url": "https://mashape.p.mashape.com/users/walgreensapi"
    },
    {
      "slugifiedName": "montanaflynn",
      "id": "4d2bd097254adb3c7803a074",
      "username": "montanaflynn",
      "url": "https://mashape.p.mashape.com/users/montanaflynn"
    },
    {
      "slugifiedName": "mashaper",
      "id": "4ce3f1231355db3cb0ab7cbb",
      "username": "mashaper",
      "url": "https://mashape.p.mashape.com/users/mashaper"
    },
    {
      "slugifiedName": "ismaelc",
      "id": "50292245e4b0c1fe292a5b8d",
      "username": "ismaelc",
      "url": "https://mashape.p.mashape.com/users/ismaelc"
    }
  ]
}						
Get API consumers

Get API consumers given a username and apiname


Test console
Description
Parameter
string

Mashape username
Example: mashaper

username

Required

string

API name
Example: mashape

apiname

Required

HTTP 200 : User GET/user
						{
  "slugifiedName": "mashaper",
  "id": "4ce3f1231355db3cb0ab7cbb",
  "username": "mashaper",
  "url": "https://mashape.p.mashape.com/users/mashaper"
}						
Get current user

Get current user information


HTTP 200 : User GET/users/{username}
						{
  "slugifiedName": "mashaper",
  "id": "4ce3f1231355db3cb0ab7cbb",
  "username": "mashaper",
  "url": "https://mashape.p.mashape.com/users/mashaper"
}						
Get user

Get user information


Test console
Description
Parameter
string

Mashape username
Example: mashaper

username

Required

Consume this API completely for free!


By joining the mashape API marketplace you can start using Mashape API today!

Login to your account or signup: Create Account

or
   Signup with GitHub

By signing up you agree to our terms of service.