Endpoints
Search Dataset

Lyralink Dataset API

Base URL: http://lyralinkai.com/api/public_api.php

The Lyralink Dataset API gives operators and developers programmatic access to the Lyralink Q&A knowledge base — retrieve semantically relevant results for RAG pipelines, chatbot grounding, or custom search features in your deployment.

All requests require an API key. Keys are free to generate from your account dashboard. Rate limits scale with your operator tier.

Currently in beta The API is in active development. The search endpoint is stable. Additional endpoints may be added in future versions.

Authentication

All requests must include a valid API key

Pass your API key using any of these methods — all are equivalent:

Option 1 — Query parameter

URL
http://lyralinkai.com/api/public_api.php?q=hello&key=lyr_your_key_here

Option 2 — X-API-Key header

HTTP
X-API-Key: lyr_your_key_here

Option 3 — Authorization Bearer header

HTTP
Authorization: Bearer lyr_your_key_here
Keep your key secret Never expose your API key in client-side JavaScript or public repositories. If compromised, revoke it immediately from your dashboard and generate a new one.

Errors

All errors return JSON with a consistent structure
JSON
{
  "error": {
    "code":    "INVALID_KEY",
    "message": "Invalid API key."
  }
}
HTTP StatusError CodeMeaning
400MISSING_QUERYThe ?q= parameter is missing
400QUERY_TOO_LONGQuery exceeds 500 characters
401MISSING_KEYNo API key provided
401INVALID_KEYKey not found or incorrect
403KEY_DISABLEDKey has been revoked
429RATE_LIMITEDDaily request limit reached
503DB_ERRORService temporarily unavailable

Rate Limits

Limits reset daily at midnight UTC

Your rate limit is determined by your Lyralink account plan. Rate limit headers are included on every response:

Response Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 87
X-RateLimit-Reset: 1740873600
PlanRequests / DayNotes
Free100Default for all accounts
Basic500$5/mo
Pro2,000$15/mo
Enterprise10,000$30/mo — LLaMA 70b access + recommended for production operator deployments

View operator tiers →

Examples

Copy-paste ready code samples

cURL

bash
curl -G http://lyralinkai.com/api/public_api.php \
  --data-urlencode "q=how does AI work" \
  -d "key=lyr_your_key_here" \
  -d "limit=3"

JavaScript (fetch)

javascript
const response = await fetch(
  'http://lyralinkai.com/api/public_api.php?q=how+does+AI+work&limit=3',
  { headers: { 'X-API-Key': 'lyr_your_key_here' } }
);

const data = await response.json();

data.results.forEach(result => {
  console.log(result.question);
  console.log(result.answer);
  console.log(`Score: ${result.score} via ${result.method}`);
});

Python (requests)

python
import requests

response = requests.get(
    "http://lyralinkai.com/api/public_api.php",
    params={"q": "how does AI work", "limit": 3},
    headers={"X-API-Key": "lyr_your_key_here"}
)

data = response.json()
for result in data["results"]:
    print(result["question"])
    print(result["answer"])
    print(f"Score: {result['score']} via {result['method']}")

Ready to build?

Generate your API key and integrate into your operator stack in minutes.

Get your API key →