---
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

---

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