{
  "openapi": "3.1.0",
  "info": {
    "title": "Ebits Crypto Data API (served by Rescuer Robots)",
    "version": "1.0.0",
    "summary": "Crypto headlines tagged by coin and big-money crypto/AI/space deals as clean JSON for AI agents. Same API host as rescuerrobots.com.",
    "description": "Free: launches and crypto headlines. Paid ($0.01/call): search, deals, ocean. Agents pay per call with x402 (USDC on Base to 0x06c55ce1D33CFB7dc47442B1fA0FD2c02Efb1d2E); people and companies can use an API key plan (https://rescuerrobots.com/pricing). Every response includes sources, fetched_at and \"disclaimer\": \"Not investment advice.\" Data is provided as-is; headlines are link-only and belong to their publishers. No trading signals.",
    "contact": {
      "name": "Ebits Crypto (Rescuer Robots LLC)",
      "email": "info@ebitscrypto.com",
      "url": "https://ebitscrypto.com/api.html"
    },
    "termsOfService": "https://ebitscrypto.com/api-terms.html",
    "x-guidance": "Use GET /search?q= for any topic across sources; GET /deals?min=1e9 for $1B+ deals; GET /ocean?lat=&lon= for sea temperature and chlorophyll; GET /launches and GET /crypto/news are free."
  },
  "servers": [
    {
      "url": "https://rescuerrobots.com/api/v1"
    }
  ],
  "externalDocs": {
    "url": "https://rescuerrobots.com/llms.txt"
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "API key plan (see /pricing). Optional: without a key, paid routes use x402."
      },
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Same API key as a Bearer token."
      }
    },
    "schemas": {
      "Item": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "space",
              "robotics",
              "deal",
              "crypto",
              "launch"
            ]
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "source": {
            "type": "string"
          },
          "published_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only for Spaceflight News API items (short publisher summary)."
          },
          "amount_usd": {
            "type": "number"
          },
          "score": {
            "type": "number"
          }
        },
        "required": [
          "title",
          "url",
          "source",
          "published_at",
          "tags"
        ]
      }
    }
  },
  "paths": {
    "/launches": {
      "get": {
        "operationId": "getLaunches",
        "summary": "Upcoming and recent orbital launches (free)",
        "tags": [
          "free"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Launches",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "upcoming": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "recent": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "license": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "fetched_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "disclaimer": {
                      "type": "string",
                      "const": "Not investment advice."
                    }
                  },
                  "required": [
                    "upcoming",
                    "recent",
                    "sources",
                    "fetched_at",
                    "disclaimer"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, or API key quota reached."
          },
          "502": {
            "description": "Upstream source unavailable."
          }
        }
      }
    },
    "/crypto/news": {
      "get": {
        "operationId": "getCryptoNews",
        "summary": "Latest crypto headlines tagged by coin (free; headline + link only)",
        "tags": [
          "free"
        ],
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "schema": {
              "type": "string",
              "examples": [
                "BTC",
                "ETH",
                "SOL",
                "USDC"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Headlines",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string"
                          },
                          "published_at": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "coins": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "topics": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "license": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "fetched_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "disclaimer": {
                      "type": "string",
                      "const": "Not investment advice."
                    }
                  },
                  "required": [
                    "items",
                    "sources",
                    "fetched_at",
                    "disclaimer"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, or API key quota reached."
          },
          "502": {
            "description": "Upstream source unavailable."
          }
        }
      }
    },
    "/search": {
      "get": {
        "operationId": "search",
        "summary": "Search all aggregated sources ($0.01/call)",
        "tags": [
          "paid"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "space",
                "robotics",
                "crypto",
                "deal",
                "launch"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matches",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "query": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Item"
                      }
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "license": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "fetched_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "disclaimer": {
                      "type": "string",
                      "const": "Not investment advice."
                    }
                  },
                  "required": [
                    "results",
                    "sources",
                    "fetched_at",
                    "disclaimer"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad input (checked before payment; you are not charged)."
          },
          "402": {
            "description": "Payment required (x402). Requirements are in the PAYMENT-REQUIRED header (base64 JSON) and copied in the body, with a human fallback.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                },
                "description": "base64-encoded x402 v2 PaymentRequired"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, or API key quota reached."
          },
          "502": {
            "description": "Upstream source unavailable."
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "bearer": []
          }
        ],
        "x-price": "$0.01",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "USDC",
          "asset_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "payTo": "0x06c55ce1D33CFB7dc47442B1fA0FD2c02Efb1d2E"
        }
      }
    },
    "/deals": {
      "get": {
        "operationId": "getDeals",
        "summary": "Big-money deals $1M+/$1B+/$1T+ ($0.01/call)",
        "tags": [
          "paid"
        ],
        "parameters": [
          {
            "name": "min",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "1e6",
                "1e9",
                "1e12"
              ],
              "default": "1e6"
            }
          },
          {
            "name": "sector",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "crypto",
                "ai",
                "space",
                "robotics",
                "climate",
                "other"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 80
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deals",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "min": {
                      "type": "number"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "deals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount_usd": {
                            "type": "number"
                          },
                          "amount_label": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string"
                          },
                          "published_at": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "sectors": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "license": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "fetched_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "disclaimer": {
                      "type": "string",
                      "const": "Not investment advice."
                    }
                  },
                  "required": [
                    "deals",
                    "sources",
                    "fetched_at",
                    "disclaimer"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad input (checked before payment; you are not charged)."
          },
          "402": {
            "description": "Payment required (x402). Requirements are in the PAYMENT-REQUIRED header (base64 JSON) and copied in the body, with a human fallback.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                },
                "description": "base64-encoded x402 v2 PaymentRequired"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, or API key quota reached."
          },
          "502": {
            "description": "Upstream source unavailable."
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "bearer": []
          }
        ],
        "x-price": "$0.01",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "USDC",
          "asset_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "payTo": "0x06c55ce1D33CFB7dc47442B1fA0FD2c02Efb1d2E"
        }
      }
    },
    "/ocean": {
      "get": {
        "operationId": "getOcean",
        "summary": "Sea surface temperature + chlorophyll-a at a point ($0.01/call)",
        "tags": [
          "paid"
        ],
        "parameters": [
          {
            "name": "lat",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90
            }
          },
          {
            "name": "lon",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ocean point",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sea_surface_temperature": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "chlorophyll_a": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "license": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "fetched_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "disclaimer": {
                      "type": "string",
                      "const": "Not investment advice."
                    }
                  },
                  "required": [
                    "sources",
                    "fetched_at",
                    "disclaimer"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad input (checked before payment; you are not charged)."
          },
          "402": {
            "description": "Payment required (x402). Requirements are in the PAYMENT-REQUIRED header (base64 JSON) and copied in the body, with a human fallback.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                },
                "description": "base64-encoded x402 v2 PaymentRequired"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, or API key quota reached."
          },
          "502": {
            "description": "Upstream source unavailable."
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "bearer": []
          }
        ],
        "x-price": "$0.01",
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "USDC",
          "asset_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "payTo": "0x06c55ce1D33CFB7dc47442B1fA0FD2c02Efb1d2E"
        }
      }
    }
  }
}
