Bulk export contract

For buyers who index everything themselves. This page is the promise behind GET /enterprise-license?format=ndjson: the field set, the pagination rules, the version label and the change policy. An automated test keeps the live feed and this page in step: a field cannot be added, removed or renamed without a version change and an update here.

Schema version: self-serve-2026-10, sent on every response as X-Opedd-Schema-Version and inside the trailing _meta line.

Endpoint

GET https://api.opedd.com/enterprise-license?format=ndjson&limit=1000[&cursor=<opaque>]
X-Enterprise-Key: <ent_…>
Accept: application/x-ndjson

One JSON object per line, one article per line, then exactly one trailing line whose only key is _meta. Articles are loaded before the first byte is sent, so a stream is either complete or an HTTP error; it never fails mid-stream. Per-request cap and default: 1,000 rows (format=json: default 50, cap 200). Send the access key in a header (Authorization: Bearer ent_… or X-Enterprise-Key), never in the URL: a key in a link leaks through logs, browser history and email link scanners. The old access_key URL parameter still works for existing integrations.

Row fields

Field Type Meaning
id uuid Article id. Stable for the life of the article.
title string
description string or null Publisher's description.
url string The article's canonical web address.
published_at ISO-8601 or null
category string or null
publisher_id uuid
publisher_name string or null
publisher_website string or null
pricing object { human: number or null, ai_per_article: number or null } in USD, publisher-set. human belongs to a retired licence and is kept so existing readers don't break.
content_body string or null The full stored text, as cleaned HTML (an allowlist of tags). Present only on Full download + training orders (and Full catalogue orders placed before 12 November 2026). Otherwise null: fetch the text per article with GET /content-delivery?article_id=….
content_access "included", "retrieval_per_article" or "search_only" included: full text in content_body (Full download + training). retrieval_per_article: fetch per article, within a subscription's daily limits (subscriptions). search_only: no text; ask questions with POST /search (per-request orders). Replaced metered_per_call in self-serve-2026-10.
author string or null
language string or null BCP-47-ish, en default.
word_count integer or null
content_hash string or null SHA-256 of the stored body; the hash a licence references.
image_urls string[] or null
canonical_url string or null
tags string[] or null
excerpt string or null Sanitised summary, at most 300 characters.
license_id uuid The licence this row was served under.

Rows with search_only carry one extra field, retrieval_price_cents (integer or null), just before license_id: the publisher's price per article used in an answer, in US cents; null means not currently billable.

Absent values are always explicit null, never a missing key.

Trailing _meta line

{"_meta":{"next_cursor":"<opaque>|null","count":1000,"truncated":true,"withheld_stopped":0,"withheld_outside_window":0,"audit_event_id":"<uuid>|null","schema_version":"self-serve-2026-10","request_id":"req_…"}}

truncated is true exactly when next_cursor is not null. Follow next_cursor until it is null; treat cursors as opaque and don't build your own.

Delta polling

Poll with the same request and keep your own high-water mark on published_at. Without since the feed is newest first; with since it is oldest first and next_cursor continues forward without repeats. To fetch only new articles by date, see staying up to date.

Revocation

A publisher may withdraw an article for a rights problem at any time. From that moment the row disappears from the feed and GET /content-delivery answers 410 CONTENT_REVOKED for it, with a deletion_deadline and refund_due: true. An article the publisher only stopped selling stays in your feed until your licence ends.

What you must then do (clause 6.2 of the Standard Licence Terms) is in the AI buyer guide. Build the deletion path before you build the ingest path.

Change policy

Audit

Every streamed article is recorded in your audit log (this record is not billed), and every call writes one audit entry. If that audit entry can't be written, the response is 503 and nothing streams; retry.