Find yarns for a pattern
find_yarns_for_patternList yarn substitutes for a pattern by seeing which yarns other Ravelry users actually used, ranked by project count, with pattern weight, yardage, gauge, and designer suggestions.
Instructions
Yarn substitution: lists the yarns other Ravelry users actually used to make a pattern, ranked by how many projects used each one, next to the yarn weight, yardage and gauge the pattern calls for and the yarns its designer suggested.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many yarns to return. | |
| pattern_id | Yes | Ravelry pattern id (from search_patterns). | |
| same_weight_only | No | Only return yarns of the pattern's own yarn weight, the safest substitutes. | |
| include_discontinued | No | Also return yarns that are no longer made. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yarns | Yes | Yarns other people used for this pattern, most used first. | |
| pattern | Yes | ||
| total_yarns_used | Yes | How many different yarns people have used in total. |