{"id":18657178,"url":"https://github.com/tomdai/trace","last_synced_at":"2025-11-05T21:30:29.834Z","repository":{"id":105060601,"uuid":"455275212","full_name":"tomdai/Trace","owner":"tomdai","description":"Get geocode, calling code, IP, etc. from 1.1.1.1 trace info.","archived":false,"fork":false,"pushed_at":"2022-02-03T18:32:12.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-27T15:10:38.205Z","etag":null,"topics":["calling-codes","country-codes","geocode","geolocation","reachability","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomdai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-03T18:08:30.000Z","updated_at":"2022-02-06T02:29:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"8865224c-37ee-4df5-a1bc-a16421ec7ddb","html_url":"https://github.com/tomdai/Trace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomdai%2FTrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomdai%2FTrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomdai%2FTrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomdai%2FTrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomdai","download_url":"https://codeload.github.com/tomdai/Trace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239474171,"owners_count":19644859,"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","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":["calling-codes","country-codes","geocode","geolocation","reachability","swift"],"created_at":"2024-11-07T07:26:59.107Z","updated_at":"2025-11-05T21:30:29.782Z","avatar_url":"https://github.com/tomdai.png","language":"Swift","readme":"# Trace\n\nGet geocode, calling code, etc. from 1.1.1.1 trace info.\n\nRequires Apple operating systems released in WWDC21 and later.\n\n## Usage Examples\n\n```swift\nawait Trace.ip\n```\nReturns `Optional(\"207.38.1.1\")`\n\n```swift\nawait Trace.geocode\n```\nReturns `Optional(\"US\")`\n\n```swift\nawait Trace.callingCodes\n``` \nReturns `[\"1\"]`\\\nOr `[\"1809\",\"1829\",\"1849\"]` (Can be multiple codes for geocode like \"DO\")\\\nOr `[]` (Can be empty if no result is found)\n\n```swift\nawait Trace.primaryCallingCode\n```\nReturns `Optional(\"1\")`\n\n```swift\nawait Trace.time\n```\nReturns `Optional(2022-02-03 17:33:40 +0000)` (The time at which the request is received)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomdai%2Ftrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomdai%2Ftrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomdai%2Ftrace/lists"}