Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Lunoo Rankings Niches API
description: 'The Lunoo Rankings API provides access to curated, AI-ranked best-of lists across thousands of categories. Use this API to search for ranking categories and retrieve detailed rankings with scores, descriptions, and metadata.
The API is designed for integration with AI assistants and GPT custom actions, enabling conversational access to Lunoo''s comprehensive ranking data. It is public and requires no authentication. For a natural-language request, call searchNiches first, choose the closest returned slug, then call getRankings and cite the returned Lunoo URLs.'
version: 1.0.0
contact:
name: Lunoo
url: https://lunoo.com
license:
name: CC BY-SA 4.0
url: https://creativecommons.org/licenses/by-sa/4.0/
servers:
- url: https://lunoo.com
description: Production API
tags:
- name: Niches
paths:
/api/v1/niches:
get:
summary: Search for ranking categories (niches)
description: Resolve a user's natural-language topic to available Lunoo ranking categories. Call this operation first instead of guessing a slug. Review the returned names, slugs, item counts, and Lunoo URLs, then pass the closest returned slug to getRankings.
operationId: searchNiches
x-openai-isConsequential: false
parameters:
- name: q
in: query
description: Search query (substring match on category slug, e.g., "anime", "seo", "tool")
required: true
schema:
type: string
minLength: 1
maxLength: 100
example: anime
responses:
'200':
description: Search results
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: The search query that was executed
results:
type: array
description: Array of matching ranking categories
items:
type: object
properties:
slug:
type: string
description: URL-safe slug for the category (e.g., "anime", "anime-series")
example: anime
name:
type: string
description: Human-readable category name (e.g., "Anime", "Anime Series")
example: Anime
item_count:
type: integer
description: Number of ranked items in this category
example: 250
url:
type: string
format: uri
description: URL to view the ranking page on Lunoo
example: https://lunoo.com/best/anime
json_url:
type: string
format: uri
description: URL to fetch the ranking data as JSON
example: https://lunoo.com/best/anime.json
examples:
anime_search:
value:
query: anime
results:
- slug: anime
name: Anime
item_count: 250
url: https://lunoo.com/best/anime
json_url: https://lunoo.com/best/anime.json
- slug: anime-series
name: Anime Series
item_count: 180
url: https://lunoo.com/best/anime-series
json_url: https://lunoo.com/best/anime-series.json
'400':
description: Bad request (missing or invalid query parameter)
'429':
description: Rate limited (max 60 requests per hour per IP)
'500':
description: Server error
tags:
- Niches