Search for related links

import os
from metaphor_python import Metaphor

metaphor = Metaphor(os.getenv("METAPHOR_API_KEY"))

search_response = metaphor.find_similar("https://metaphor.systems")

for result in search_response.results:
    print(f"Title: {result.title}\nURL: {result.url}\n")

Output

Title: Legend
URL: https://www.legend.fyi/

Title: Zipper
URL: https://www.zipper.works/

Title: Telifie
URL: https://www.telifie.com/

Title: Anypod
URL: https://www.anypod.ai/

Title: Samaya AI
URL: https://samaya.ai/

Title: Welcome to Memo.com
URL: https://www.memo.com/

Title: replicate.dev
URL: https://www.replicate.dev/

Title: lexiconomy
URL: https://lexiconomy.org/

Title: Writ
URL: https://writ.so/

Title: Linguistic
URL: https://www.golinguistic.com/

Similar to Search, we can filter the results that are returned from the API.

For a full API Reference, check out findSimilar.