Skip to main content

Package for making calls to API

Project description


A simple python package for making API calls to API.

It builds upon the requests package. The goal is to achiev an easy syntax for the API calls like: mt.domain('').rankings.get()

Note: I am not professional programmer. Install at your own risk. Useful tips are welcome :-).

Install via pip

pip install metrics-tools

Basic usage

from metrics_tools import MetricsTools

api_key = 'your api key'
mt = MetricsTools(api_key, verbose=True)

domain = mt.domain('')

visibility =
rankings = domain.rankings.get()

keyword_details = mt.keyword('api').details.get()


The response is parsed into a simple object with fields as object attributes. Additionaly it contains the requests response as '._response'.

example_domain.values # if values are present
example_domain.json # parsed json response
example_domain.result # 'success' or 'error'

More Parameters

The API supports some additional parameters, respectifly filters, to narrow down the API answer. These filters can be used through the avalible functions.

#Visibility for specific date'2018-05-07').get()

#Min and max visibility value

#Ranking position for domain and given keyword
domain.position.for_keyword('jens fauldrath').get()

API calls

The minimum interval for calls is 0.2 sec.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
metrics_tools-0.0.2-py3-none-any.whl (10.3 kB) Copy SHA256 hash SHA256 Wheel py3
metrics_tools-0.0.2.tar.gz (6.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page