Skip to main content
Retrieve posts or articles published by your business, with support for pagination.
Use this endpoint to integrate business-related posts into your app, dashboard, or website.

Onboarding Guide

This API allows you to fetch business posts with optional pagination controls.

Requirements

  • A valid API key passed in the x-api-key header
  • HTTPS requests only
  • Keep your API key safe and never expose it publicly

Endpoint

GET /integration/business-api/posts Base URL: https://api.willro.com

Authentication

x-api-key
string
required
Your Willro API key. You can find it in your Willro dashboard under Developer
API Keys: willro_live_sk_95ad4a1e-48ac-4872-ae02-0d40072b60bf_6b7ec4b3af7911a65ee1c3a5ce3fe84b8c2e34136ca71030

Query Parameters

NameTypeRequiredDescription
pagenumberNoPage number for pagination (default: 1)
limitnumberNoNumber of posts per page (default: 10)

Request Example

const page = 1;
const limit = 10;

const response = await fetch(
  `https://api.willro.com/integration/business-api/posts?page=${page}&limit=${limit}`,
  {
    method: 'GET',
    headers: {
      'x-api-key':
        'willro_live_sk_95ad4a1e-48ac-4872-ae02-0d40072b60bf_6b7ec4b3af7911a65ee1c3a5ce3fe84b8c2e34136ca71030',
      'Content-Type': 'application/json',
    },
  }
);

const data = await response.json();
console.log(data);

Response Example

{
  "links": {
    "self": "/api/integration/business-api/posts?expand=&limit=10&page=1&q=&sortBy=createdAt&sortType=DESC"
  },
  "pagination": {
    "page": 1,
    "limit": 10,
    "totalItems": 0,
    "totalPages": 0
  },
  "data": []
}