RAW Labs

Example Data Products

The following are data products examples built using RAW. More detail and the code is available within these sub-directories

Clicking on these endpoints will generally return JSON data into the browser. This is not formatted in most web browsers. Therefore in Chrome, we suggest you install a Chrome extension: JSON formatter - get from Chrome Webstore
In Safari you can install an extension like this one

Comments and suggestions are welcome: feel free to file GitHub Issues or email us at hello@raw-labs.com

Read our Blogs and Tutorials, many of which are relevant to these examples: https://www.raw-labs.com/blog

See our Docs and Developer Resources: https://docs.raw-labs.com

Follow us on on Twitter: https://twitter.com/raw_labs

Endpoints to query data from a copy of the Wikipedia's movie dataset, stored on GitHub.

Movies can be queried by title

https://api.raw-labs.com/examples/1/public/movies/movies-by-title?title=river

or by year

https://api.raw-labs.com/examples/1/public/movies/movies-by-year?year=2000

Endpoints combine "open" data hosted on DataHub, as well as files stored on an S3 bucket.

Medals per country

https://api.raw-labs.com/examples/1/public/olympic-games/country-medals?country_name=Germany

Medals per athlete (there's a video about this endpoint)

https://api.raw-labs.com/examples/1/public/olympic-games/athlete-data?athlete_name=BURKE,%20Thomas

Gold medals per country

https://api.raw-labs.com/examples/1/public/olympic-games/country-gold-medals?country_name=Germany

Retrieve last updated web pages from a website sitemap:

https://api.raw-labs.com/examples/1/public/sitemap/recentpages?website=https://virgingalactic.com

Example showing simple API integration, joining two APIs to produce a third This example shows the location of the ISS (space station) location, now:

https://api.raw-labs.com/examples/1/public/ISS/isslocation

https://api.raw-labs.com/examples/1/public/ISS/isslocationosm

Layering on top of a weather provider, in this case visualcrossing.com
Note these are protected from public access due to licensed data being used. Please contact us at hello@raw-labs.com

Daily History: https://api.raw-labs.com/examples/1/public/weather/history-daily?location=london&yearmonth=2022-01

Hourly History: https://api.raw-labs.com/examples/1/public/weather/history-hourly?location=london&yearmonth=2022-01

Example showing resource-intensive data products involving calculations on sizeable data:

https://api.raw-labs.com/examples/1/public/value-at-risk/index-var?index=^DJI - Dow Jones 30 stocks

https://api.raw-labs.com/examples/1/public/value-at-risk/index-var?index=^GSPC - S&P 500 stocks

https://api.raw-labs.com/examples/1/public/value-at-risk/index-var?index=^IXIC - Nasdaq 100 stocks

Our good friend the New York TLC data set, we show how to query with RAW, and adding MTA data too:

https://api.raw-labs.com/examples/1/public/nyc-transit/trips?yearmonth=2021-07

More functions, adding Weather data too, note these are protected from public access due to licensed data being used.
Please contact us at hello@raw-labs.com for more information

https://api.raw-labs.com/examples/1/public/nyc-transit/trips-summary-daily-weather?yearmonth=2021-01

https://api.raw-labs.com/examples/1/public/nyc-transit/taxi-trips-hourly-weather?yearmonth=2021-01

Analytics on News web pages, including metadata extraction using opengraph.io and entity analytics using Google's natural language API

CNN US Edition
RSS:
http://rss.cnn.com/rss/money_news_international.rss
RAW Endpoint:
https://api.raw-labs.com/examples/1/public/RSS-analysis/rss-analysis?url=http://rss.cnn.com/rss/edition_world.rss

Huffington Post:
RSS:
https://www.huffpost.com/section/front-page/feed?x=1
RAW Endpoint:
https://api.raw-labs.com/examples/1/public/RSS-analysis/rss-analysis?url=https%3A%2F%2Fwww.huffpost.com%2Fsection%2Ffront-page%2Ffeed%3Fx%3D1

Techcrunch:
RSS:
https://techcrunch.com/feed/?guccounter=1
RAW Endpoint:
https://api.raw-labs.com/examples/1/public/RSS-analysis/rss-analysis?url=https%3A%2F%2Ftechcrunch.com%2Ffeed%2F%3Fguccounter%3D1

SPARQL queries onto wikidata.org (wikipedia's knowledge graph database)

Heads of Government with Twitter accounts
https://api.raw-labs.com/examples/1/public/wikipedia/heads-of-government

CO2 emissions, US, vs. Rest of World, by year (data from FRED and OWID)

US vs Global CO2 Emissions, by Year
https://api.raw-labs.com/examples/1/public/emissions/us-vs-global-co2

Free open data from https://theunitedstates.io - simple queries used for our video tutorials

US Legislators (current)

optional parameters include type, state, party

https://api.raw-labs.com/examples/1/public/us-government/legislators - returns all
https://api.raw-labs.com/examples/1/public/us-government/legislators?state=CA&type=rep&party=Democrat - Californian, Democrats in House of Representatives

Summaries (current & historical)

summaries of male to female legislators across all current and historical data. These are good examples of union'ing two data structures, creating a summary function as a re-usable intermediate dataset.

https://api.raw-labs.com/examples/1/public/us-government/summary/by-state?states_list=CA,NV https://api.raw-labs.com/examples/1/public/us-government/summary/by-party-house?party=Democrat