Bixx API

A simple JSON search API. Send a query, get results back.

base url https://bixx.agency

Endpoint

GET /api/search

Returns up to 30 web search results as JSON.

Param In Required Description
x-api-key header yes * Your API key
apikey query yes * Alternative to the header
q query yes Search query string
num query no Number of results (default 10, max 30)

* provide one of the two

Response

200 OK
{
  "query": "openai",
  "count": 10,
  "results": [
    {
      "title": "OpenAI",
      "url": "https://openai.com",
      "displayUrl": "openai.com",
      "snippet": "An AI safety company..."
    }
  ]
}
401 Unauthorized
{ "error": "invalid_api_key", "message": "..." }

Examples

fetch (built-in Node 18+)
const res = await fetch(
  'https://bixx.agency/api/search?q=openai&num=5',
  { headers: { 'x-api-key': 'YOUR_API_KEY' } }
);

const data = await res.json();
console.log(data.results);
axios
import axios from 'axios';

const { data } = await axios.get(
  'https://bixx.agency/api/search',
  {
    params:  { q: 'openai', num: 5 },
    headers: { 'x-api-key': 'YOUR_API_KEY' },
  }
);

console.log(data.results);

Error Codes

401 invalid_api_key Missing or wrong API key
400 missing_query The q param was not provided
500 search_failed Scraper error — try again