01Run it
Replace the <placeholders> with your own values, or use the builder below.
p202 click get <id>02What you get
Captured from the real binary, run against a demo store with 30 days of traffic. Switch tabs to see the same run as JSON, the shape scripts and agents parse.
$ p202 click get 2871 aff_campaign_id: 4 aff_campaign_name: Project Tool Pro Annual / US browser_id: 1 browser_name: Mobile Safari c1: product-update-oct c1_id: 12 c2: us c2_id: 1 c3: c3_id: 1 c4: c4_id: 1 city_id: 601 city_name: Trenton click_alp: 0 click_bot: 0 click_cloaking: 0 click_cpc: 0 click_filtered: 0 click_id: 2871 click_id_public: 0 click_in: 1 click_lead: 1 click_out: 1 click_payout: 588 click_reviewed: 0 click_time: 1791237948 country_code: US country_id: 2 country_name: United States device_id: 1 device_name: iPhone device_type: Mobile ip_address: 198.18.10.189 ip_id: 2729 isp_id: 0 isp_name: keyword: keyword_id: 0 landing: landing_page_id: 0 landing_page_nickname: outbound: https://track.example.com/tracking202/redirect/dl.php?t202id=280241962&t202kw=&utm_source=newsletter&utm_medium=email&utm_campaign=pro-q4&utm_content=product-update-oct&c1=product-update-oct&c2=us platform_id: 1 platform_name: iOS ppc_account_id: 5 ppc_account_name: Newsletter ppc_network_name: Owned Media referer: region_id: 23 region_name: New Jersey rotator_id: rule_id: rule_redirect_id: text_ad_id: 0 text_ad_name: user_id: 1
$ p202 click get 2871 --json { "data": { "aff_campaign_id": 4, "aff_campaign_name": "Project Tool Pro Annual / US", "browser_id": 1, "browser_name": "Mobile Safari", "c1": "product-update-oct", "c1_id": 12, "c2": "us", "c2_id": 1, "c3": "", "c3_id": 1, "c4": "", "c4_id": 1, "city_id": 601, "city_name": "Trenton", "click_alp": 0, "click_bot": 0, "click_cloaking": 0, "click_cpc": 0, "click_filtered": 0, "click_id": 2871, "click_id_public": 0, "click_in": 1, "click_lead": 1, "click_out": 1, "click_payout": 588, "click_reviewed": 0, "click_time": 1791237948, "country_code": "US", "country_id": 2, "country_name": "United States", "device_id": 1, "device_name": "iPhone", "device_type": "Mobile", "ip_address": "198.18.10.189", "ip_id": 2729, "isp_id": 0, "isp_name": null, "keyword": null, "keyword_id": 0, "landing": null, "landing_page_id": 0, "landing_page_nickname": null, "outbound": "https://track.example.com/tracking202/redirect/dl.php?t202id=280241962\u0026t202kw=\u0026utm_source=newsletter\u0026utm_medium=email\u0026utm_campaign=pro-q4\u0026utm_content=product-update-oct\u0026c1=product-update-oct\u0026c2=us", "platform_id": 1, "platform_name": "iOS", "ppc_account_id": 5, "ppc_account_name": "Newsletter", "ppc_network_name": "Owned Media", "referer": null, "region_id": 23, "region_name": "New Jersey", "rotator_id": null, "rule_id": null, "rule_redirect_id": null, "text_ad_id": 0, "text_ad_name": null, "user_id": 1 } }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 click getSet flags below; the command updates as you type.
04For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands click get --json. - With
AI_AGENT,CLAUDECODEor another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with ahint. - Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
{
"path": "p202 click get",
"use": "get <id>",
"short": "Get a click by ID",
"runnable": true
}