Authentication
All requests to the LoaderPage API require authentication using the HTTP Authorization header.
API keys
The LoaderPage API uses bearer tokens for authentication. These bearer tokens are the API keys you create on the LoaderPage dashboard.
View the getting started guide for instructions to get your API keys.
Making authenticated requests
To authenticate your request, include your API key in the Authorization header as a bearer token.
Example authenticated request
curl 'https://loaderpage.com/api/v1/notion/{notion_id}/full?depth=1&content_format=markdown' \ -H 'Authorization: Bearer YOUR_API_KEY_HERE'
import requestsurl = 'https://loaderpage.com/api/v1/notion/{notion_id}/full'headers = {'Authorization': 'Bearer YOUR_API_KEY_HERE'}params = { 'depth': 0, 'content_format': 'markdown' }
response = requests.get(url, headers=headers, params=params)print(response.json())
async function fetchNotionData() {const notionId = "YOUR_NOTION_ID";const apiKey = "YOUR_API_KEY_HERE";const url = `https://loaderpage.com/api/v1/notion/${notionId}/full?depth=0&content_format=markdown`;try { const response = await fetch(url, { method: "GET", headers: { Authorization: `Bearer ${apiKey}`, },});
if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); }
const data = await response.json(); console.log(data); // Process your data here return data;} catch (error) { console.error("There was a problem with the fetch operation:", error);}}
fetchNotionData()
Replace YOUR_API_KEY_HERE
with your actual LoaderPage API key.
Remember to always keep your API key secure and never share it publicly.