Home » Posts tagged 'Application programming interface'
Tag Archives: Application programming interface
Writing on APIs for Programmable Web
I have been writing free lance on APIs for Programmable Web. Here is an updated list of the articles, many of these would be of interest to analytics users. Note- some of these are interviews and they are in bold.
PW Interview: Jeh Daruwala CEO Yactraq API, Behavorial Targeting for videos
PW Interview: Michael Schonfield of Dwolla API on Innovation Meeting the Payment Web 2013/05/02
PW Interview: Stephen Balaban of Lamda Labs on the Face Recognition API 2013/04/29
PW Interview: Amber Feng, Stripe API, The Payment Web 2013/04/24
PW Interview: Greg Lamp and Austin Ogilvie of Yhat on Shipping Predictive Models via API 2013/04/22
Google Mirror API documentation is open for developers 2013/04/18
PW Interview: Ricky Robinett, Ordr.in API, Ordering Food meets API 2013/04/16
PW Interview: Jacob Perkins, Text Processing API, NLP meets API 2013/04/10
Amazon EC2 On Demand Windows Instances -Prices reduced by 20% 2013/04/08
Amazon S3 API Requests prices slashed by half 2013/04/02
PW Interview: Stuart Battersby, Chatterbox API, Machine Learning meets Social 2013/04/02
PW Interview: Karthik Ram, rOpenSci, Wrapping all science APIs 2013/03/20
Viralheat Human Intent API- To buy or not to buy 2013/03/13
Interview Tammer Kamel CEO and Founder Quandl 2013/03/07
YHatHQ API: Calling Hosted Statistical Models 2013/03/04
Quandl API: A Wikipedia for Numerical Data 2013/02/25
Amazon Redshift API is out of limited preview and available! 2013/02/18
Windows Azure Media Services REST API 2013/02/14
Data Science Toolkit Wraps Many Data Services in One API 2013/02/11
Diving into Codeacademy’s API Lessons 2013/01/31
Google APIs finetuning Cloud Storage JSON API 2013/01/29
Springer APIs- Fostering Innovation via API Contests 2012/11/20
Statistically programming the web – Shiny,HttR and RevoDeploy API 2012/11/19
Google Cloud SQL API- Bigger ,Faster and now Free 2012/11/12
A Look at the Web’s Most Popular API -Google Maps API 2012/10/09
Cloud Storage APIs for the next generation Enterprise 2012/09/26
Last.fm API: Sultan of Musical APIs 2012/09/12
Socrata Data API: Keeping Government Open 2012/08/29
BigML API Gets Bigger 2012/08/22
Bing APIs: the Empire Strikes Back 2012/08/15
Google Cloud SQL: Relational Database on the Cloud 2012/08/13
Google BigQuery API Makes Big Data Analytics Easy 2012/08/05
Your Store in The Cloud -Google Cloud Storage API 2012/08/01
Predict the future with Google Prediction API 2012/07/30
The Romney vs Obama API 2012/07/27
Related articles
- API Evangelist (programmableweb.com)
Using R for Cricket Analysis #rstats
ESPN Crincinfo is the best site for cricket data (you can see an earlier detailed post on the database here http://decisionstats.com/2012/04/07/cricinfo-statsguru-database-for-statistical-and-graphical-analysis/ ), and using the XML package in R we can easily scrape and manipulate data
Here is the code.
library(XML) url="http://stats.espncricinfo.com/ci/engine/stats/index.html?class=1;team=6;template=results;type=batting" #Note I can also break the url string and use paste command to modify this url with parameters tables=readHTMLTable(url) tables$"Overall figures" #Now see this- since I only got 50 results in each page, I look at the url of next page table1=tables$"Overall figures" url="http://stats.espncricinfo.com/ci/engine/stats/index.html?class=1;page=2;team=6;template=results;type=batting" tables=readHTMLTable(url) table2=tables$"Overall figures" #Now I need to join these two tables vertically table3=rbind(table1,table2) Note-I can also automate the web scraping . Now the data is within R, we can use something like Deducer to visualize.
Created by Pretty R at inside-R.org
R in Oracle Java Cloud and Existing R – Java Integration #rstats
So I finally got my test plan accepted for a 1 month trial to the Oracle Public Cloud at https://cloud.oracle.com/ .
I am testing this for my next book R for Cloud Computing ( I have already covered Windows Azure, Amazon AWS, and in the middle of testing Google Compute).
Some initial thoughts- this Java cloud seemed more suitable for web apps, than for data science ( but I have to spend much more time on this).
I really liked the help and documentation and tutorials, Oracle has invested a lot in it to make it friendly to enterprise users.
Hopefully the Oracle R Enterprise ORE guys can talk to the Oracle Cloud department and get some common use case projects going.
In the meantime, I did a roundup on all R -Java projects.
They include- (more…)
Google Analytics using #Rstats – Updated
Due to changes in Google APIs my earlier post on using Google Analytics in R is deprecated. Unfortunately it is still on top 10 results for Google results for Using Google Analytics with R.
That post is here http://decisionstats.com/2012/03/20/using-google-analytics-with-r/
A more updated R package on Google Analytics and R is here . https://github.com/skardhamar/rga
A better updated post on an easy to use tutorial on using Google Analytics with R using OAuth 2 playground is here.
http://www.tatvic.com/blog/ga-data-extraction-in-r/
- Set the Google analytics query parameters for preparing the request URI
- Get the access token from Oauth 2.0 Playground
- Retrieve and select the Profile
- Retrieving GA data
Note it is excellent for learning to use RJSON method as well. You can see the details on the Tatvic blog above.
Hat tip- Vignesh Prajapati
Related articles
- (not provided): Using R and the Google Analytics API (r-bloggers.com)
httR by Hadley #rstats
The awesome Hadley Wickham has just released the next version of httr package. Prof Hadley is currently on leave from Rice Univ and working with the tremendous geeks at R Studio . New things in the httr package-
http://blog.rstudio.org/2012/10/14/httr-0-2/
httr, a package designed to make it easy to work with web APIs. Httr is a wrapper around RCurl, and provides:
- functions for the most important http verbs:
GET,HEAD,PATCH,PUT,DELETEandPOST. - support for OAuth 1.0 and 2.0. Use
oauth1.0_tokenandoauth2.0_tokento get user tokens, andsign_oauth1.0andsign_oauth2.0to sign requests. The demos directory has six demos of using OAuth: three for 1.0 (linkedin, twitter and vimeo) and three for 2.0 (facebook, github, google).
I especially like the OAuth functionality as I occasionaly got flummoxed with existing R OAuth packages , and this should hopefully lead to awesome new social media analytics posts by the larger R blogger community. Also given the fact that unauthenticated API requests to Twitter are greatly expanded by OAuth authenticated requests- (see https://dev.twitter.com/docs/rate-limiting )
- Unauthenticated calls are permitted 150 requests per hour. Unauthenticated calls are measured against the public facing IP of the server or device making the request.
- OAuth calls are permitted 350 requests per hour and are measured against the oauth_token used in the request.
some creative use cases should see an incredible amount of cross social media analysis (not just one social media channel ) at a time.
R for Social Media Analytics ? Watch this space..
Related articles
- New version of httr: 0.2 (rstudio.org)
Google releases V1.2 of Google Prediction API
To join the preview group, go to the APIs Console and click the Prediction API slider to “ON,” and then sign up for a Google Storage account.
For the past several months, I have been member of a semi-public beta test/group/forum – that is headed by Travis Green of the Google Prediction API Team (not the hockey player). Basically in helping the Google guys more feedback on the feature list for model building via cloud computing. I couldn’t talk about it much , because it was all NDA hush hush.
Anyways- as of today the version 1.2 of Google Prediction API has been launched. What does this do to the ordinary Joe Modeler? Well it helps gives your models -thats right your plain vanilla logistic regression,arima, arimax, models an added ensemble option of using Google’s Machine Learning (more…)
R Node- and other Web Interfaces to R
R Node is a great web interface to R.
http://squirelove.net/r-node/doku.php
Features
-
Access to a R server backend via a web browser UI
-
The web browser UI works in all modern browsers, including IE 7 and 8 (excluding SVG based graphs).
-
Username/password login (both from the browser to the R-Node server, and from the R-Node server to Rserve and R).
-
Per-user R sessions. Each user can have their own R workspace, or they can share.
-
-
Support for most R commands that perform statistical analysis and provide textual feedback.
-
Support for most standard R commands that provide graphical feedback via server side generation of the graphs. Some graphs (e.g. plot() can be plotted via SVG client-side as well).
-
Downloading of generated graphs.
-
Accessing R help files using help() and ? commands (Note R v2.10 altered how help is provided, so this currently is not working in R v2.10)
-
Uploading files to work with their data in R.
-
Many commands will work. Try a command, if it does not work, use the feedback button in the application to let us know.
Limitations
-
Various R functions are not supported. These include:
-
Installation of new R packages.
-
Searching of help via ??.
- Example calls (via example()).
-
- First and now not so updated Rweb: Web-based Statistical Analysis Last Modified: 25-Jun-1999 JSS Paper (http://www.jstatsoft.org/v04/i01/
R-Online https://user.cs.tu-berlin.de/~ulfi/cgi-bin/r-online/r-online.cgi(The official FAQ seems outdated )
- Rcgi (it is not clear if the project is still active as per official FQ) http://www.ms.uky.edu/~statweb/testR3.html

Rphp
RWui
http://sysbio.mrc-bsu.cam.ac.uk/Rwui/

R.Rsp
http://cran.r-project.org/web/packages/R.rsp/index.html
RServe
http://www.rforge.net/doc/packages/Rserve/00Index.html
RPad
http://rpad.googlecode.com/svn-history/r76/Rpad_homepage/index.html

CGIwithR
JSS paper Citation. CGIwithR: Facilities for processing Web forms using R. Journal of Statistical Software, 8(10), pp. 1-8, 2003.
A lecture on aspects of using CGI
R Apache
http://biostat.mc.vanderbilt.edu/rapache/

- Open Infrastructure for Outcomes with a live reporting module using RSessionDA
- Free statistics software- Wessa server using R (see http://www.wessa.net/rwasp_arimaforecasting.wasp)
Wessa, P. (2011), Free Statistics Software, Office for Research Development and Education,
version 1.1.23-r6, URL http://www.wessa.net/
- An impressive implementation of time series analysis based on R and Javascript. This web server creates separate browser windows for data entry, graphics, and procedure selection. These windows are dynamic. For example, after entering data there is no
submitbutton to submit the data. The procedure selection window is used to start the analysis, which uses the current values in the data window.
- Online multivariate analysis and graphical displays from PBIL, Lyon
- An R web server for robust rank-based linear models
To make an interactive GUI in gWidgets can be as easy as creating the following script:
w <- gwindow(’simple interactive GUI with one button’, visible=FALSE)
g <- ggroup(cont=w)
b <- gbutton(’click me’, cont=g, handler=function(h,...) {
gmessage(’hello world’, parent=b)
})
visible(w) <- TRUE
A big and slightly outdated resource page from (which I used for some find and seek of resources)
http://biostat.mc.vanderbilt.edu/twiki/bin/view/Main/StatCompCourse
AND
The famous site at http://www.yeroon.net/ggplot2/ (but no sharing of this site’s source code ,sigh!)

Thats all for now- but watch this space its exciting (to watch AND code) -
Code Enhancers for R
This page lists code editors (or IDE)
https://rforanalytics.wordpress.com/code-enhancers-for-r/
Graphical User Interfaces for R
https://rforanalytics.wordpress.com/graphical-user-interfaces-for-r/
ODBC /Databases for R
https://rforanalytics.wordpress.com/odbc-databases-for-r/
Related Articles
- WebTunes provides Web-based iTunes interface (macworld.com)
- 5 Reasons to Use Twitter Web Interface (madrasgeek.com)
- Getting Started With Riak & Python (pragmaticbadger.com)
- Rserve – Binary R server – RForge.net (rforge.net)
- How to Run Apache and Node.js on the Same Server (readwriteweb.com)
- Rserve – TCP/IP interface to R – RoSuDa – Lehrstuhl für Rechnerorientierte Statistik und Datenanalyse – Universität Augsburg (stats.math.uni-augsburg.de)







