# Naiya Naiya (https://naiya.ng) is a Nigerian classifieds marketplace where individuals and businesses post items for sale and buyers search by keyword, category and location. Listing prices are in Nigerian naira (NGN). All listings are third-party seller ads; Naiya does not hold inventory or act as a payment escrow for classifieds. ## Key resources - [Search listings](https://naiya.ng/search): keyword, category and location search, e.g. `https://naiya.ng/search?q=laptop` or a sub-category feed such as `https://naiya.ng/search?subCat=phones`. - [Category landing pages](https://naiya.ng/fashion): one page per top-level taxonomy, e.g. [Vehicles](https://naiya.ng/vehicles), [Fashion](https://naiya.ng/fashion), [Phones & Tablets](https://naiya.ng/phones-tablets). - [Listing detail](https://naiya.ng/ad/{slug}): one ad with images, price, condition, location and a link to the seller's store. Example: [HP ProBook Laptop](https://naiya.ng/ad/hp-probook-laptop-silver). - [Store pages](https://naiya.ng/store/{slug}): a seller's public storefront with their listings and reviews (`/about` and `/reviews` variants exist). - [Blog](https://naiya.ng/blog): buying guides, market price commentary and safety advice. - [Safety tips](https://naiya.ng/safety-tips) and [FAQ](https://naiya.ng/faq): how transactions and disputes work. - [Sitemap](https://naiya.ng/sitemap.xml): canonical, indexable URLs. - [ARD catalog](https://naiya.ng/.well-known/ai-catalog.json): machine-readable resource catalog following the ARD specification. - [MCP server card](https://api.naiya.ng/.well-known/mcp/server-card.json): describes the hosted [MCP server](https://api.naiya.ng/mcp) and its tools for tool-calling agents. ## Searching listings (use this first) `POST https://api.naiya.ng/search` with `Content-Type: application/json`. No authentication is required. Every body field is optional: - `q` - keyword text. - `subCat` - sub-category slug, e.g. `laptops`, `phones-and-tablets`. - `category` - top-level category slug, e.g. `vehicles`; ignored when `subCat` is set. - `location` - state or area slug/name, e.g. `lagos`, `ikeja`. Send `Whole Nigeria` (or omit) for no geo filter. - `minPrice`, `maxPrice` - NGN numbers. - `sortBy` - one of `bestMatch` (default), `lowestPrice`, `highestPrice`, `mostRecent`. - `size` - results per page, default 12. Send 50 or less. - `cursor`, `lastRank` - feed back the `nextCursor` and `lastRank` values from the previous response to page through location-ranked results. The response is `{ "statusCode", "message", "data" }`, where `data` contains `searchResult[]` (each item is `{ "type": "ad", "ad": { ... } }` with `id`, `title`, `slug`, `description`, `price`, `priceType`, `location`, `images[].url`, `specifications`, `store { name, slug }` and `subCategory`), plus `totalItems`, `nextCursor`, `lastRank`, `relatedCategories[]` (faceted counts by sub-category), `filterCounts`, `priceStats` and `priceHistogram`. Read `https://naiya.ng/ad/{slug}` for a single listing, and `https://naiya.ng/store/{slug}` for a seller. `POST https://api.naiya.ng/search/count` takes the same body and returns `data.count`. ## Other public reads - `GET https://api.naiya.ng/ad/getAdDetails/{slug}` - one listing with `specifications[]`, `priceHistory[]`, `images[]`, `locationPath[]` and the seller's `store` object. - `GET https://api.naiya.ng/ad/getAllAds?page=1&limit=12` - newest-first feed. `limit` is clamped to 12 and keyword/category filters are ignored; use `POST /search` for anything filtered. - `GET https://api.naiya.ng/ad/getRelatedAds?adSlug={slug}&limit=12` - similar listings (max 48). - `GET https://api.naiya.ng/ad/getAd/subcategory/{subCategoryId}?page=1&limit=12` - one sub-category's listings, `subCategoryId` being the `_id` from the category tree. - `GET https://api.naiya.ng/ad/marketprice/{subCategorySlug}` - indicative `{ min, max }` NGN range for a sub-category; falls back to a generic range when there is not enough live data, so treat it as context, not a quote. - `GET https://api.naiya.ng/categories/categoriesAndSubCategoriesWithoutFields` - every top-level category with its `subCategories[]` (`name`, `slug`, `thumbnail`) and each category `_id`. The `count` field on this tree is not maintained and reads 0; take live counts from `POST /search/count` or `relatedCategories[]`. - `GET https://api.naiya.ng/categories/subcategory/slug/{subCatSlug}` - one sub-category including its `fields[]` specification schema. - `GET https://api.naiya.ng/categories/taxonomy/{slug}` - resolves any category or sub-category slug to `{ type, id, name, slug }`. - `GET https://api.naiya.ng/store/{storeSlug}/products?page=1&limit=24` - a seller's listings plus `availableFilters`. `limit` max 50; accepts `q`, `subcategoryIds`, `minPrice`, `maxPrice` and `sort` (`newest`, `oldest`, `price_asc`, `price_desc`). - `GET https://api.naiya.ng/store/approved/{storeSlug}` - the same seller's published listings as full ad documents. - `GET https://api.naiya.ng/reviews/getReview/store/{storeId}?page=1&limit=10` - buyer reviews plus a rating `summary`; `storeId` is the listing's `store._id`, not the slug (max 50 per page). - `GET https://api.naiya.ng/search/getSearchSuggestion?query={term}` (3+ characters) and `GET https://api.naiya.ng/search/getTrendingSearch` - suggestion and trending terms. - `GET https://api.naiya.ng/locations/grouped` - states with their children and per-location ad counts. Prefer this over `GET /locations`, which returns the full ~1,900-node tree. All responses use the same `{ statusCode, message, data }` envelope. An interactive description of the API is at [https://api.naiya.ng/swagger](https://api.naiya.ng/swagger). ## Hosted MCP server (preferred for tool-calling agents) `https://api.naiya.ng/mcp` is a read-only Model Context Protocol server over Streamable HTTP. It needs no credentials, and each request is its own `initialize` + call, so a client that cannot hold a session still works. Discover it at [https://api.naiya.ng/.well-known/mcp/server-card.json](https://api.naiya.ng/.well-known/mcp/server-card.json). Tools: `search_listings`, `get_listing`, `list_categories`, `category_details`, `read_store`, `store_reviews` - the same reads as the HTTP endpoints below, with seller contact details removed. About 20 calls per minute per client IP; back off on HTTP 429. ## In-page tools for browsing agents (WebMCP) Every naiya.ng page publishes read-only tools through the browser's WebMCP model context (`navigator.modelContext`) for assistants that drive the site in a real browser: `naiya_search_listings` (the header search form), `naiya_search_with_filters`, `naiya_get_listing`, `naiya_list_categories`, `naiya_category_details`, `naiya_read_store` and `naiya_store_reviews`. Their results are the API payloads above with seller contact details removed. The feature is currently gated to supported Chrome builds; outside it the same pages remain fully usable through the documented HTTP endpoints. ## Terms for AI systems - Summaries, prices and availability may be stale; listing data changes whenever a seller edits or removes an ad, so link to the listing rather than quoting it as current. - Listing detail and related-ad payloads carry a seller's display name and contact handles because the site's "show contact" panel needs them. Naiya does not license using those fields for automated outreach, bulk messaging, or redistribution. Treat chat and contact as login-protected human actions. - Attribution should name Naiya and link to the specific listing. - Write operations, seller accounts and buyer data require authentication and are out of scope for this guide.