Quickstart
Quickstart
This page will offer the quickest way to get up and running with the Metdley API.
Prerequisites
Before installing the library, please note:
- You must have an API key to interact with the Metdley API.
- To obtain an API key, you need an account with Metdley.
- If you don’t already have an account, please contact our sales team to get started.
Python Library
Once you have an API key the python library is the easiest way to interface with the API.
Step 1: Install the library
pip install metdley
Step 2: Import and Authenticate
import os
import metdley as met
# Fetch the API key from an environment variable
met.auth(os.getenv("METDLEY_API_KEY"))
Step 3: Make a request
import os
import metdley as met
met.auth(os.getenv("METDLEY_API_KEY"))
met.status.is_operational() # boolean, helpful for testing a request
met.search.track("The Beatles", "Yesterday") # single track search
met.process.csv("many_upcs.csv") # process and automatically search an entire file