REST basics

The REST API gives you search over all finlight articles, single article lookups, company master data and the source catalog. This page covers what every v3 route has in common.


Base URL

Every REST request goes to one base URL. The API version is part of the path:

https://api.finlight.me/v3/...

v1 and v2 stay available under /v1/ and /v2/. v2 is frozen and deprecated: it gets no events, roles or other new fields. See Versioning and the migration guide.

Authentication

Send your API key in the X-API-KEY header on every request:

X-API-KEY: YOUR_API_KEY

A missing or wrong key gives 401 with the code UNAUTHORIZED (details). You find your key in the finlight dashboard. More on keys for WebSocket and webhooks is on the Authentication page.

Routes

API v3 has six REST routes. Each request costs 1 credit from your monthly quota, also a 304 Not Modified and an error answer. Not charged: 401, 403 and the monthly 429 itself. See Rate limits & credits for the full rules.

MethodPathWhat it doesCreditsPlan requirement
POST/v3/articles/searchSearch articles1 per pageNone. Your plan decides which blocks you get.
GET/v3/articles/{id}Get an article by id1None
GET/v3/articles/by-linkGet an article by link1None
GET/v3/companiesSearch companies or get several by id1 per requestentityAccess
GET/v3/companies/{companyId}Get one company1entityAccess
GET/v3/sourcesList all sources1None

Filters are never limited by plan. Your plan decides which blocks an article carries (for example companies or events) and how far back you can search. See Plans & entitlements.


Headers

  • Name
    X-API-KEY
    Type
    string
    Description

    Required on every request. Your API key.

  • Name
    Content-Type
    Type
    string
    Description

    application/json on POST /v3/articles/search. The body is JSON.

  • Name
    X-Request-Id
    Type
    string
    Description

    Optional. Your own id for the request. When a request fails, the error body carries it as requestId. Without it, the server makes one in the form req_<uuid>. The id is not sent back as a response header, and successful responses do not contain it.

  • Name
    If-None-Match
    Type
    string
    Description

    Optional, on the company and source lookups (GET /v3/companies, GET /v3/companies/{companyId}, GET /v3/sources). Send the ETag of an answer you already have. If nothing changed, you get 304 Not Modified with an empty body. It still costs 1 credit. See Companies.

Request with a request id

curl -X POST 'https://api.finlight.me/v3/articles/search' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY' \
  -H 'X-Request-Id: test-123' \
  -d '{ "limit": 0 }'

Response (400)

{
  "type": "https://docs.finlight.me/errors/validation-failed",
  "title": "Validation failed",
  "status": 400,
  "detail": "1 request field is not valid.",
  "code": "VALIDATION_FAILED",
  "requestId": "test-123",
  "errors": [
    { "field": "limit", "issue": "limit must not be less than 1" }
  ]
}

Content types

  • A successful response is application/json.
  • An error from a v3 route is application/problem+json (RFC 9457).
  • Request bodies are JSON. Send Content-Type: application/json.

Response envelopes

Every response is a JSON object with named keys. The list or the record is never the top level, so new keys can be added later without breaking you.

RouteEnvelope
POST /v3/articles/search{ "articles": [...], "pagination": {...} }
GET /v3/articles/{id} and GET /v3/articles/by-link{ "article": {...} }
GET /v3/companies{ "companies": [...] }
GET /v3/companies/{companyId}{ "company": {...} }
GET /v3/sources{ "sources": [...] }

The article object is the same everywhere: in REST, on the WebSocket and in webhooks. It is described in The article object.

Timestamps

Every timestamp in a response is UTC with milliseconds:

2026-09-18T12:01:03.000Z

The request fields from and to accept a date (2026-09-01) or a full ISO 8601 time. A date alone means 00:00:00.000 UTC. Send times as UTC with milliseconds, like the API does.

Unknown fields and strict values

  • Unknown request fields are dropped without an error. If you misspell a field, for example eventType instead of eventTypes, the request still succeeds, but the filter is not applied. Check the spelling of every field. The client libraries reject unknown fields before they send anything.
  • Values with a fixed list are checked strictly. A value outside the list (for example "order": "DESC") gives 400 with the code VALIDATION_FAILED and an allowedValues list.
  • Unknown response fields must be ignored. New fields can appear in any response. Values like role, events[].type or source.type can also gain new values. Treat them as open lists and keep values you do not know.

Errors

Every error from a v3 route uses the same problem+json shape. Branch on code, not on title or detail: the texts can change.

Example error

{
  "type": "https://docs.finlight.me/errors/validation-failed",
  "title": "Validation failed",
  "status": 400,
  "detail": "1 request field is not valid.",
  "code": "VALIDATION_FAILED",
  "requestId": "req_8f3a5d0e-1c2b-4f6a-9d7e-0a1b2c3d4e5f",
  "errors": [
    {
      "field": "order",
      "issue": "order must be one of the following values: asc, desc",
      "allowedValues": ["asc", "desc"]
    }
  ]
}

Two cases come back in a simpler form, { "statusCode": ..., "message": ... }: a request body that is not valid JSON, and a path under /v3 that does not exist. All codes, fields and fixes are on the Errors page.