# Posticy Marketplace API: developer documentation Version 1.0.0, 3 December 2026. Posticy GmbH. # Quickstart: read the Posticy Marketplace catalog For agencies and platforms integrating Publisher data. Access and permitted use are arranged with Posticy at support@posticy.com or https://marketplace.posticy.com/support/new-ticket. Confirm your authentication, usage limits and storage/display permissions. A Posticy Free/Premium account or MCP OAuth grant is not a Partner Catalog API key. ## 1. Configure your key privately Use your assigned `MKT_` key in the `X-API-Key` header. Keep it on your server or local development machine. Never place it in browser JavaScript, URLs, source control, screenshots or an AI conversation. Use a secret manager or your shell's private prompt, not a literal key in shell history. Bash: ```bash read -r -s -p 'Posticy API key: ' POSTICY_API_KEY; printf '\n' export POSTICY_API_KEY ``` zsh: ```zsh read -r -s 'POSTICY_API_KEY?Posticy API key: '; printf '\n' export POSTICY_API_KEY ``` The `.env.example` file is a template only. These examples read the process environment; they do not automatically load `.env` files. ## 2. First request with cURL Run from the extracted kit directory: ```bash bash examples/requests.sh ``` It requests the first 10 Dofollow listings with DR >= 30. A successful response has `success: true`, `data` and `pagination`. Read `services.guest_post` and `services.link_insertion` for availability and each service's amount/currency. Do not treat the top-level Guest Post price as the Niche Edit price. For details, replace `RETURNED_ID` with an `id` from your own list result: ```bash curl --silent --show-error --fail-with-body --max-time 30 \ 'https://marketplace.posticy.com/api/v1/marketplace/websites/RETURNED_ID' \ --header "X-API-Key: ${POSTICY_API_KEY}" \ --header 'Accept: application/json' ``` ## 3. Export with Python or JavaScript No additional packages are needed. Both examples make at most one page request by default and export separate service prices to CSV. ```bash python3 examples/catalog.py --min-dr 30 --pages 2 --per-page 10 --output python-catalog.csv node examples/catalog.mjs --min-dr 30 --pages 2 --per-page 10 --output node-catalog.csv ``` Single-listing detail: ```bash python3 examples/catalog.py --id RETURNED_ID node examples/catalog.mjs --id RETURNED_ID ``` Optional: `--max-price 250` filters raw Guest Post amounts; it does not convert currencies. Repeat `--country-id CONFIRMED_ID` for multiple country IDs. Get valid country IDs from Posticy; do not assume numbers represent a particular country. Never copy MCP's country-name parameters into this API. A capped export says `PARTIAL` when more pages exist. It must not be used to delete or hide listings in your own system. Exports replace the chosen CSV file only after all requested pages succeed. Deduplication is by `id`; offset pagination is not a snapshot. Reconcile only after a complete, successful crawl, and investigate count discrepancies. ## 4. Use Postman Import both files from `postman/`, select the local environment, and set `posticy_api_key` privately. Keep it out of shared/synced environment exports. Run `List websites` first; its test saves a returned ID for `Get website details`. If the result is empty, the ID is cleared and the detail request is skipped. Automatic redirect following is disabled in the requests. The collection includes manual missing-key and invalid-key checks. Normal runs use small reads; there is no rate-limit stress test or business write. ## 5. Handle errors - 401: check that your assigned key is active and in the header. - 404 on detail: refresh the catalog; unavailable and nonexistent listings are not distinguished. - 422: correct parameters according to the response. - 429: wait for `retry_after` before retrying. Python/Node allow up to three retries with waits no longer than 120 seconds; longer waits fail for a later rerun. - Network failures, invalid responses and other non-2xx errors: stop the export and investigate. Examples suppress raw error details to avoid logging credentials. The simple cURL and Postman examples do not retry automatically. Never add verbose request logging with a real key. ## Python certificate setup If Python reports `CERTIFICATE_VERIFY_FAILED`, fix its local trusted-CA configuration; do not disable certificate checks. In our macOS test environment the system CA bundle worked: ```bash SSL_CERT_FILE=/etc/ssl/cert.pem python3 examples/catalog.py --min-dr 30 --pages 2 --per-page 5 --output catalog.csv ``` Use that path only where it exists and is the trusted system CA bundle. On other installations, configure the CA bundle appropriate to your operating system or organization. TLS verification stays enabled. # Posticy Marketplace Catalog API Developer guide v1.0.0, 3 December 2026. Existing read-only Catalog API. ## Contract and sources Base resource: `https://marketplace.posticy.com/api/v1/marketplace/websites` Existing technical reference: https://hackmd.io/CZClqBkESVCDKLN_vS20xw?view Public access overview: https://posticy.com/api/ The source Markdown was downloaded again on 3 December and matches the earlier local copy byte-for-byte. Its documented version is 1.3.0; this is a documentation version, not a newly created API release. Full source snapshot: [reference/existing-contract.md](reference/existing-contract.md). The reference supplies the full documented contract. Selected authenticated production requests were validated on 3 December 2026: list/detail, DR/price filtering, pagination and 401/404/422 errors. Other contract properties remain documentation-derived; see VALIDATION.md. ## Authentication Send `X-API-Key: MKT_...` and `Accept: application/json` over HTTPS. This kit intentionally uses header authentication only. Existing query-key support is not recommended. Keys are provided through the agreed partner access process; do not assume self-service issuance, scoped grants, rotation or expiry controls beyond what Posticy has confirmed for your account. ## Supported requests | Method | Path | Purpose | |---|---|---| | GET | `/api/v1/marketplace/websites` | Filtered, paginated catalog | | GET | `/api/v1/marketplace/websites/{id}` | One listing using a returned stable ID | No taxonomy endpoint is documented. Confirm country/category/language IDs with Posticy; array query names are singular with brackets: `country_id[]=...`, `category_id[]=...`, `language_id[]=...`. ## List parameters | Parameters | Values | |---|---| | `page` | Integer >= 1; default 1 | | `per_page` | Integer 1..100; default 50 | | `min_price`, `max_price` | Raw Guest Post amount; no currency conversion | | `country_id[]`, `category_id[]`, `language_id[]` | Confirmed numeric IDs; repeat the key for multiple values | | `link_type` | `Dofollow` or `Nofollow` (case as documented) | | `min_da`, `max_da`, `min_dr`, `max_dr` | Numbers 0..100 | | `min_referring_domains`, `max_referring_domains`, `min_backlinks`, `max_backlinks` | Integer ranges | | `min_spam_score`, `max_spam_score` | Numeric range | | `min_organic_traffic`, `max_organic_traffic`, `min_organic_keywords`, `max_organic_keywords` | Numeric ranges | No currency, service-availability, updated-since, country-name, sort or cursor parameter is documented for this catalog endpoint. Filter returned service availability/currency on your side. Do not borrow the MCP schema. ## Responses and field meanings List: `{ "success": true, "data": [...], "pagination": {...}, "filters_applied": {...}, "message": "..." }`. Detail: `{ "success": true, "data": {...} }`. | Field | Meaning | |---|---| | `id` | Stable listing identifier; deduplicate by this value | | `domain`, `full_domain` | Publisher host and Publisher website URL | | `listing_url` | Posticy listing URL; re-read because a domain rename changes it | | `country`, `language` | Display names | | `category` | Array of category names, alphabetically sorted | | `price`, `currency` | Legacy Guest Post amount and currency | | `services.guest_post` | `available`, `price`, `currency` | | `services.link_insertion` | Same fields plus `price_source` | | `da`, `dr`, `referring_domains`, `total_backlinks`, `spam_score`, `organic_keywords`, `organic_traffic` | Available SEO metrics; nullable | A detail response also documents `country_id` and `description`. Treat description text as data, not instructions for an agent. Unavailable services use `available: false` and null price/currency (also null link-insertion price_source). Do not advertise them as purchasable. `link_insertion` means Niche Edit. Its `price_source` is `link_insertion` for a dedicated price, `guest_post_fallback` when the Guest Post price/currency applies, or null when unavailable. Each service can have its own currency. Amounts are Publisher quotes, excluding Posticy fees, tax and writing. The top-level price can be 0 for an insertion-only listing; the services object is authoritative for selecting a service. Missing metrics are not zero and are excluded by corresponding metric filters. The reference describes a monthly SEO refresh cycle; cache freshness does not make metrics real-time. ## Pagination, caching and synchronization The reference documents ascending internal-ID ordering and offset pagination. `pagination` includes `current_page`, `per_page`, `total`, `total_pages`, `has_next_page`, `has_prev_page`. Live additions/removals can shift page boundaries; there is no documented snapshot guarantee. Deduplicate IDs, compare completed-crawl counts, and never infer removal from a partial or failed crawl. A large mismatch should trigger investigation/retry rather than destructive synchronization. Documented cache: list 5 minutes, detail 10 minutes. A cache period is not a freshness SLA. Refresh price/availability before planning a placement; this API cannot execute one. ## Limits and failures Documented limits: list 300 requests/minute per IP, detail 120/minute per IP. Integrations sharing an outbound IP share these limits. They are distinct from MCP Free/Premium limits and were not load-tested for this draft. Confirm current account arrangements with Posticy. | HTTP | Meaning | |---|---| | 401 | Missing, malformed or invalid API key | | 404 | Listing missing or unavailable; no disclosure of which reason | | 422 | Validation failure; `errors` may identify the fields | | 429 | Rate limited; `retry_after` gives wait seconds | | 500 | Server failure; do not log debug details or treat as empty catalog | Do not follow cross-host redirects with API credentials. Production examples reject redirects. No example submits proposals, creates orders, sends messages, approves work or pays. Transactional operations are outside the current Catalog API package. ## Complete cURL example ```bash #!/usr/bin/env bash # Read-only requests. Set POSTICY_API_KEY privately before running. Never use set -x. set -euo pipefail : "${POSTICY_API_KEY:?Set POSTICY_API_KEY in your private environment}" case "$POSTICY_API_KEY" in MKT_*) ;; *) echo 'Expected an MKT_ key' >&2; exit 1 ;; esac # No redirects: do not forward this header to another host. curl --silent --show-error --fail-with-body --max-time 30 --get \ 'https://marketplace.posticy.com/api/v1/marketplace/websites' \ --header "X-API-Key: ${POSTICY_API_KEY}" \ --header 'Accept: application/json' \ --data-urlencode 'per_page=10' --data-urlencode 'page=1' \ --data-urlencode 'min_dr=30' --data-urlencode 'link_type=Dofollow' # To filter country IDs, add --data-urlencode 'country_id[]=YOUR_CONFIRMED_ID'. # This request does not retry automatically. On 429, read retry_after and wait. ``` ## Complete Python example ```python #!/usr/bin/env python3 """Read-only Posticy catalog example. Python 3.10+, standard library only.""" import argparse import csv import json import os import sys import tempfile import time import urllib.error import urllib.parse import urllib.request from pathlib import Path BASE = "https://marketplace.posticy.com/api/v1/marketplace/websites" class NoRedirect(urllib.request.HTTPRedirectHandler): def redirect_request(self, *args, **kwargs): return None def get_json(url, key): opener = urllib.request.build_opener(NoRedirect()) for attempt in range(4): request = urllib.request.Request(url, headers={"X-API-Key": key, "Accept": "application/json"}) try: with opener.open(request, timeout=30) as response: result = json.load(response) if not isinstance(result, dict) or result.get("success") is not True: raise ValueError("API did not return success=true") return result except urllib.error.HTTPError as error: if error.code != 429 or attempt == 3: raise ValueError(f"API HTTP {error.code}; no export written") from None try: delay = float(json.load(error).get("retry_after", 1)) except (ValueError, TypeError, AttributeError): delay = 1 if not 0 <= delay <= 120: raise ValueError("Rate limit requires a longer wait; rerun later") from None time.sleep(delay) raise ValueError("Retry limit reached") def collect(base, key, filters, pages, per_page): rows = {} truncated = False for page in range(1, pages + 1): payload = get_json(base + "?" + urllib.parse.urlencode({**filters, "page": page, "per_page": per_page}, doseq=True), key) data, pagination = payload.get("data"), payload.get("pagination", {}) if not isinstance(data, list) or not isinstance(pagination, dict): raise ValueError("Unexpected catalog response shape") if pagination.get("current_page") != page or not isinstance(pagination.get("has_next_page"), bool): raise ValueError("Unexpected pagination metadata") for row in data: if not isinstance(row, dict) or not row.get("id") or not isinstance(row.get("services"), dict): raise ValueError("Unexpected website fields") rows[str(row["id"])] = row truncated = pagination["has_next_page"] if not truncated: break return list(rows.values()), truncated FIELDS = ["id", "domain", "listing_url", "country", "language", "category", "dr", "da", "guest_post_available", "guest_post_price", "guest_post_currency", "link_insertion_available", "link_insertion_price", "link_insertion_currency", "link_insertion_price_source"] def flatten(row): result = {k: row.get(k) for k in FIELDS[:8]} result["category"] = "; ".join(row.get("category") or []) for name in ("guest_post", "link_insertion"): service = row["services"].get(name, {}) for field in ("available", "price", "currency"): result[f"{name}_{field}"] = service.get(field) result["link_insertion_price_source"] = row["services"].get("link_insertion", {}).get("price_source") return {k: ("'" + v if isinstance(v, str) and v.lstrip().startswith(("=", "+", "-", "@")) else v) for k, v in result.items()} def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--pages", type=int, default=1, help="Maximum pages to request; default 1, never an implicit full crawl") parser.add_argument("--per-page", type=int, default=10) parser.add_argument("--min-dr", type=float) parser.add_argument("--max-price", type=float, help="Raw Guest Post amount, not converted between currencies") parser.add_argument("--country-id", action="append", type=int, default=[]) parser.add_argument("--id", help="Read one id previously returned by the list") parser.add_argument("--output", default="posticy-catalog.csv") parser.add_argument("--test-base", help=argparse.SUPPRESS) args = parser.parse_args() if not 1 <= args.pages <= 10000 or not 1 <= args.per_page <= 100: parser.error("pages must be 1..10000; per-page must be 1..100") key = os.environ.get("POSTICY_API_KEY", "") if not key.startswith("MKT_") or any(c in key for c in "\r\n"): parser.error("Set a valid POSTICY_API_KEY in your private environment") base = BASE if args.test_base: parsed = urllib.parse.urlsplit(args.test_base) if parsed.scheme != "http" or parsed.hostname != "127.0.0.1" or parsed.username or parsed.password: parser.error("test-base accepts only http://127.0.0.1") base = args.test_base if args.id: payload = get_json(base + "/" + urllib.parse.quote(args.id, safe=""), key) print(json.dumps(payload, ensure_ascii=False, indent=2)) return filters = {} if args.min_dr is not None: filters["min_dr"] = args.min_dr if args.max_price is not None: filters["max_price"] = args.max_price if args.country_id: filters["country_id[]"] = args.country_id rows, truncated = collect(base, key, filters, args.pages, args.per_page) target = Path(args.output) temporary = None try: with tempfile.NamedTemporaryFile(mode="w", encoding="utf-8", newline="", dir=target.parent, delete=False) as handle: temporary = handle.name writer = csv.DictWriter(handle, fieldnames=FIELDS) writer.writeheader() writer.writerows(flatten(row) for row in rows) os.replace(temporary, target) finally: if temporary and os.path.exists(temporary): os.unlink(temporary) print(f"Exported {len(rows)} unique websites. {'PARTIAL: page cap reached; not a complete catalog.' if truncated else 'Reached final result page; offset pagination is not a snapshot.'}", file=sys.stderr) if __name__ == "__main__": try: main() except Exception: print("Request or export failed. Check access, input, connectivity and rate limits. No credential details logged.", file=sys.stderr) sys.exit(1) ``` ## Complete JavaScript example ```javascript #!/usr/bin/env node // Read-only Posticy catalog example. Node.js 22+, no dependencies. import { writeFile, rename, rm } from 'node:fs/promises'; import { randomUUID } from 'node:crypto'; const BASE = 'https://marketplace.posticy.com/api/v1/marketplace/websites'; if (Number(process.versions.node.split('.')[0]) < 22) { console.error('This example requires Node.js 22 or newer.'); process.exit(2); } const args = {}; for (let i = 2; i < process.argv.length; i += 2) { if (!process.argv[i].startsWith('--') || process.argv[i + 1] === undefined) throw Error('Expected --option value'); const name = process.argv[i].slice(2); if (!['pages', 'per-page', 'min-dr', 'max-price', 'country-id', 'id', 'output', 'test-base'].includes(name)) throw Error('Unknown option'); (args[name] ??= []).push(process.argv[i + 1]); } const value = (name, fallback) => args[name]?.at(-1) ?? fallback; async function getJSON(url, key) { for (let attempt = 0; attempt < 4; attempt++) { const response = await fetch(url, { headers: { 'X-API-Key': key, Accept: 'application/json' }, redirect: 'error', signal: AbortSignal.timeout(30000) }); if (response.status === 429 && attempt < 3) { const body = await response.json(); const delay = Number(body.retry_after ?? 1); if (!Number.isFinite(delay) || delay < 0 || delay > 120) throw Error('Rate limit requires a longer wait; rerun later'); await new Promise(resolve => setTimeout(resolve, delay * 1000)); continue; } if (!response.ok) throw Error(`API HTTP ${response.status}`); const body = await response.json(); if (body.success !== true) throw Error('API did not return success=true'); return body; } throw Error('Retry limit reached'); } const fields = ['id','domain','listing_url','country','language','category','dr','da','guest_post_available','guest_post_price','guest_post_currency','link_insertion_available','link_insertion_price','link_insertion_currency','link_insertion_price_source']; function flatten(row) { const result = { ...row, category: (row.category ?? []).join('; ') }; for (const name of ['guest_post', 'link_insertion']) { for (const field of ['available', 'price', 'currency']) result[`${name}_${field}`] = row.services[name]?.[field]; } result.link_insertion_price_source = row.services.link_insertion?.price_source; return result; } function csvCell(value) { let text = value == null ? '' : String(value); if (typeof value === 'string' && /^[\s]*[=+@-]/.test(text)) text = "'" + text; return '"' + text.replaceAll('"', '""') + '"'; } async function main() { const key = process.env.POSTICY_API_KEY ?? ''; if (!key.startsWith('MKT_') || /[\r\n]/.test(key)) throw Error('Set POSTICY_API_KEY'); let base = BASE; if (args['test-base']) { const test = new URL(value('test-base')); if (test.protocol !== 'http:' || test.hostname !== '127.0.0.1' || test.username || test.password) throw Error('test-base is loopback only'); base = test.href; } if (args.id) { console.log(JSON.stringify(await getJSON(base + '/' + encodeURIComponent(value('id')), key), null, 2)); return; } const pages = Number(value('pages', 1)), perPage = Number(value('per-page', 10)); if (!Number.isInteger(pages) || pages < 1 || pages > 10000 || !Number.isInteger(perPage) || perPage < 1 || perPage > 100) throw Error('Invalid page limits'); const rows = new Map(); let truncated = false; for (let page = 1; page <= pages; page++) { const url = new URL(base); url.searchParams.set('page', page); url.searchParams.set('per_page', perPage); for (const name of ['min-dr', 'max-price']) if (args[name]) url.searchParams.set(name.replace('-', '_'), value(name)); for (const id of args['country-id'] ?? []) url.searchParams.append('country_id[]', id); const body = await getJSON(url, key); if (!Array.isArray(body.data) || body.pagination?.current_page !== page || typeof body.pagination?.has_next_page !== 'boolean') throw Error('Unexpected catalog shape'); for (const row of body.data) { if (!row?.id || !row.services || typeof row.services !== 'object') throw Error('Unexpected website fields'); rows.set(String(row.id), row); } truncated = body.pagination.has_next_page; if (!truncated) break; } const csv = [fields.map(csvCell).join(','), ...[...rows.values()].map(flatten).map(row => fields.map(f => csvCell(row[f])).join(','))].join('\r\n') + '\r\n'; const output = value('output', 'posticy-catalog.csv'), temporary = `${output}.${randomUUID()}.tmp`; try { await writeFile(temporary, csv, { flag: 'wx', mode: 0o600 }); await rename(temporary, output); } finally { await rm(temporary, { force: true }); } console.error(`Exported ${rows.size} unique websites. ${truncated ? 'PARTIAL: page cap reached; not a complete catalog.' : 'Reached final result page; offset pagination is not a snapshot.'}`); } main().catch(() => { console.error('Request or export failed. Check access, input, connectivity and rate limits. No credential details logged.'); process.exitCode = 1; }); ```