Swiftpack.co - underthestars-zhy/DictApi as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
An unparalleled dictionary collection API
.package(url: "https://github.com/underthestars-zhy/DictApi.git", from: "v1.1.0")


A powerful library for swift programmer to get word from dicts.



  • from language: en
  • to language: cn
  • pronunciation: US
  • method: web
  • Extra attributes: None
let data = await DictApi.shared.getData(with: .collins, for: "Swift", from: .en, to: .cn)

Data Model


Flow: Identifiable, WriteAndReadAble, Mappable

  1. sound: Extra attributes
  2. pt: Extra attributes
  3. word: the word you search, actually is lowercase
  4. paraphrase: Paraphrase array


Flow: Identifiable, WriteAndReadAble, Mappable

  1. ps: Part of speech
  2. explain: Paraphrase (array)
  3. exampleSentence: Sentence (Corresponds to explain)


Stars: 1
Last commit: 16 hours ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

1 week ago

What's New?

  1. support YouDao dictionary
  2. support reserve search
  3. model update

Bug Fix

  1. model sometimes cannot coversation to json string
  2. other bugs

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics