{"id":19878695,"url":"https://github.com/ironsource/mobile-api-lib-python","last_synced_at":"2026-06-13T14:33:16.480Z","repository":{"id":62461374,"uuid":"539150895","full_name":"ironSource/mobile-api-lib-python","owner":"ironSource","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-23T18:55:46.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-11T23:13:38.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ironSource.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-20T19:06:46.000Z","updated_at":"2023-04-18T13:10:02.000Z","dependencies_parsed_at":"2025-01-11T17:45:59.978Z","dependency_job_id":"be75b77e-77fc-42fb-be2f-9c39b5c486ea","html_url":"https://github.com/ironSource/mobile-api-lib-python","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.125,"last_synced_commit":"498e60eb604d962c0be2580bd4bc0d5172c4a5b2"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironSource%2Fmobile-api-lib-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironSource%2Fmobile-api-lib-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironSource%2Fmobile-api-lib-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironSource%2Fmobile-api-lib-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ironSource","download_url":"https://codeload.github.com/ironSource/mobile-api-lib-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241309087,"owners_count":19941722,"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":[],"created_at":"2024-11-12T17:06:18.219Z","updated_at":"2026-06-13T14:33:16.435Z","avatar_url":"https://github.com/ironSource.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# ironsource_api_python\n![Test And Lint](https://github.com/ironSource/mobile-api-lib-python/actions/workflows/deploy.yml/badge.svg)\n\n## Installation\n\nThis module is installed via pip:\n\n```\npip install ironsrc_mobile_api\n```\n\n## Simple Example:\n```python\nimport os\nfrom ironsource_api.ironsource_api import IronSourceAPI\nfrom ironsource_api.promote_api import Metrics, Breakdowns\n\nironsrc_api = IronSourceAPI()\n\nironsrc_api.set_credentials(API_USER, API_TOKEN,API_SECRET)\n\n#Get Monetization Data\nres = ironsrc_api.monetize_api().get_monetization_data(start_date='2020-01-01', end_date='2020-01-01')\n\n\n#Get Advertiser Statistics\nbytes_io = ironsrc_api.promote_api().get_advertiser_statistics('2020-10-03','2020-10-04',\n        [Metrics.Impressions,Metrics.Clicks,Metrics.Installs],\n        [Breakdowns.Application,Breakdowns.Day],response_format='csv')\n\nline = bytes_io_r.readline()\n\nwhile len(line) \u003e 0:\n    print(line)\n    line = bytes_io_r.readline()\n\nbytes_io_r.close()\n\n\n\n```\n####  Authentication\nBefore starting to use the API make sure to get the credentials from ironSource dashboard.\n![Account Cred](https://developers.ironsrc.com/wp-content/uploads/2019/01/1-1.png)\n\nAnd set the Access Key, Secret Key and Refresh Token: \n\u003ca id=\"ironsource_api.IronSourceAPI.set_credentials\"\u003e\u003c/a\u003e\n\n#### set\\_credentials\n\n```python\ndef set_credentials(user: str, token: str, secret: str)\n```\n\nsets credentials for the APIs\n\n\n\u003cbr\u003e\n## Modules\n\n* [IronSourceAPI](#ironsource_api.IronSourceAPI)\n    * [monetize\\_api](docs/monetize_api.md)\n    * [promote\\_api](docs/promote_api.md)\n\n\n\u003cbr\u003e\n\n## Contributing:\nPlease follow contribution [guide](/CONTRIBUTING.md)\n\n## Dependencies\n* [requests](https://github.com/psf/requests)\n* [httpx](https://github.com/encode/httpx)\n* [pydash](https://github.com/dgilland/pydash)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironsource%2Fmobile-api-lib-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fironsource%2Fmobile-api-lib-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironsource%2Fmobile-api-lib-python/lists"}