Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
GrepWords API Ruby Gem
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.ruby-gemset
.ruby-version
.yardopts
Gemfile
Gemfile.lock
README.md
Rakefile
grepwords_client.gemspec

README.md

Grepwords API Gem

Wrapper gem for Grepwords API requests.

http://www.grepwords.com/api.php

Description

Install

gem install grepwords_client

Configuration

To setup the gem, you need to set your Grepwords API key before making requests.

require 'grepwords_client'

GrepwordsClient.configure do |config|
  config.apikey = 'my-api-key'
end

Keyword Lookup

To get keyword data from Grepwords, you can pass in an array of keywords.

keywords = %w[apple ipad iphone]
data     = GrepwordsClient::Endpoints.lookup(keywords)

# Returns an array of hashes with CPC, CPM, and monthly data for given

Todo

  1. Create response class to avoid keeping track of what keywords were sent to Grepwords vs what actually came back with data.
  2. Add additional endpoints (credit balance and related queries)
Something went wrong with that request. Please try again.