{"id":32630803,"url":"https://github.com/tfmart/csfloatkit","last_synced_at":"2026-04-12T22:04:44.200Z","repository":{"id":54857704,"uuid":"205947103","full_name":"tfmart/CSFloatKit","owner":"tfmart","description":"Swift framework to help integrate some public CSGO skins related services","archived":false,"fork":false,"pushed_at":"2021-11-13T22:21:43.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-02T15:14:58.814Z","etag":null,"topics":["csgo","ios","macos","spm","swift","swift-framework","swift-package-manager"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tfmart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-02T22:43:02.000Z","updated_at":"2021-11-13T22:21:45.000Z","dependencies_parsed_at":"2022-08-14T04:50:58.255Z","dependency_job_id":null,"html_url":"https://github.com/tfmart/CSFloatKit","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/tfmart/CSFloatKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfmart%2FCSFloatKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfmart%2FCSFloatKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfmart%2FCSFloatKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfmart%2FCSFloatKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tfmart","download_url":"https://codeload.github.com/tfmart/CSFloatKit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfmart%2FCSFloatKit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281896624,"owners_count":26580138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csgo","ios","macos","spm","swift","swift-framework","swift-package-manager"],"created_at":"2025-10-30T22:53:28.821Z","updated_at":"2025-10-30T22:54:24.050Z","avatar_url":"https://github.com/tfmart.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSFloatKit\n\nCSFloatKit is a Swift framework that provides an easy way to fetch information about a CS:GO weapon skin. All the information provided comes from [Step7750's CSGO Float API](https://github.com/Step7750/CSGOFloat).\n\n## Installation\n\nCurrently, this package can be installed through the *[Swift Package Manager](https://swift.org/package-manager/)*\n\nIf you're running Xcode 11 or later, you can simply go to `File -\u003e Swift Package Manager -\u003e Add Package Dependency...` and search for `CSFloatKit` or just paste this Github page URL on the text field\n\nIf you're running an earlier version, you'll have to set up SPM on your project and add the following dependency to your `Package.swift` file:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/tfmart/CSFloatKit.git\", from: \"0.1.0\")\n]\n```\n\n## Usage\n\nTo get started, you will need to create an instance of `CSFloatConfiguration` and configure it with either an item inspect link or using the Inventory (S), Asset (A), D and Market (M) parameters from an inspect link. \n\n* Initiating with an inspect link\n\n```swift\nlet configuration = CSFloatConfiguration(inspectLink: \"steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198084749846A698323590D7935523998312483177\")\n```\n\n* Initiating with the S, A, D, M parameters\n\n```swift\nlet configuration = CSFloatConfiguration(inventoryParameter: nil,\n                                         assetParameter: \"13874827217\",\n                                         dParameter: \"4649025583329100061\",\n                                         marketParameter: \"2608048286785948758\")\n```\n\nAfter the setting up the configuration, create an instance of  `SWGORequester` to create a float request\n\n```swift\nlet request = CSFloatRequester(configuration: config) { (skin, error) in\n    \n}\n```\n\nAnd to start the request:\n\n```swift\nrequest.start()\n```\n\nThe request will either the skin fetched from the inspect link or a `ApiError`, which represents the error that occurred in the request.\n\n## Screenshot\n\nAfter fetching an instance of  `Skin` with the requester, you can use the `getScreenshotURL()` method to get an URL string which can be used to get a screenshot image, by using the [CS.Deals' csgo.gallery screenshot service](https://cs.deals/pt/screenshot)\n\n```swift\nlet configuration = CSFloatConfiguration(inspectLink: \"steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198084749846A698323590D7935523998312483177\")\nlet request = SWGORequester(configuration: config) { (skin, error) in\n    let screenshotURL = skin.getScreenshotURL()\n    //Returns \"https://csgo.gallery/steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198084749846A698323590D7935523998312483177\"\n}\nrequest.start()\n```\n\nFrom version 0.3 upwards, it's also possible to fetch [CS.Money](https://cs.money) screenshots and 3D models, just by using the item's inspect link or an instance of a `Skin` object:\n\n```swift\nlet configuration = CSMConfiguration(inspectLink: \"steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561199043158336A20517916623D14133434752320963923\")\nlet request = CSMRequester(configuration: config, completion: { (fetchedScreenshot, error) in\n    // URL for the skin's screenshot\n    let screenshotURL = fetchedScreenshot.imageURL\n    // URL for the skin's preview screenshot\n    let previewURL = fetchedScreenshot.previewURL\n    // URL for the skin's 3D preview\n    let preview3DURL = fetchedScreenshot.preview3D\n})\nrequest.start()\n```\n\n## Models\n\nDocumentation about the models are coming soon!\n\n## Goals\n\n- [x] Get skin info from CSGO Float API\n- [x] Support for S, A, D and M parameters\n- [x] Finish writing unit test for the request method\n- [x] Get an item's screenshot with csgo.gallery\n- [x] Screenshot requester\n- [ ] Fetch images for non-marketable stickers applied to items\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfmart%2Fcsfloatkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftfmart%2Fcsfloatkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfmart%2Fcsfloatkit/lists"}