Node.js Integration Guide

Add Parse media analysis to your Node.js application in minutes.

Installation

npm install node-fetch

Basic Usage

const API_KEY = process.env.PARSE_API_KEY;

async function analyzeArticle(url) {
  const response = await fetch('https://www.parsethe.media/api/v1/analyze', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${API_KEY}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({ url }),
  });

  const data = await response.json();
  return data.data;
}

// Usage
const result = await analyzeArticle('https://example.com/article');
console.log(`Credibility: ${result.credibility} (${result.truthScore}/100)`);

See Authentication and the full API reference for more options.