Dokümantasyon
Bağlantı
İçerik API'si
Şablonu kendi sunucuna kur; haberler MINTWIRE’dan otomatik aksın.
curl 'https://mintwire.app/api/v1/content/articles?key=mwk_YOUR_SITE_KEY&page=1&limit=12&category=technology&since=2026-10-01T00:00:00Z'
GET /api/v1/content/articles/:id?key=SITE_KEY GET /api/v1/content/categories?key=SITE_KEY GET /api/v1/content/topics?key=SITE_KEY GET /api/v1/content/digest?key=SITE_KEY GET /api/v1/content/search?key=SITE_KEY&q=RSS If-None-Match: "ETAG_FROM_RESPONSE"
Kullanım olaylarını topla
fetch('https://mintwire.app/api/v1/collect', {
method: 'POST', headers: {'Content-Type':'application/json'},
body: JSON.stringify({key: 'SITE_KEY', articleId: article.id,
token: article.collectToken, type: 'view'})
})Alan adı bağlantısı
Alan adı sahipliğini TXT, .well-known/mintwire.txt veya meta etiketiyle doğrula.
TXT @ → mintwire-verify=YOUR_VERIFICATION_TOKEN
WordPress eklentisi
WordPress yayını
İndirŞablonu kendi sunucuna kur; haberler MINTWIRE’dan otomatik aksın.
GET https://mintwire.app/api/v1/content/articles?key=mwk_YOUR_SITE_KEY&since=LAST_SYNC_ISO X-Site-Key: SITE_KEY Cron: every 5 minutes Deduplication: _mintwire_article_id
Gömülü widget
Bu kodu sitende haberlerin görünmesini istediğin alana ekle.
<script src="https://mintwire.app/embed.js" data-key="SITE_KEY" data-layout="grid" data-theme="light"></script>
İmzalı webhook
article.published JSON gönderilir. x-mintwire-signature başlığını bağlantı anahtarınla HMAC-SHA256 kullanarak doğrula.
import { createHmac, timingSafeEqual } from 'node:crypto';
const expected = createHmac('sha256', SITE_KEY).update(rawBody).digest('hex');
const received = req.headers['x-mintwire-signature'];
const valid = received?.length === expected.length &&
timingSafeEqual(Buffer.from(expected), Buffer.from(received));Desteklenen modeller
Görev yönlendirme · Yedek sağlayıcı sırası