{"id":36975888,"url":"https://github.com/beyondcode/fathom-analytics-api","last_synced_at":"2026-01-13T22:06:33.869Z","repository":{"id":48782440,"uuid":"322616222","full_name":"beyondcode/fathom-analytics-api","owner":"beyondcode","description":"The unofficial Fathom Analytics API","archived":true,"fork":false,"pushed_at":"2021-07-12T14:33:37.000Z","size":11,"stargazers_count":39,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-11T19:35:04.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beyondcode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-18T14:22:27.000Z","updated_at":"2024-01-09T09:51:27.000Z","dependencies_parsed_at":"2022-08-31T07:23:41.547Z","dependency_job_id":null,"html_url":"https://github.com/beyondcode/fathom-analytics-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/beyondcode/fathom-analytics-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondcode%2Ffathom-analytics-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondcode%2Ffathom-analytics-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondcode%2Ffathom-analytics-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondcode%2Ffathom-analytics-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyondcode","download_url":"https://codeload.github.com/beyondcode/fathom-analytics-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondcode%2Ffathom-analytics-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-13T22:06:32.853Z","updated_at":"2026-01-13T22:06:33.861Z","avatar_url":"https://github.com/beyondcode.png","language":"PHP","readme":"# The unofficial Fathom Analytics API\n\nThis is an unofficial PHP SDK to get statistics out of Fathom Analytics, as long as it does not offer an official API.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require beyondcode/fathom-api\n```\n\n## Usage\n\n```php\n$analytics = new BeyondCode\\FathomAnalytics($email, $password);\n\n$sites = $analytics-\u003egetSites();\n\n$analytics-\u003egetCurrentVisitors($siteId);\n\n// Returns the visitor data for today\n$analytics-\u003egetData($siteId);\n\n// Returns the visitor data for the whole week until today\n$analytics-\u003egetData($siteId, Carbon::now()-\u003estartOfWeek());\n\n// Returns the visitor data for two days ago until yesterday.\n$analytics-\u003egetData($siteId, Carbon::now()-\u003esubDays(2), Carbon::now()-\u003esubDays(1));\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email marcel@beyondco.de instead of using the issue tracker.\n\n## Credits\n\n- [Marcel Pociot](https://github.com/mpociot)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondcode%2Ffathom-analytics-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyondcode%2Ffathom-analytics-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondcode%2Ffathom-analytics-api/lists"}