Integrations
Nimblo API
Fetch your articles from the Nimblo API and show them on any website or CMS you control.
The Nimblo API lets your own code fetch your articles and publish them anywhere: a custom website, a headless CMS or an internal tool. You authenticate with an API key and read articles over REST. You need a developer, or an AI coding tool, to write the code that calls the API.
How articles look on your site
How to connect the API
Open Settings > Publishing, find API under For developers and click Connect. The wizard has 4 steps, mirrored below. The API card shows Pending until we find one of your articles live on your site. After that it shows Connected with a Manage button.
Using an AI coding tool?
Pick Me, with an AI coding tool on the first step. The Connect your website step then gives you one prompt to paste into your tool (Cursor, Claude Code, Bolt, Replit or similar). It covers everything in the developer guide below. You can switch between AI prompt and Developer guide at any time.
Because the API is rate-limited, tell the tool to store the articles in your project (at build time or on a schedule) and serve them from there. Never call the API on every page view. Use a current model. Older or smaller models can produce incomplete code.
How the API works
Your website's code gets your articles from the API and shows them on your blog. Choose who is setting it up: Me, with an AI coding tool or A developer. This decides which instructions you see in step 3.
Don't write code? Use Blog Hosting instead. We publish your articles to a blog on your own domain with one DNS record.
Your API key
Your API key works like a password. Your website uses it to get your articles, so keep it private. We create the key when you reach this step if your website does not have one yet. Add it as an environment variable named AI_AGENT_SEARCH_API_KEY in your project's .env file and in your hosting provider's settings (usually under Environment variables).
Never expose your API key in client-side code or public repositories. If it leaks, click Regenerate API Key in the wizard. The old key stops working immediately.
Your website has one API key. The same key is used by the API, Duda, Lovable, Framer and Next.js Blog integrations. Regenerating it stops the old key in all of them, so update every place that uses it.
Connect your website
With an AI coding tool: copy the prompt from the wizard, paste it into your tool inside your website's project, then publish your website.
As a developer: follow the sections below.
Authenticate your requests
Every request needs these two headers:
X-API-Key: <your-api-key>Content-Type: application/json
Base URL: https://api.ai-agent-search.com/api/integrations
A missing or invalid key returns 401 Unauthorized.
Fetch your articles
GET /v1/articles
Lists your released articles, newest first. The list returns summaries only, without content_html or content_markdown.
curl -X GET "https://api.ai-agent-search.com/api/integrations/v1/articles" \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json"[
{
"id": 151241,
"title": "Article Title",
"slug": "article-slug",
"hero_image_url": "https://...",
"languageCode": "en",
"meta_description": "Meta description for SEO...",
"excerpt": "Short excerpt from the article...",
"orgWebsite": "https://your-site.com",
"created_at": "2026-01-20T09:59:49.132Z",
"updated_at": "2026-01-20T09:59:49.132Z",
"published_at": "2026-01-20T09:59:49.132Z",
"published": true,
"published_url": "https://your-site.com/blog/article-slug",
"seedKeyword": "main keyword",
"keywords": ["keyword1", "keyword2"]
}
]GET /v1/articles/{id}
Returns one article with its full content. Use the id from the list response.
curl -X GET "https://api.ai-agent-search.com/api/integrations/v1/articles/12345" \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json"{
"id": 12345,
"title": "Sample Article Title",
"slug": "sample-article-title",
"languageCode": "en",
"content_markdown": "# Sample...",
"content_html": "<h1>Sample...</h1>",
"jsonLd": { "@context": "https://schema.org", "@type": "Article" },
"faqJsonLd": { "@context": "https://schema.org", "@type": "FAQPage" },
"meta_description": "Example meta description",
"excerpt": "Short excerpt from the article...",
"hero_image_url": "https://path-to-image.jpg",
"orgWebsite": "https://your-website.com",
"created_at": "2025-01-15T10:30:00.000Z",
"updated_at": "2025-01-15T10:30:00.000Z",
"published_at": "2025-01-15T10:30:00.000Z",
"published": true,
"published_url": "https://your-website.com/blog/sample-article-title",
"seedKeyword": "example",
"keywords": ["keyword1", "keyword2"]
}An unknown id returns 404 Not Found. You can also fetch one article by slug with GET /v1/articles/by-slug/{slug}. It returns the same fields.
Paginate large results
Control how many articles you fetch at once with query parameters:
limit: number of articles to return, from 1 to 50 (default 50)offset: number of articles to skip (default 0)
Pagination uses offset and limit only. A ?page= parameter returns a 400 error.
curl -X GET "https://api.ai-agent-search.com/api/integrations/v1/articles?limit=5&offset=0" \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json"async function fetchAllArticles() {
const allArticles = [];
let offset = 0;
const limit = 50;
while (true) {
const res = await fetch(
`https://api.ai-agent-search.com/api/integrations/v1/articles?limit=${limit}&offset=${offset}`,
{ headers: { 'X-API-Key': process.env.AI_AGENT_SEARCH_API_KEY } }
);
if (!res.ok) throw new Error(`API error: ${res.status}`);
const articles = await res.json();
if (articles.length === 0) break;
allArticles.push(...articles);
if (articles.length < limit) break;
offset += limit;
}
return allArticles;
}Tips:
- Articles are sorted newest first.
- If a response returns fewer articles than your
limit, you have reached the end. - Use
offset = (page - 1) * limitfor page-based navigation.
Store it yourself, don't fetch on demand
The API is rate-limited, so do not call it on every page view. Sync all articles into your own storage (files or a database) and serve them from there.
Publish new articles automatically: run the sync on a schedule, such as a cron job, a scheduled CI workflow (for example GitHub Actions), your framework's build hook or ISR, or a background job. New articles then appear without manual work.
Map fields to your CMS
Each article returns these fields. Map them to what your CMS expects:
title: post titlecontent_html: full HTML; use this for most CMS platformscontent_markdown: Markdown version; use this if your CMS prefers itslug: URL-friendly post identifiermeta_description: SEO meta descriptionhero_image_url: featured image URLjsonLd: article schema markup for SEOfaqJsonLd: FAQ schema markup for SEOlanguageCode: the article's language; keep languages separate if your site is multilingualpublished_url: the article's live URL on your site once we detect it; an empty string until then
async function syncArticle(id) {
const res = await fetch(`https://api.ai-agent-search.com/api/integrations/v1/articles/${id}`, {
headers: { 'X-API-Key': process.env.AI_AGENT_SEARCH_API_KEY },
});
const article = await res.json();
// Upsert into your CMS
await fetch('https://your-cms.example.com/posts', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
slug: article.slug || article.id,
title: article.title,
html: article.content_html,
description: article.meta_description,
language: article.languageCode,
}),
});
}If you would rather receive articles as we publish them, use the Webhooks integration instead of polling.
Check your article is live
Publish your website, then click Check my site. We look for your newest article on your site: in your sitemap, at your blog address (for example your-site.com/blog/article-slug) and in the links on your blog page. When we find it, we save its address, the wizard and the API card show Connected, and we find the addresses of new articles automatically from then on.
This step shows the blog address we check (your-site.com/blog unless you set another one) and the exact article address we look for. If your blog lives somewhere else, change the blog address. It must be on your website's domain or a subdomain of it. The new address is saved when you click Check my site.
If your first article has not been released yet, come back once it has. Your API key stays saved. If we cannot find the article, check that your website's latest changes are deployed and that the article is at the address the wizard shows.
Still stuck? Contact Nimblo.
Troubleshooting & FAQ
Why do I get 401 Unauthorized?
The API key is missing or wrong. Send it in the X-API-Key header, check for extra spaces, and make sure you did not regenerate the key after deploying.
Why do I get a 404 error?
The article id does not exist in your account, or the article has not been released yet. List your articles first and use an id from that response.
Why do I get a 400 error when I paginate?
You probably sent ?page=. Use ?offset=<n>&limit=<n> instead, with a limit between 1 and 50.
What happens when I hit the rate limit?
Requests fail until the limit resets. Store articles in your own database or files, sync on a schedule, and add exponential backoff to retries. Do not call the API on every page view.
Should I use HTML or Markdown?
Use content_html for most CMS platforms. Use content_markdown if your CMS prefers Markdown.
Can I use this with any CMS?
Yes. The API returns standard JSON, so it works with any platform that lets you create content programmatically.
How do I get notified when a new article is published?
Use the Webhooks integration. We send each article to your endpoint as it is published, so you do not need to poll the API.
Need more help?
Contact Nimblo.
