Mashape Blog

Rumors aboard Mashape's spaceship

Chris Ismael
This post is brought to you in part by Geeklist, a vibrant platform for geeks to discover, connect and share the great work they have done.  Check out the upcoming ‘Hack for Good’ global mobile hackathon this coming June 28th – 30th. We love hackathons!  We love seeing what developers can do with APIs.  Just look at this, this, thisthis, this, this, and this! However with hackathons running almost every day, it’s easy to run out of app ideas.  What if your app was already created in some hackathon that you…
Chris Ismael
There has been a lot of buzz around Face Recognition since Google Glass was announced.  We believe that face recognition will open up a ton of possibilities in how we interact not just with each other, but with objects as well – whether it’s with Glass or not. To help you in your journey of exploring face recognition, we have below a long list of face detection and recognition APIs that you can use for your applications.  Enjoy! Face Recognition – Stephen here from Lambda Labs. For sample code and a graphical demo, check out http://api.lambdal.com/docs. Our API provides…
Chris Ismael
After the successful launch of Unirest, an open source lightweight http client library, we received a lot of requests for a C# .NET port on Windows Desktop and Windows 8.  Even before we got to work, we’ve received contributions from the open source community who ported Unirest to .NET. This tutorial will show you how to use the Windows 8 (RT) port of Unirest in your application (We will follow this up with the Windows Desktop port in a later post, but it will follow pretty much the same steps).  Let’s get started! NOTE:  We will be updating this…
Chris Ismael
After we posted the list of NLP, Sentiment Analysis, and Machine Learning APIs a while ago, we noticed that some API descriptions require a little bit of digging into, to fully appreciate what these APIs can do.  Here’s an example: Text analysis API including wordnet synsets,relation extraction,named entity recognition and classification,lemmatization,part of speech tagging,tokenization, and semantic role labeling.  If you’re not familiar with these words, you could totally miss the features that this API is capable of. To help with that, we have listed below an explanation to some of these words in the NLP/Machine Learning context; as…
Chris Ismael
This post is intended to help data scientists and engineers who, in some capacity, have implemented routines/algorithms/data that does a specialized function (e.g. machine learning) using a dynamically typed language, such as Python.  The goal is to web-enable these routines/algorithms using an application programming interface (API). Exposing these functions/data as an API allows for:
    Easier, faster, and consistent sharing of functionality/data that could further progress the research.  A good example of this is the Materials Project from the Lawrence Berkeley National Laboratory.  They deemed it necessary for the scientific community to have access to their data, hence exposing it as
Chris Ismael
Image credit: https://flic.kr/p/2nmAe Into APIs now, Yoda is……
Chris Ismael
In this short tutorial we will use Python in our Mac Terminal to consume one of the Machine Learning APIs in this list.  Let’s pick DuckDuckGo. DuckDuckGo lets us define people, places, things, words, and concepts.  It also provides a list of related topics.  This is very useful if you want to get some context on a certain text. Although we’re picking DuckDuckGo, note that the steps below also applies to the rest of the APIs in the Machine Learning APIs list, and all Mashape APIs.  That means you can swap in and swap out APIs for…
Chris Ismael
Provide a better documentation flow Keep your documentation up-to-date Answer questions in sites like Quora Help developers in Stackoverflow Provide sample responses to your API’s endpoints Make your API easy to consume – RESTful, etc. Build relationships with fellow API developers Allow developers to comment/provide feedback to your APIs Provide freemium access Show health statistics of your API Join hackathons Host hackathons Create tutorials Build client libraries Craft verbose client library documentation Blog about your API and its progress Use other APIs Provide sample code Check what fellow APIs in the same category are doing Provide a test console Create…
Chris Ismael
This is a tutorial on how you can use the Face Recognition API in a web application using Javascript.  The Face Recognition API makes it ridiculously easy to add face recognition capabilities to your app, whether it’s web, mobile, etc.  We will use photobooth.js to take pictures from our webcam. (Make sure you have one in your machine or plugged in) There are 2 main things to remember when using the Face Recognition API.  You need to: “Train” the Face Recognition API, which means uploading a bunch of pictures that will constitute the “database” from which pictures will be recognized.…
Chris Ismael
This sample code snippet below is CORS-enabled so you don’t have to worry about cross-domain requests. $.ajax({ url: 'MASHAPE-URL', // The URL to the API. You can get this by clicking on "Show CURL example" from an API profile type: 'POST', // The HTTP Method data: {}, // Additional parameters here datatype: 'json', success: function(data) { alert(JSON.stringify(data)); }, error: function(err) { alert(err); }, beforeSend: function(xhr) { xhr.setRequestHeader("X-Mashape-Authorization", "YOUR-MASHAPE-KEY"); // Enter here your Mashape key } }); Source: https://gist.github.com/thefosk/5024297
< newer posts older posts >