Description will show here
This documentation aims to provide all the information you need to work with our API.
To authenticate requests, include a x-api-key header with the value "{YOUR_API_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
curl --request GET \
--get "https://hunnt.ai/api/v1/site/healthy-report" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Accept-Language: {string} Optional. Language preference (en|ar). Default: en" \
--header "Content-Type: application/json" \
--header "Accept: application/json" cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"success": false,
"message": "api.Invalid API key",
"errors": [
"api.Invalid API key"
]
}
This endpoint allows clients to submit their existing articles for AI-powered improvement
curl --request POST \
"https://hunnt.ai/api/v1/article/improve" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Authorization: Bearer {token} Required. Client authentication token" \
--header "Accept-Language: {string} Optional. Language preference (en|ar). Default: en" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"articles_list\": [
\"consequatur\"
]
}"
{
"success": true,
"message": "Data Saved with session id: sess_abc123,sess_abc124",
"data": {
"post_ids": [
123,
456
]
}
}
curl --request POST \
"https://hunnt.ai/api/v1/article/generate" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Accept-Language: {string} Optional. Language preference (en|ar). Default: en" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"articles_list\": [
{
\"number_of_articles\": 15,
\"language\": \"en\"
}
],
\"custom_title\": {
\"en\": [
\"Best SEO strategies\"
],
\"ar\": [
\"أفضل طرق تحسين السيو\"
]
},
\"enable_source_citations\": true,
\"enable_topic_planning\": true
}"
{
"success": true,
"message": "Articles is generating",
"data": []
}
The article ID from your CMS/platform.
curl --request GET \
--get "https://hunnt.ai/api/v1/article/restore?article_id=123" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Accept-Language: {string} Optional. Language preference (en|ar). Default: en" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"success": true,
"message": "Article restored successfully",
"data": {
"article": {
"article_title": "SEO Best Practices 2025",
"article_content": "<p>This is the original article content before improvement...</p>",
"article_slug": "seo-best-practices-2025",
"language": "en",
"categories": [
"SEO",
"Marketing",
"Digital"
]
}
}
}
curl --request POST \
"https://hunnt.ai/api/v1/agency/article/generate" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Accept-Language: {string} Optional. Language preference (en|ar). Default: en" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"publish_type\": \"manual\",
\"articles\": [
{
\"language\": \"en\",
\"number_of_articles\": 15
},
{
\"language\": \"ar\",
\"number_of_articles\": 10
}
],
\"start_date\": \"2025-03-01\",
\"start_time\": \"10:00\",
\"repeat_days\": 7,
\"publish_datetime\": {
\"en\": [
\"2025-03-01 10:00:00\",
\"2025-03-08 10:00:00\"
],
\"ar\": [
\"2025-03-02 14:00:00\"
]
}
}"
{
"success": true,
"message": "Articles is generating",
"data": []
}
This endpoint allows clients to submit existing WooCommerce products for AI-powered content and SEO improvement.
The endpoint can also optionally generate related articles for each submitted product. Article generation can be configured separately for Arabic and English.
Each product must contain either a short description or a long description with at least 100 characters after removing HTML tags.
When article generation is enabled:
curl --request POST \
"https://hunnt.ai/api/v1/product/improve" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Accept-Language: {string} Optional. Preferred response language. Supported values: en, ar. Default: en" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"products_list\": [
\"consequatur\"
],
\"generate_articles\": true,
\"product_articles\": {
\"456\": {
\"ar\": 2,
\"en\": 3
}
}
}"
{
"success": true,
"data": {
"product_ids": [
456,
789
]
},
"message": "Products queued for improvement"
}
optional Page number. Minimum: 1.
optional Number of products returned per page. Minimum: 1. Maximum: 100. Default: 20.
optional Search products by title, external product ID, slug, AI product name, meta title, or meta description. Maximum 255 characters.
optional Filter products by language. Accepted values: ar, en.
curl --request GET \
--get "https://hunnt.ai/api/v1/product/list?page=1&per_page=20&search=coffee&language=en" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Accept-Language: string optional Preferred API response language. Supported values: en, ar. Example: en" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"success": true,
"message": "Improved products retrieved successfully.",
"data": {
"products": [
{
"id": 25,
"uuid": "54cb2b86-c963-4a95-a5e4-4e213d562419",
"external_product_id": "456",
"product_title": "Organic Coffee Beans",
"product_slug": "organic-coffee-beans",
"full_product_url": "https://example.com/product/organic-coffee-beans",
"language": "English",
"status": "success",
"is_published": true,
"publish_date_time": "2026-08-14 12:00:00",
"ai_completed_date": "2026-08-14 11:45:00",
"improved_data": {
"product_name": "Premium Organic Coffee Beans",
"short_description": "Premium organic coffee beans with a rich aroma and balanced flavor.",
"long_description": "<p>Discover our premium organic coffee beans...</p>",
"category": "Coffee",
"tags": [
"coffee",
"organic",
"arabica"
],
"meta_title": "Premium Organic Coffee Beans",
"meta_description": "Shop premium organic coffee beans with a rich aroma and balanced flavor.",
"keywords": [
"organic coffee",
"arabica coffee"
],
"keywords_source": null,
"attributes": {
"roast": [
"Medium"
]
},
"image_alts": [],
"images_input": [],
"schema_type": "Product",
"schema_data": {},
"full_product_url": "https://example.com/product/organic-coffee-beans"
},
"created_at": "2026-08-14T08:30:00.000000Z",
"updated_at": "2026-08-14T09:00:00.000000Z"
}
],
"pagination": {
"current_page": 1,
"per_page": 20,
"total": 35,
"last_page": 2,
"from": 1,
"to": 20,
"has_more_pages": true
}
}
}
This endpoint is used to either generate a new real estate/property entry or improve an existing one using AI.
The operation type is controlled by realestate.realestate_type:
generate: Generate a new real estate entry.improve: Improve an existing real estate entry.When realestate_type is generate, target_post_type is required.
When realestate_type is improve, realestate_id is required.
The request can generate content in Arabic, English, or both. One real estate generation/improvement credit is charged per selected language.
Optionally, related SEO articles can also be generated for the selected languages.
At least one content source must be provided:
realestate.free_textrealestate.file_urlsIf no file_urls are provided, free_text must contain at least 100 characters
after HTML tags are removed.
curl --request POST \
"https://hunnt.ai/api/v1/realestate/generate-improve" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Accept-Language: string optional Preferred API response language. Supported values: en, ar. Example: en" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"realestate\": {
\"realestate_type\": \"generate\",
\"realestate_id\": \"1250\",
\"reference_realestate_id\": \"1200\",
\"realestate_title\": \"Roya Sedra Residential Project\",
\"realestate_slug\": \"roya-sedra-riyadh\",
\"realestate_url\": \"https:\\/\\/example.com\\/property\\/roya-sedra-riyadh\",
\"free_text\": \"Roya Sedra is a residential development located in Riyadh offering modern units, landscaped areas, and family-oriented facilities.\",
\"file_urls\": [
\"https:\\/\\/example.com\\/files\\/project-brochure.pdf\"
],
\"primary_keyword\": \"apartments in Riyadh\",
\"project_name\": \"Roya Sedra\",
\"target_post_type\": \"property\",
\"developer_name\": \"Retal Urban Development\",
\"city\": \"Riyadh\",
\"target_word_count\": 1200,
\"price\": \"SAR 1,250,000\",
\"short_description\": \"Modern residential units in a family-oriented community in Riyadh.\",
\"meta_title\": \"Roya Sedra Apartments in Riyadh | Hunnt\",
\"meta_description\": \"Discover Roya Sedra residential units in Riyadh with modern facilities and a strategic location.\",
\"category\": \"Residential > Apartments\",
\"tags\": [
\"riyadh\",
\"apartments\",
\"residential\"
],
\"categories_list\": [
\"consequatur\"
],
\"realestate_image\": \"https:\\/\\/example.com\\/uploads\\/project-main.jpg\",
\"realestate_images\": [
\"https:\\/\\/example.com\\/uploads\\/project-1.jpg\",
\"https:\\/\\/example.com\\/uploads\\/project-2.jpg\"
],
\"attributes\": [
\"consequatur\"
],
\"custom_fields\": [
\"fave_property_price\",
\"fave_property_size\",
\"fave_property_bedrooms\"
],
\"custom_fields_schema\": [
\"consequatur\"
],
\"current_custom_fields\": [
\"consequatur\"
],
\"seo_meta\": [
\"consequatur\"
],
\"taxonomies_schema\": [
\"consequatur\"
]
},
\"languages\": [
\"ar\",
\"en\"
],
\"generate_articles\": true,
\"realestate_articles\": {
\"ar\": 2,
\"en\": 3
},
\"remove_sources_links\": \"yes\"
}"
{
"success": true,
"data": {
"realestate_ids": [
101,
102
],
"requested_languages": [
"ar",
"en"
],
"charged_realestate_count": 2,
"charged_articles_count": 5,
"generate_articles": true
},
"message": "Realestate queued"
}
optional Page number. Minimum: 1.
optional Number of results returned per page. Minimum: 1. Maximum: 100. Default: 20.
optional Search by title, project name, external real estate ID, slug, or meta description. Maximum 255 characters.
optional Filter results by language. Accepted values: ar, en.
optional Filter by real estate operation type. Accepted values: generate, improve.
curl --request GET \
--get "https://hunnt.ai/api/v1/realestate/list?page=1&per_page=20&search=Riyadh&language=en&realestate_type=generate" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Accept-Language: string optional Preferred API response language. Supported values: en, ar. Example: en" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"success": true,
"message": "Real estate results retrieved successfully.",
"data": {
"realestate": [
{
"id": 15,
"uuid": "54cb2b86-c963-4a95-a5e4-4e213d562419",
"external_realestate_id": "1250",
"reference_realestate_id": null,
"realestate_title": "Roya Sedra Residential Project",
"realestate_slug": "roya-sedra-riyadh",
"full_realestate_url": "https://example.com/property/roya-sedra-riyadh",
"language": "English",
"realestate_type": "generate",
"target_post_type": "property",
"status": "success",
"is_published": true,
"publish_date_time": "2026-08-14 12:00:00",
"ai_completed_date": "2026-08-14 11:45:00",
"result": {
"project_name": "Roya Sedra",
"developer_name": "Retal Urban Development",
"city": "Riyadh",
"title": "Roya Sedra Residential Project in Riyadh",
"body": "<h1>Roya Sedra Residential Project</h1><p>...</p>",
"summary": "A modern residential development in Riyadh.",
"meta_description": "Discover Roya Sedra residential properties in Riyadh.",
"primary_keyword": "apartments in Riyadh",
"schema_jsonld": {
"@context": "https://schema.org"
},
"full_realestate_url": "https://example.com/property/roya-sedra-riyadh",
"custom_fields": {
"fave_property_price": "1250000",
"fave_property_bedrooms": "3"
},
"taxonomies": {
"property_city": [
"Riyadh"
]
},
"gallery_field": "fave_property_images"
},
"created_at": "2026-08-14T08:30:00.000000Z",
"updated_at": "2026-08-14T09:00:00.000000Z"
}
],
"pagination": {
"current_page": 1,
"per_page": 20,
"total": 25,
"last_page": 2,
"from": 1,
"to": 20,
"has_more_pages": true
}
}
}