Skip to content

[BUG] #36

@volumevigilante

Description

@volumevigilante

🐛 Bug Description

The public site/docs say the API requires no API key, no authentication, and is free to use, but the live /api/search endpoint is returning 402 Payment Required with x402 payment instructions. This appears to be a documentation/runtime mismatch.

📋 Steps to Reproduce

  1. Call endpoint '/api/search'
  2. With parameters 'q=MINA crypto&limit=5&from=2026-04-07T00:00:00Z'
  3. See error '402 Payment Required'

🔍 Example Request

✅ Expected Behavior

Based on the public website and docs, I expected /api/search to work without an API key or payment requirement and return JSON search results.

❌ Actual Behavior

The endpoint returned 402 Payment Required and included x402 payment metadata instead of search results.

📸 Screenshots/Response

If applicable, add screenshots or the actual API response.

// {
  "x402Version": 2,
  "error": "Payment Required",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "amount": "1000",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "payTo": "0x4027FdaC1a5216e264A00a5928b8366aE59cE888",
      "maxTimeoutSeconds": 60,
      "extra": {
        "name": "USD Coin",
        "version": "2"
      },
      "outputSchema": {
        "input": {
          "method": "GET",
          "type": "http",
          "url": "https://cryptocurrency.cv/api/search",
          "parameters": {
            "semantic": {
              "type": "string",
              "description": "Enable semantic search"
            }
          }
        },
        "output": {
          "type": "object",
          "properties": {
            "success": {
              "type": "boolean"
            },
            "data": {
              "type": "object"
            }
          }
        }
      }
    }
  ],
  "resource": {
    "url": "https://cryptocurrency.cv/api/search",
    "description": "Full-text search across news, articles, and data",
    "mimeType": "application/json"
  }
}

🌍 Environment

  • API Endpoint: /api/search
  • Method: GET
  • Client: browser / curl
  • Self-hosted? No

📝 Additional Context

The public site currently states things like “No API Key Required”, “Auth: None required”, and “The API is completely free to use”, so this behavior is confusing from an integration standpoint.

If /api/search is now paywalled or gated, the docs, API playground, and README should probably be updated to reflect that. If it is supposed to be free, then the live deployment may be misconfigured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions