List Paywalls
This endpoint retrieves all paywall information for fiat currency
Method
GET https://api.ninjapay.me/webextension/api/v1/fiat/paywall
Response
{
"status": true, // Boolean indicating the success status of the response.
"data": [ // Array containing paywall objects.
{
"id": "PAYWALLpvIWfx3NNCPw4JW", // Unique identifier for the paywall.
"price": "99", // Price of the paywall content, represented as a string.
"title": "27 July Trailer", // Title of the paywall content.
"content": "https://www.youtube.com/watch?v=gqiHUSZJJpg", // URL of the content being paywalled.
"content_type": "URL", // Type of the content, here it's a URL.
"hide_url": false, // Boolean indicating whether the URL should be hidden.
"created_at": "2024-08-02T05:18:15.000Z", // Timestamp of when the paywall was created.
"currency": "INR", // Currency for the price, here it's Indian Rupees.
"extras": {}, // Additional data.
"link": "https://www.ninjapay.me/paywall/PAYWALLpvIWfx3NNCPw4JW" // Link to the paywall.
}
}
Code Example
const options = {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'API_KEY' //Invoice key required
}
};
fetch('https://api.ninjapay.me/webextension/api/v1/fiat/paywall', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Last updated