Project Event Search

GET/gateway/v1/search/events

Searches project events by keyword, optionally filtered by `type`.

Lookup: by UUID (`id`) or name (`q`). Returns 404 if the project is not found.

Query Parameters

idstring

Surf project UUID. PREFERRED — always use this when available from a previous response (e.g. project_id from /fund/portfolio or id from /search/project). Takes priority over q.

Example: 25c6612a-395c-4974-94eb-3b5f9f4b2ed7
qstring

Fuzzy entity name search. Only use when 'id' is not available. May return unexpected results for ambiguous names.

Example: ethereum
limitinteger

Results per page

Example: 20
offsetinteger

Pagination offset

Example: 0
Project Event Search
const options = {method: 'GET'};

fetch('https://api.asksurf.ai/gateway/v1/search/events?id=25c6612a-395c-4974-94eb-3b5f9f4b2ed7&q=ethereum&limit=20&offset=0', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
OK
{
  "$schema": "https://example.com/schemas/DataResponseProjectEventItem.json",
  "data": [
    {
      "date": "<string>",
      "description": "<string>",
      "logo_url": "<string>",
      "title": "<string>",
      "type": "<string>"
    }
  ],
  "meta": {
    "cached": true,
    "credits_used": 123,
    "empty_reason": "<string>",
    "has_more": true,
    "limit": 123,
    "offset": 123,
    "total": 123,
    "watermark": 123
  }
}