Project

compete

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
API for http://developer.compete.com/
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.4.3
 Project Readme

compete¶ ↑

A wrapper for compete.com API. Can be used to look up information (trust level, rankings, visitors) for a domain.

Requirements¶ ↑

You’ll need an account at developer.compete.com/ Depending on number of requests you make you’ll need to pay. We (Simplificator) have no connection with compete.com!

Usage¶ ↑

Sign up at developer.compete.com/ and get an API key Install the simplificator-compete gem.

Look at compete.rb to see available information (i.e. metrics_ranking, metrics_link, …)


require 'rubygems'
require 'simplificator-compete'
COMPETE_API_KEY = 'your api key'

info = Compete.for_domain('simplificator.com')
if info.data_available?
  puts "Ranking is: #{info.metrics_ranking}"
else 
  puts "no data"
end

Copyright © 2009 Simplificator GmbH. See LICENSE for details.