Skip to content

Data products

A data product is a slice of the zemoData dataset that you can buy from: for example “Florida restaurant owners” or “US decision-makers”. Each product has:

  • a segment: the rule that decides which records belong to it (for example people whose role ranks 90 or higher, in Florida, at restaurants);
  • the bundles it sells (see Getting records);
  • a pricing model: per bundle, per record, or a subscription with a records quota;
  • who may use it (open to every customer, or by approval).

Your organization is granted the products it may use. Every record you receive is checked against the product’s segment, so you never receive records outside what you bought. A record outside the product is listed in rejected with the reason outside_product, and not charged.

Send the product’s slug in the body ("product": "fl-restaurant-owners") or in the Zemo-Product header. A key can be narrowed to some products when it is created; GET /v1/whoami lists the products a key may use (empty means every product granted to the organization).

Problem Code
The product is not granted to you, or the key is narrowed away from it 403 product.not_granted
No product has this slug 404 product.not_found
The product was retired 410 product.retired

GET /v1/products (scope search, free) lists the products your key can use: slug, name, entity, the bundles with their credit price for your organization, the pricing model, this period’s quota for subscription products, and record_count. GET /v1/products/{slug} adds the product’s fields (contact fields are listed but stay masked until bought) and a few masked sample records.

python/products.py
"""The data products your key can use, with prices and record counts: GET /v1/products (free).
`record_count` comes from the search engine; it is null until search is live in production.
"""
import json
import os
import urllib.request
BASE = os.environ.get("ZEMO_API_BASE", "https://api.zemodata.com")
request = urllib.request.Request(
f"{BASE}/v1/products", headers={"Authorization": f"Bearer {os.environ['ZEMO_API_KEY']}"}
)
with urllib.request.urlopen(request, timeout=30) as response:
for product in json.load(response)["data"]:
prices = ", ".join(f"{item['bundle']} {item['credits']}" for item in product["bundles"])
print(f"{product['slug']}: {product['record_count']} records ({prices})")