The Forbes Global 2000 is an annual ranking of the top 2000 public companies in the world by Forbes magazine. The ranking is based on a mix of four metrics: sales, profit, assets and market value. Use this gem to look up Forbes 2000 companies based on a domain name or email address.

Installation

gem install forbes-finder

Usage

record = ForbesFinder::lookup 'exxonmobil.com'
# => <ForbesFinder::Record:0x007faa33887310>

record.name
# => "Exxon Mobil"

record.rank
# => 1

It'll handle email addresses and URLs with all sorts of subdomains, parameters, etc.

record = ForbesFinder::lookup 'https://developer.apple.com/devcenter/ios/checklist/'
# => <ForbesFinder::Record:0x007faa338072a0>

record.domain
# => "apple.com"

record.name
# => "Apple"

record.rank
# => 22

ForbesFinder::lookup('[email protected]').name
# => "Microsoft"

Limitations

  • There may be cases when the company you're lookup up is a subsidiary of a Forbes 2000 company that has a different domain name. Keeping track of all of those is beyong the scope of this gem, but you're welcome to submit it as an alias.

Data source(s):