Webhooks
Overview
Webhooks are sending data from Niched AI to 3rd party systems.
Whenever our scrapers detect new articles from sources that you're tracking, and you have a webhook configured for that project, we'll post data to the specified URL.
Create Webhook
From the Webhooks page inside your Account you can create new webhooks.
Each webhook is connected to only one project and posts data to one defined URL.
Receiving Data
Niched AI will make a POST request to the specified URL.
It uses application/json
format with the following structure:
{
"title": "This is a Webhook test!",
"html": "Seems everything is OK here",
"source": "Niched AI",
"url": "https://niched.ai",
"discoveredAt": "December 01, 2022"
}
{
"title": "This is a Webhook test!",
"html": "Seems everything is OK here",
"source": "Niched AI",
"url": "https://niched.ai",
"discoveredAt": "December 01, 2022"
}
We'll fire the webhook as soon as we scrape a new article.
Retries
Niched AI expects status 200 as a response from 3rd party system.
We'll retry up to 3 times if we receive any other status.
Testing Webhooks
The easiest way to test webhook with zero setup is some online tool like https://webhook.site
They'll give you the URL you need to use, and that's all you need.
After creating the webhook in the last , you'll see the Test button. Niched AI will immediately post test data to your URL when you click it.