{"id":21089182,"url":"https://github.com/rrmn/rgtmx","last_synced_at":"2026-03-11T15:34:26.467Z","repository":{"id":46113767,"uuid":"425084841","full_name":"rrmn/rgtmx","owner":"rrmn","description":"An R client for GTmetrix","archived":false,"fork":false,"pushed_at":"2022-04-23T10:40:34.000Z","size":74,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-09T18:49:09.595Z","etag":null,"topics":["gtmetrix","pagespeed","r"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rrmn.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":"2021-11-05T21:08:57.000Z","updated_at":"2023-10-29T22:31:11.000Z","dependencies_parsed_at":"2022-09-22T14:41:16.792Z","dependency_job_id":null,"html_url":"https://github.com/rrmn/rgtmx","commit_stats":null,"previous_names":["RomanAbashin/rgtmx","romanabashin/rgtmx"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rrmn/rgtmx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrmn%2Frgtmx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrmn%2Frgtmx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrmn%2Frgtmx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrmn%2Frgtmx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rrmn","download_url":"https://codeload.github.com/rrmn/rgtmx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrmn%2Frgtmx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27674337,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["gtmetrix","pagespeed","r"],"created_at":"2024-11-19T21:23:55.917Z","updated_at":"2025-12-12T02:16:20.040Z","avatar_url":"https://github.com/rrmn.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rgtmx\n\n  \u003c!-- badges: start --\u003e\n  [![R-CMD-check](https://github.com/RomanAbashin/rgtmx/workflows/R-CMD-check/badge.svg)](https://github.com/RomanAbashin/rgtmx/actions)\n  \u003c!-- badges: end --\u003e\n\n\n## Description\n\nAn R client for GTmetrix\n\n## Context\n\nThis is a convenience wrapper for the GTmetrix API 2.0.\n\nI whipped up a small library to talk to GTmetrix via R. There's some basic sanity checking baked in, but obviously this is still work in progress and there are (potentially critical) bugs. Feel free to check it out, though. If you need help, take a look at the manuals. A good point to start is `?start_test`. \n\nIf you have feedback and/or points for improvement, feel free to open an issue / PR here on Github. I would love to hear from you!\n\nRoman\n\n## Usage\n\n### Installation\n\nCRAN:\n\n```r\n# Install and load library.\ninstall.packages(\"rgtmx\")\nlibrary(rgtmx)\n```\n\nDevelopment version:\n\n```r\n# Install and load library.\ndevtools::install_github(\"RomanAbashin/rgtmx\")\nlibrary(rgtmx)\n```\n### Start test (and get results)\n\n#### Minimal example #1\n\n```r\n# Returns the final report (after checking for completion roughly every 3 seconds). \nresult \u003c- start_test(\"google.com\", \"[API_KEY]\")\n```\nThis will start a test and wait for the report to be generated, returning the result as data.frame. Optionally, you can just simply return the test ID and other meta data via the parameter `wait_for_completion = FALSE`.\n\n#### Minimal example #2\n\n```r\n# Returns just the test ID and some meta data. Does not wait for report completion.\nresult \u003c- start_test(\"google.com\", \"[API_KEY]\", wait_for_completion = FALSE)\n```\n\n#### Optional parameters\n\nOther optional parameters are: `location`,\n`browser`,\n`report`,\n`retention`,\n`httpauth_username`,\n`httpauth_password`,\n`adblock`,\n`cookies`,\n`video`,\n`stop_onload`,\n`throttle`,\n`allow_url`,\n`block_url`,\n`dns`,\n`simulate_device`,\n`user_agent`,\n`browser_width`,\n`browser_height`,\n`browser_dppx`,\n`browser_rotate`.\n\nPlease consult the manual via `?start_test` or the GTmetrix API documentation for further information.\n\n### Locations\n```r\n# Show available locations\nshow_available_locations(\"[API_KEY]\")\n# Get location details\nget_location_details(location_id = 1, \"[API_KEY]\")\n```\n### Browsers\n```r\n# Show available browsers\nshow_available_browsers(\"[API_KEY]\")\n# Get browser details\nget_browser_details(browser_id = 3, [API_KEY]\")\n```\n### Tests / Reports\n```r\n# Get specific test\nget_test(\"[TEST_ID]\", \"[API_KEY]\")\n# Get specific report\nget_report(\"[REPORT_ID]\", \"[API_KEY]\")\n# Get all tests\nget_all_tests(\"[API_KEY]\")\n```\n### Account\n```r\n# Get account status and available credits\nget_account_status(\"[API_KEY]\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrmn%2Frgtmx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frrmn%2Frgtmx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrmn%2Frgtmx/lists"}