request

A generic HTTP GET, for any data that doesn’t have a dedicated source type yet.

sources:
  standings:
    source: request
    params:
      url: https://api.example.com/standings

Params

pydantic model todays_paper_web.widgets.core.request.RequestParams[source]

Bases: DataSourceParams

field password: str | None = None

Password for username.

field url: str [Required]

The URL to GET.

field username: str | None = None

If set, the request is sent with HTTP Basic auth.

Returns

The parsed JSON body (dict/list) if the response’s Content-Type is application/json, otherwise the raw response text.