0.0
No release in over a year
numlookupapi.com provides a worldwide phone number lookup & verification API. Automate your phone number verification process by checking carrier information with our free and worldwide phone number lookup API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

numlookupapi-ruby

numlookupapi-ruby is the official Ruby Wrapper around the numlookupapi API.

Installation

Add this line to your application's Gemfile:

gem 'numlookupapi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install numlookupapi

Configuration

You will need your apikey to use numlookupapi, you can get one https://app.numlookupapi.com/register.

Create an instance and pass your api key like here:

numlookup = numlookupapi::Endpoints.new(:apikey => 'APIKEY')

Usage & Endpoints

Use the instance to call the endpoints

Status

Returns your current quota

numlookup.status()

Validate

Checks the provided phone_number and returns all available information.

numlookup.validate(phone_number, country_code = '')
Parameter Data type Mandatory Description
phone_number string, Path Parameter yes The phone number you want to query
country_code string no An ISO Alpha 2 Country Code

You can find further information on https://numlookupapi.com/docs/

Bug reports and pull requests are welcome on GitHub at https://github.com/everapihq/numlookupapi-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the numlookupapi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.