Search Ravelry yarns
search_yarnsFind yarns in the Ravelry database by name, weight, fiber, or attributes. Get yardage, grams per skein, washability, and ratings.
Instructions
Search the Ravelry yarn database by name, weight, fiber and attributes (superwash, hand-dyed, self-striping...). Excludes discontinued yarns unless asked. Returns yardage and grams per skein, washability and rating for each match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based results page. | |
| sort | No | best = best match; rating = highest rated; projects = most used on Ravelry. | best |
| fiber | No | Fibers the yarn contains (any of them matches). | |
| query | No | Yarn or brand name, e.g. "Malabrigo Rios" or "Drops". Omit to browse by filters. | |
| weight | No | Yarn weights (any of them matches). | |
| page_size | No | Results per page (max 50). | |
| attributes | No | Yarn attributes such as superwash, hand-dyed or self-striping (any matches). | |
| include_discontinued | No | Also return yarns that are no longer made. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| yarns | Yes | ||
| page_count | Yes | ||
| total_results | Yes |