{"id":45646469,"url":"https://github.com/pavelmaksimov/marilyn-api","last_synced_at":"2026-02-24T04:13:46.996Z","repository":{"id":57439634,"uuid":"474571200","full_name":"pavelmaksimov/marilyn-api","owner":"pavelmaksimov","description":"Async client for Marilyn API","archived":false,"fork":false,"pushed_at":"2022-03-27T07:58:17.000Z","size":21,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-27T12:16:47.467Z","etag":null,"topics":["api","async","client","marilyn","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/pavelmaksimov.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}},"created_at":"2022-03-27T07:54:20.000Z","updated_at":"2022-07-11T10:39:09.000Z","dependencies_parsed_at":"2022-09-19T21:08:32.010Z","dependency_job_id":null,"html_url":"https://github.com/pavelmaksimov/marilyn-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pavelmaksimov/marilyn-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavelmaksimov%2Fmarilyn-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavelmaksimov%2Fmarilyn-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavelmaksimov%2Fmarilyn-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavelmaksimov%2Fmarilyn-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pavelmaksimov","download_url":"https://codeload.github.com/pavelmaksimov/marilyn-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavelmaksimov%2Fmarilyn-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29771212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:01:02.180Z","status":"ssl_error","status_checked_at":"2026-02-24T03:59:49.901Z","response_time":75,"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":["api","async","client","marilyn","python"],"created_at":"2026-02-24T04:13:45.436Z","updated_at":"2026-02-24T04:13:46.989Z","avatar_url":"https://github.com/pavelmaksimov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Supported Python Versions](https://img.shields.io/static/v1?label=python\u0026message=\u003e=3.7\u0026color=green)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/vintasoftware/marilyn-api/master/LICENSE)\n[![Downloads](https://pepy.tech/badge/marilyn-api)](https://pepy.tech/project/marilyn-api)\n\u003ca href=\"https://github.com/psf/black\"\u003e\u003cimg alt=\"Code style: black\" src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"\u003e\u003c/a\u003e\n\n\n# Async client for Marilyn API\n\n\n## Installation\n    \n    pip install marilyn-api\n\n## Examples\n\n```python\nfrom marilyn_api import AsyncClient\n\napi_root = \"https://app.mymarilyn.ru\"\nheaders = {\n    \"X-API-Account\": 100500,\n    \"X-API-Token\": \"{auth token}\",\n}\naclient = AsyncClient(api_root, headers=headers)\n\nbody = {\n    \"channel_id\": [],\n    \"start_date\": \"2022-02-01\",\n    \"end_date\": \"2022-02-18\",\n    \"date_grouping\": \"day\",\n    \"grouping\": \"placement\",\n    \"filtering\": [\n        {\n            \"entity\": \"no\",\n            \"entities\": []\n        },\n        {\n            \"entity\": \"project\",\n            \"entities\": [\n                4551\n            ]\n        }\n    ],\n    \"custom_metrics\": [],\n    \"profiles\": [],\n    \"goals\": [],\n    \"with_vat\": False,\n    \"per_page\": 200,\n    \"sorting\": \"date\",\n    \"columns\": [\n        \"date\",\n        \"placement_id\",\n        \"placement_name\",\n        \"campaign_xid\",\n        \"channel_id\",\n        \"impressions\",\n        \"clicks\",\n        \"cpm_fact\",\n        \"reach_total_sum\",\n        \"viral_reach_total_sum\",\n        \"ctr\",\n        \"cost_fact\",\n        \"cpc_fact\",\n        \"orders\",\n        \"model_orders\",\n        \"revenue\",\n        \"revenue_model_orders\"\n    ]\n}\n\nasync for page in aclient.iter_statistics_detailed(body):\n    for item in page[\"items\"]:\n        print(\"RECORD:\", item)\n\n```\n\n## Script examples\n\n```bash\npython Examples/statistics_detailed.py --help\npython Examples/statistics_detailed.py -r https://app.mymarilyn.ru -a 100500 -t MytoKeN12345 -c Examples/detailed-stats-config.json\n```\n\n```bash\npython Examples/project_placements.py.py --help\npython Examples/project_placements.py.py -r https://app.mymarilyn.ru -a 100500 -p 12345 -t MytoKeN12345\n```\n\n## Dependencies\n- aiohttp\n\n## Author\nPavel Maksimov\n\nYou can contact me at\n[Telegram](https://teleg.run/pavel_maksimow)\n\nУдачи тебе, друг! Поставь звездочку ;)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavelmaksimov%2Fmarilyn-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpavelmaksimov%2Fmarilyn-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavelmaksimov%2Fmarilyn-api/lists"}