Bring Media List into the tools you already use.
Search journalists, podcast hosts and creators, look up outlets, and read your saved lists and campaign results from your own code.
Works with any language
And the tools your team uses
Any tool that can send an HTTPS request with a header can call the API, through its HTTP or code step.
Overview
The API gives paid Media List accounts the same contacts, outlets, lists and campaigns they see in the dashboard. Every request follows the same rules as the app, so locked emails stay locked and anyone who has opted out never appears.
Getting access
API access comes with every active paid plan. Sign in, open API keys under Settings in your dashboard and create a key. The account owner and active team members can create and revoke keys, up to 10 active keys per account. On a free trial, API keys unlock as soon as your first payment goes through.
Access pauses automatically if the subscription stops being active, and resumes when it is active again. Removing a team member also disables the keys they created.
Quick start
Keep your key in an environment variable on your server and send it in the Authorization header. Call the API from server-side code only, never from a browser.
# Keep the key out of source control, browsers and URLs. export MEDIALIST_API_KEY="ml_live_REPLACE_ME" curl "https://medialist.com/api/v1/contacts?q=technology&location=Texas&per_page=25" \ -H "Authorization: Bearer $MEDIALIST_API_KEY"
// Node.js 18 or later, server side only. const res = await fetch( "https://medialist.com/api/v1/contacts?q=technology&location=Texas&per_page=25", { headers: { Authorization: `Bearer ${process.env.MEDIALIST_API_KEY}` }, signal: AbortSignal.timeout(10000) } ); if (res.status === 429 || res.status === 503) { // Wait for the Retry-After header (seconds), then try again. } if (!res.ok) throw new Error((await res.json()).error.code); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://medialist.com/api/v1/contacts", params={"q": "technology", "location": "Texas", "per_page": 25}, headers={"Authorization": f"Bearer {os.environ['MEDIALIST_API_KEY']}"}, timeout=10, ) if res.status_code in (429, 503): # Wait for the Retry-After header (seconds), then try again. ... res.raise_for_status() contacts = res.json()["data"]
400 key_in_url. If a key is ever exposed, revoke it and create a new one right away.Endpoints
Base URL https://medialist.com/api/v1. Every endpoint needs a key except /health.
| Endpoint | Returns |
|---|---|
| GET /me | Your plan, export allowance, API limits and today’s usage. |
| GET /facets | Filter values with counts: media types, topics, countries, US states and languages. |
| GET /contacts | Search contacts. See Searching below for the filters. |
| GET /contacts/{id} | One contact. |
| POST /contacts/{id}/unlock | Unlock one contact's email (keys allowed to unlock; uses one export unless already unlocked). |
| GET /outlets | Outlets by name or domain, with their contact counts. Needs q of 2+ characters. |
| GET /lists | Your saved lists with their sizes. |
| GET /lists/{id} | One saved list. |
| GET /lists/{id}/contacts | The contacts on one saved list, paged. |
| GET /campaigns | Your campaigns with counts of recipients, sends, opens and clicks. |
| GET /campaigns/{id} | One campaign summary. Counts only, never email content. |
| GET /health | Service status. No key needed. |
Full parameters and response schemas are in the OpenAPI 3.1 spec.
Searching contacts
/contacts needs at least one filter that narrows the search. Any one of these works.
| Filter | Rule |
|---|---|
| q | Keyword across name, job title and outlet. 2+ characters. |
| title, outlet, location, beat, industry | Text match. 2+ characters each. |
| category, list | A category id or browse list key, as used in dashboard links. |
| topic, state | Broad on their own, so pair them with country, media or type. |
Paging
Use page and per_page (25 by default, 50 at most). Each search returns up to 2,000 results. Past that you get 422 too_deep, so narrow the filters instead of paging further.
Responses
Results come back in data, with paging details in meta. An email you have not unlocked in Media List comes back as null with a masked preview.
{
"data": [{
"id": "1048576",
"name": "Jordan Rivera",
"title": "Technology Reporter",
"outlet": "Example Daily News",
"outlet_domain": "example.com",
"location": "Austin, TX",
"type": "Journalists",
"topics": ["Technology", "Business & finance"],
"email_verified": true,
"email": null,
"email_locked": true,
"email_preview": "j•••••@example.com"
}],
"meta": { "page": 1, "per_page": 25, "total": 312, "has_more": true }
}
Example data. The person and outlet are fictional.
Limits
Limits protect every Media List customer. When you reach one you get 429 with a Retry-After header in seconds.
| Limit | Default |
|---|---|
| Requests per minute | 60, per key and per account |
| Requests per day | 5,000 per account |
| Contacts returned per day | 5,000 per account, reset at midnight UTC |
| Results per search | 2,000 |
| Page size | 25 by default, 50 at most |
Your current limits and today’s usage are always available from /me.
Errors
Errors share one shape, {"error": {"code", "message", "docs_url"}}. Every response carries an X-Request-Id header. Include it when you contact support.
| Status | Code | Meaning |
|---|---|---|
| 400 | key_in_url | A key was sent in the URL. Revoke it and use the header. |
| 401 | unauthenticated | No key was sent. |
| 401 | invalid_key | The key is wrong, revoked, or belongs to a removed team member. |
| 403 | api_access_not_approved | The account has no API access set up yet. Create a key under API keys in the dashboard. |
| 403 | api_access_paused | Access is paused, or the plan is not active. |
| 403 | api_access_revoked | Access for the account was revoked. |
| 403 | api_access_expired | Approved access has passed its end date. |
| 404 | not_found | No such record for this account, or no such endpoint. |
| 422 | filter_required | The search needs a narrowing filter. |
| 422 | too_deep | The page is past the 2,000 result limit. |
| 429 | rate_limited | Too many requests. Wait for Retry-After. |
| 429 | daily_limit | The daily contact limit is used up. |
| 402 | no_exports_left | Unlock: the plan's export allowance is used up for now. |
| 403 | unlock_not_permitted | Unlock: this key is not allowed to unlock, or the request came from a connected app. |
| 404 | contact_not_found | Unlock: no contact with that id is available. |
| 429 | unlock_daily_limit | Unlock: the account's daily unlock limit is used up. |
| 503 | query_timeout | The search took too long. Narrow it and retry. |
Data and privacy
The API never returns an email you have not unlocked in Media List, and contacts who have asked to be removed or not shared are left out everywhere, the API included. Campaign endpoints return counts only, never subjects, message bodies or replies.
You are responsible for using what you receive lawfully. Reselling or bulk copying Media List data is not allowed. Read the full API terms and our privacy policy.
Ready to connect Media List?
API access is open to active paid plans. Create a key in your dashboard to make your first request.