{"id":38839076,"url":"https://github.com/kyhau/phpipam-api-helper","last_synced_at":"2026-01-17T13:58:54.231Z","repository":{"id":37099737,"uuid":"298791766","full_name":"kyhau/phpipam-api-helper","owner":"kyhau","description":"A simple phpIPAM API helper script finding possible subnets for an IP address.","archived":false,"fork":false,"pushed_at":"2026-01-11T21:01:04.000Z","size":56,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-12T00:53:18.512Z","etag":null,"topics":["hacktoberfest","ipam","phpipam"],"latest_commit_sha":null,"homepage":"","language":"Python","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/kyhau.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-26T10:38:02.000Z","updated_at":"2026-01-11T21:01:06.000Z","dependencies_parsed_at":"2022-06-24T11:54:16.573Z","dependency_job_id":"38aa8014-6b48-4385-ae16-12169e2c96e9","html_url":"https://github.com/kyhau/phpipam-api-helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kyhau/phpipam-api-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyhau%2Fphpipam-api-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyhau%2Fphpipam-api-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyhau%2Fphpipam-api-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyhau%2Fphpipam-api-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyhau","download_url":"https://codeload.github.com/kyhau/phpipam-api-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyhau%2Fphpipam-api-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":["hacktoberfest","ipam","phpipam"],"created_at":"2026-01-17T13:58:53.469Z","updated_at":"2026-01-17T13:58:54.225Z","avatar_url":"https://github.com/kyhau.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpipam_api_helper\n\nA simple phpIPAM API helper script for finding possible subnets of the given IP address.\n\n## Usage\n\n1. Create `~/.ipam/token.json`\n    ```\n    {\n      \"ApiPath\": \"your-phpipam-api-url\",\n      \"AppToken\": \"your-api-token\"\n    }\n    ```\n\n2. Install requirements\n    ```\n    # Optional: create and activate virtualenv\n    virtualenv env\n    . env/bin/activate\n\n    pip install -r requirements.txt\n    ```\n\n3. To find possible subnets of an IP address\n    ```\n    python phpipam_api_helper.py --ip \u003cip_address\u003e\n    ```\n    When running the script the first time, the script makes API request to the phpIPAM to retrieve info of all subnets, then save the data to `~/.ipam/data.json`. So when making subsequent calls, the scripts use the data in this local file instead of making API calls again.\n\n4. To enforce making phpIPAM API calls instead of the local copy of IPAM data\n    ```\n    python phpipam_api_helper.py --ip \u003cip_address\u003e --refresh\n    ```\n\n## Notes\n1. To create App ID and token, see https://phpipam.net/api/api_curl_example/\n2. Test access:\n    ```\n    curl -X GET https://\u003curl\u003e/api/\u003cappname\u003e/addresses/tags/ -i --header 'token: \u003capp-token\u003e' --insecure\n    ```\n3. `url_rewrite` is required for API to work. See https://phpipam.net/api-documentation/\n4. See https://github.com/phpipam/phpipam/issues/2624\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyhau%2Fphpipam-api-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyhau%2Fphpipam-api-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyhau%2Fphpipam-api-helper/lists"}