---
title: "Get examples of text labeled by the given labeling function"
method: GET
path: "/labelingfunctions/{lf_id}"
tags: ["Statistics"]
---

# Get examples of text labeled by the given labeling function

`GET /labelingfunctions/{lf_id}`

## Path parameters

- `lf_id` string, required

## Response `200`

OK

- object
  - `examples` object[]
    - `text` string — The text of the labeled example
    - `label` integer — The label assigned by this function
    - `annotations` Annotation[] — The annotations by this function over the text
      - `end_offset` integer
      - `start_offset` integer
  - `mistakes` object[]
    - `text` string — The text of the erroneous label
    - `label` integer — The erroneous label assigned by this function
    - `annotations` Annotation[] — The annotations by this function over the text
      - `end_offset` integer
      - `start_offset` integer

## Changes

- **2020-10-23** `48abc59a8b40` — 1 info
  - api operation id `idea2.get_lf_label_examples` removed and replaced with `endpoints.get_lf_label_examples`
- **2020-10-07** `bad24ffe5ea2` — 2 info
  - api tag `Statistics` added
  - api tag `LFStatistics` removed
- **2020-02-20** `5e2e07fbaa35` — 3 info
  - api operation id `endpoints.get_lf_label_examples` removed and replaced with `idea2.get_lf_label_examples`
  - api tag `LFStatistics` added
  - api tag `Statistics` removed

[Change history](https://skmtc.dev/megagonlabs/apis/ruler-api-specification/changes/labelingfunctions/:lf_id/get.md)

---

[API](https://skmtc.dev/megagonlabs/apis/ruler-api-specification.md) · [All operations](https://skmtc.dev/megagonlabs/apis/ruler-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/megagonlabs/ruler-api-specification/revisions/3dab7cc0d48e/schema)
