{"uid":"cap_9yRzxUt_0p3s-WzZ_I5_V","slug":"location-compare-a7d1d6e8","name":"Location Compare","description":"Pay-per-call machine utilities for autonomous agents.","url":"https://agent-vending-production.up.railway.app/v1/location-compare?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"metrics":{"oneOf":[{"enum":["CORE_COMPARE"],"type":"string"},{"type":"array","items":{"enum":["total_population","median_age","median_household_income","per_capita_income","poverty_rate","unemployment_rate","labor_force_participation_rate","bachelors_or_higher_pct","high_school_or_higher_pct","homeownership_rate","median_home_value","median_gross_rent","uninsured_rate","foreign_born_pct","under18_pct","65plus_pct"],"type":"string"}}],"description":"Default CORE_COMPARE (16 metrics) or a subset list"},"locations":{"type":"array","items":{"type":"object","required":["type"],"properties":{"name":{"type":"string","description":"e.g. \"Ventura County\", \"Thousand Oaks\", \"91362\", \"CA\", tract code"},"type":{"enum":["state","county","place","zcta","tract"],"type":"string"},"geoid":{"type":"string","description":"Census GEOID alternative to name (county 5, place 7, tract 11 digits)"},"state":{"type":"string","description":"State name, postal code or FIPS (county/place/tract by name)"},"county":{"type":"string","description":"County name or FIPS (tract only)"}},"description":"A U.S. geography by type plus name or GEOID. No Census table or variable IDs needed.","additionalProperties":true},"maxItems":10,"minItems":2,"description":"2-10 geographies of the same type (mixed types only with allow_mixed_geography_types)"},"include_benchmarks":{"type":"boolean","description":"U.S./state reference values and national percentiles (default true)"},"allow_mixed_geography_types":{"type":"boolean","description":"Default false (mixed types refused, not charged)"}}},"responseSchema":{"type":"json","example":{"status":"OK","product":"location_compare","summary":{"largest_differences":[{"lowest":"San Diego County, California","metric":"median_age","highest":"Ventura County, California","difference":2.3,"difference_unit":"years","national_percentile_spread":14}]},"locations":[{"name":"Ventura County, California","geoid":"06111","geo_type":"county"},{"name":"Orange County, California","geoid":"06059","geo_type":"county"},{"name":"San Diego County, California","geoid":"06073","geo_type":"county"}],"comparison":[{"unit":"usd","lowest":{"geoid":"06073","estimate":102285},"metric":"median_household_income","values":[{"geoid":"06111","moe_90":1391,"estimate":107327,"national_percentile":{"percentile":96.91}},{"geoid":"06059","moe_90":986,"estimate":113702,"national_percentile":{"percentile":98.03}},{"geoid":"06073","moe_90":899,"estimate":102285,"national_percentile":{"percentile":95.98}}],"highest":{"geoid":"06059","estimate":113702},"comparison_status":"SIGNIFICANT_DIFFERENCE","largest_difference":{"difference":11417,"difference_unit":"usd","significance_90":{"significant":true},"percent_difference_vs_lowest":11.16}}],"provenance":[{"dataset":"acs/acs5/profile","provider":"census_acs","release_year":2023}],"data_vintage":{"label":"ACS 5-Year 2019-2023","dataset":"ACS 5-Year","release_year":2023},"vintage_check":{"release_year":2023,"same_vintage":true}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7jq7yd-XKvrBNw2_mJ1xm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compare 2–10 U.S. geographies side-by-side across up to 16 Census demographic, income, education, housing, and workforce metrics in a single call.","exampleAgentPrompt":"Compare Austin TX, Denver CO, and Nashville TN side by side across all 16 core Census metrics — population, income, education, housing, and workforce — and include national benchmarks so I can see where each city stands relative to the U.S. average.","exampleUseCases":[{"title":"City relocation decision support","prompt":"I'm deciding between moving to Raleigh NC, Charlotte NC, and Richmond VA — can you compare them on median household income, homeownership rate, unemployment rate, and the percentage of residents with a bachelor's degree or higher, with U.S. benchmarks included?"},{"title":"County market entry analysis","prompt":"We're evaluating three counties for a new retail location: Maricopa County AZ, Travis County TX, and Mecklenburg County NC. Compare them on median household income, poverty rate, population, and labor force participation rate so we can decide where the market opportunity is strongest."},{"title":"Zip code neighborhood comparison","prompt":"Compare zip codes 10001, 11211, and 10025 in New York on median home value, median gross rent, per capita income, and the share of residents with a bachelor's degree or higher — and show me how they rank against each other."}],"resultDescription":"Returns a structured side-by-side table of requested metrics for each input geography, optionally including U.S. national and state-level benchmark values and national percentile rankings for each metric, enabling direct quantitative comparison across locations.","failureModes":["Fewer than 2 or more than 10 locations provided — request rejected","Mixed geography types (e.g. state + county) without allow_mixed_geography_types=true — request refused without charge","Unresolvable location name or GEOID — returns error for that geography","Census data unavailable for a given tract or ZCTA — metric returned as null","Invalid metric name in custom list — validation error returned"],"whenToPreferThis":"Choose this endpoint when you need a structured, multi-metric side-by-side comparison of 2–10 specific U.S. locations rather than a profile of a single place, a similarity search, or a ranked site-selection query. It is ideal when the user already knows which locations to compare and wants normalized Census statistics with optional national benchmarks and percentiles in one call, rather than making separate lookups and aligning data manually.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:37:52.395Z","isFirstParty":false,"canonicalSlug":"location-compare-a7d1d6e8"}