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: 1 aff_campaign_name: Spring Collection / US browser_id: 1 browser_name: Mobile Safari c1: video-15s c1_id: 19 c2: us c2_id: 2 c3: c3_id: 1 c4: c4_id: 1 city_id: 356 city_name: Hayward click_alp: 0 click_bot: 0 click_cloaking: 0 click_cpc: 0.42 click_filtered: 0 click_id: 2871 click_id_public: 0 click_in: 1 click_lead: 0 click_out: 1 click_payout: 86 click_reviewed: 0 click_time: 1792340193 country_code: US country_id: 2 country_name: United States device_id: 1 device_name: iPhone device_type: Mobile ip_address: 198.51.100.189 ip_id: 2729 isp_id: 0 isp_name: keyword: spring outfits keyword_id: 3 landing: landing_page_id: 0 landing_page_nickname: outbound: https://track.example.com/tracking202/redirect/dl.php?t202id=177036074&t202kw=&utm_source=social&utm_medium=paid_social&utm_campaign=spring-q4&utm_content=video-15s&c1=video-15s&c2=us&t202kw=spring+outfits platform_id: 1 platform_name: iOS ppc_account_id: 3 ppc_account_name: Social Ads - Prospecting ppc_network_name: Social referer: region_id: 15 region_name: California 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": 1, "aff_campaign_name": "Spring Collection / US", "browser_id": 1, "browser_name": "Mobile Safari", "c1": "video-15s", "c1_id": 19, "c2": "us", "c2_id": 2, "c3": "", "c3_id": 1, "c4": "", "c4_id": 1, "city_id": 356, "city_name": "Hayward", "click_alp": 0, "click_bot": 0, "click_cloaking": 0, "click_cpc": 0.42, "click_filtered": 0, "click_id": 2871, "click_id_public": 0, "click_in": 1, "click_lead": 0, "click_out": 1, "click_payout": 86, "click_reviewed": 0, "click_time": 1792340193, "country_code": "US", "country_id": 2, "country_name": "United States", "device_id": 1, "device_name": "iPhone", "device_type": "Mobile", "ip_address": "198.51.100.189", "ip_id": 2729, "isp_id": 0, "isp_name": null, "keyword": "spring outfits", "keyword_id": 3, "landing": null, "landing_page_id": 0, "landing_page_nickname": null, "outbound": "https://track.example.com/tracking202/redirect/dl.php?t202id=177036074\u0026t202kw=\u0026utm_source=social\u0026utm_medium=paid_social\u0026utm_campaign=spring-q4\u0026utm_content=video-15s\u0026c1=video-15s\u0026c2=us\u0026t202kw=spring+outfits", "platform_id": 1, "platform_name": "iOS", "ppc_account_id": 3, "ppc_account_name": "Social Ads - Prospecting", "ppc_network_name": "Social", "referer": null, "region_id": 15, "region_name": "California", "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, 6 no Pro licence on the install.
{
"path": "p202 click get",
"use": "get <id>",
"short": "Get a click by ID",
"runnable": true
}