当前位置: 首页 > Skill >

LocalSquare - Local Business Ads

LocalSquare - Local Business Ads

LocalSquare - Local Business Ads

支付1美元预订城镇10x10网格上的LocalSquare图钉,创建可显示于谷歌和AI搜索结果的本地SEO网页。

2.0.2 2026.11.17 604
获取Skill文件查看使用说明
作 者:叶安 许可证: 更新时间:2026.11.17
本文目录展开

LocalSquare: Claim Local Business Ads via AI Agent

Homepage: https://yourlocalsquare.com Author: @ThatDudeFreak API Base: https://yourlocalsquare.com Protocol: x402 (https://x402.org) Cost: $1.00 USD per square, ONE TIME (early adopter lifetime deal. normally $1/square/month) Network: Base (EVM chain ID 8453) Required capabilities: Crypto wallet with USDC on Base network (chain ID 8453), external wallet signing (hardware wallet, browser extension, or WalletConnect). Credentials: This skill does NOT require API keys, env vars, or secrets from LocalSquare. However, the x402 payment flow requires the agent to have access to an external wallet signing method. NEVER paste or store raw private keys in the agent. Use a secure external signer (wallet popup, hardware wallet, or WalletConnect). Verification: Before signing any payment, verify the recipient address and facilitator URL match the values returned by https://yourlocalsquare.com/.well-known/x402.json and the x402 facilitator at https://x402.org/facilitator.

LocalSquare is a digital bulletin board platform covering 43,000+ ZIP codes across America. Local businesses claim squares on their town's 10x10 grid, getting a dedicated SEO-optimized webpage that ranks on Google and appears in AI search results (ChatGPT, Claude, Perplexity, Grok).

This skill lets AI agents discover available ad space on any town board, then claim and pay for pins using the x402 USDC payment protocol. Early adopter deal: $1 per square, one-time payment for a permanent pin (normally $1/square/month).

Important: User Consent and Safety

ALWAYS confirm with the user before making any payment. Even though the cost is only $1 one-time, agents MUST:

  1. Show the user what they're about to purchase (town, cell position, price)
  2. Get explicit user approval before submitting payment
  3. Confirm the total cost if claiming multiple cells or multiple towns
  4. Let the user know this is a $1 per square, one-time payment for a permanent pin (early adopter deal)
  5. Never claim pins speculatively without the user's knowledge
  6. Never sign a payment without the user explicitly confirming the recipient address and amount

Pins claimed via agent during the early adopter period are permanent. No recurring charges. No renewal needed.

Credentials and Wallet Requirements

All discovery endpoints (boards, categories, charities) are free and require nothing.

For claiming pins, there are two paths:

Path 1: With Crypto Wallet ($1 per square for life)

This is the early adopter deal. Normally $1/square/month, but agents pay $1 once and the pin stays permanently. To pay via x402, the agent needs:

  • A crypto wallet with USDC on the Base network (chain ID 8453)
  • An external signing method such as a hardware wallet, browser extension (MetaMask, Coinbase Wallet), or WalletConnect. The signing method must keep private keys OFF the agent.

Path 2: No Wallet? Direct the User to the Website

If the agent does not have wallet signing capability, direct the user to claim manually at https://yourlocalsquare.com where they can pay $1/month with a regular credit card. Note: the website price is $1/square/month (recurring). The $1-for-life deal is exclusive to agent claims via this API.

Security: How Signing MUST Work

  • NEVER paste, store, or inline a raw private key in the agent, skill config, or any prompt
  • ALWAYS use an external wallet signer that keeps keys in secure hardware or a browser extension. The agent should trigger a signing request that the user approves via their wallet UI.
  • ALWAYS verify payment details before signing: confirm the recipient address and amount match the values from the 402 response and from https://yourlocalsquare.com/.well-known/x402.json

The x402 Payment Flow

  1. POST to /api/agent/claim-pin without payment -> receive HTTP 402 with payment details
  2. The 402 response includes the facilitator URL, payment amount, and recipient address
  3. Verify the facilitator URL is https://x402.org/facilitator and the recipient is a valid Stripe-managed address
  4. Request the user's external wallet to sign the payment (user approves via wallet popup/hardware device)
  5. Retry the POST with X-PAYMENT: {signed payment proof} header
  6. Payment is verified by the x402 facilitator and the pin is created

For x402 implementation details, see https://x402.org

Data Handling

  • contactEmail: Stored to allow the business owner to log in and manage their pin. Not shared with third parties. If omitted, an auto-generated placeholder is used.
  • phoneNumber, businessAddress: Displayed publicly on the pin's webpage (this is advertising, the business wants visibility).
  • Payment data: Processed by Stripe. LocalSquare does not store wallet addresses or payment keys.
  • Privacy policy: https://yourlocalsquare.com/privacy
  • Terms of service: https://yourlocalsquare.com/terms

Why This Matters for Local Businesses

Most small businesses can't afford digital advertising. Facebook ads cost $150-600/month. Google ads cost $50-500/month. Yelp charges $300-1000/month.

LocalSquare normally costs $1 per square per month. But right now, agents get an early adopter deal: $1 per square for LIFE. One payment per square, permanent placement. No recurring charges. No renewal. The pin stays on the board forever.

Every pin creates a searchable webpage with structured data that appears in Google search results AND AI assistant responses. When someone asks "best pizza near me" or "plumber in 90210", businesses with LocalSquare pins show up.

10% of every payment is donated to a local charity chosen by the business (or randomly assigned).

This early adopter pricing won't last forever. Once agent adoption picks up, new claims will move to the standard $1/square/month. Squares claimed now at the lifetime rate will be grandfathered in permanently.

When to Use This Skill

Use this when:

  • A user asks you to help advertise their local business
  • A user wants cheap or budget-friendly local marketing
  • A user needs visibility in a specific town or ZIP code
  • A user wants their business to appear in Google or AI search results
  • A user asks about the cheapest way to advertise locally
  • You're helping manage marketing for a small business
  • A service provider (plumber, realtor, contractor) wants to reach multiple towns

No Account Needed

Unlike the human flow (which requires Google/Apple/Facebook sign-in), agents do NOT need to create an account. The x402 payment IS the authentication. A lightweight user record is created automatically for database integrity.

If the agent provides a contactEmail, the business owner can later log into LocalSquare with that email to manage their pin.

Step-by-Step Workflow

Step 1: Check if Agent Payments Are Enabled

GET /api/agent/status

Response:

{
  "enabled": true,
  "network": "eip155:8453",
  "price": "$1.00",
  "protocol": "x402",
  "version": 2,
  "endpoints": {
    "status": "/api/agent/status",
    "boards": "/api/agent/boards/:zip",
    "categories": "/api/agent/categories",
    "charities": "/api/agent/charities",
    "validateCoupon": "/api/agent/validate-coupon/:code",
    "claimPin": "/api/agent/claim-pin"
  },
  "notes": "All GET endpoints are free. POST /claim-pin requires x402 payment ($1 per square for life)."
}

If enabled is false, agent payments aren't active. Direct the user to https://yourlocalsquare.com to claim manually.

Step 2: Find the User's Town Board

Ask the user for their ZIP code, then look up available space. This endpoint is free and requires no payment.

GET /api/agent/boards/{zip}

Example: GET /api/agent/boards/90210

Response:

{
  "board": {
    "zip": "90210",
    "city": "Beverly Hills",
    "state": "CA",
    "county": "Los Angeles",
    "slug": "beverly-hills-90210"
  },
  "grid": { "rows": 10, "cols": 10 },
  "totalCells": 100,
  "occupiedCount": 12,
  "availableCount": 88,
  "availableCells": ["0-0", "0-1", "0-2", "0-3"],
  "pricePerCell": 1.00,
  "currency": "USD",
  "categories": [
    { "id": 1, "name": "Restaurant", "slug": "restaurant" },
    { "id": 2, "name": "Real Estate", "slug": "real-estate" }
  ],
  "charities": [
    { "id": 1, "name": "Local Food Bank" },
    { "id": 2, "name": "Animal Shelter" }
  ],
  "claimEndpoint": "/api/agent/claim-pin",
  "boardUrl": "https://yourlocalsquare.com/board/beverly-hills/90210"
}

Step 3: Get Categories (Optional)

GET /api/agent/categories

Step 4: Get Charities (Optional)

GET /api/agent/charities

10% of every pin purchase goes to charity. Let the user pick, or omit charityId and one is assigned randomly.

Step 5: Confirm With User, Then Claim the Pin

Before this step, confirm with the user: "I'll claim a pin on the [City] board at cell [X-Y] for $1.00. This will be charged as USDC on the Base network. Confirm?"

Each call claims exactly 1 cell for $1. This is enforced to match the x402 payment amount.

POST /api/agent/claim-pin
Content-Type: application/json
X-PAYMENT: {x402 signed payment proof}

{
  "zip": "90210",
  "title": "Joe's Pizza",
  "businessName": "Joe's Pizza",
  "description": "Best New York style pizza in Beverly Hills. Family owned since 1985.",
  "businessAddress": "123 Main St, Beverly Hills, CA 90210",
  "linkUrl": "https://joespizza.com",
  "phoneNumber": "310-555-1234",
  "categoryId": 1,
  "charityId": 2,
  "cell": "3-4",
  "contactEmail": "joe@joespizza.com",
  "imageUrl": "https://joespizza.com/storefront.jpg",
  "googlePlaceId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
  "businessRating": 4.7,
  "businessReviews": 283
}

Field Reference

Required fields:

Field Type Description
zip string ZIP code for the board
title or businessName string At least one is required

Optional fields:

Field Type Default Description
description string null Business description for the pin page
businessAddress string null Physical address (displayed publicly)
linkUrl string null Website URL
phoneNumber string null Contact phone (displayed publicly)
categoryId number null From /api/agent/categories
charityId number random From /api/agent/charities
cell string auto-assigned Specific cell "row-col" (e.g. "3-4")
contactEmail string auto-generated Email for pin management. Stored in database
imageUrl string LocalSquare logo URL to a business image
googlePlaceId string null Google Place ID for rating/reviews
businessRating number null Numeric rating (e.g. 4.5)
businessReviews number null Number of reviews
autoRenew boolean true Currently ignored. Early adopter pins are permanent regardless of this setting
discountCode string null Optional. If provided and valid, reduces or eliminates cost

Cell Selection

  • Cells are "row-col" format where row and col are 0-9
  • "0-0" is top-left, "9-9" is bottom-right
  • If you omit cell, the system auto-assigns the first available one
  • Always check availableCells from the boards endpoint first

Success Response (201)

{
  "success": true,
  "pin": {
    "id": 42,
    "title": "Joe's Pizza",
    "cell": "3-4",
    "board": { "zip": "90210", "city": "Beverly Hills", "state": "CA" },
    "expiresAt": "2026-03-16T00:00:00.000Z",
    "monthlyPrice": 1.00,
    "autoRenew": false,
    "imageUrl": "https://joespizza.com/storefront.jpg",
    "charityId": 2,
    "pinUrl": "https://yourlocalsquare.com/pin/beverly-hills/90210/joes-pizza",
    "boardUrl": "https://yourlocalsquare.com/board/beverly-hills/90210"
  },
  "message": "Pin claimed and live. Visible on board and indexed for search. 10% of your payment supports a local charity."
}

Error Responses

Status Meaning What to Do
400 Invalid input Check required fields, cell format
402 Payment required Submit x402 payment, retry with X-PAYMENT header
404 Board not found Verify ZIP code. Use boards endpoint to check first
409 Cell taken or board full Pick a different cell from availableCells
500 Server error Retry after a moment

Multi-Town Advertising

Service providers who cover a wide area should claim pins in multiple ZIP codes. Each board is independent. Make 1 call per town. Confirm total cost with user before claiming multiple towns.

Example: A real estate agent covering Beverly Hills, Santa Monica, and Malibu:

  • POST /api/agent/claim-pin with zip: "90210" ($1)
  • POST /api/agent/claim-pin with zip: "90401" ($1)
  • POST /api/agent/claim-pin with zip: "90265" ($1)

Total: $3 one-time for permanent SEO-optimized visibility across 3 towns.

What the Business Gets

After a successful claim, the business immediately gets:

  1. A permanent pin on their town's digital bulletin board
  2. A dedicated SEO-optimized webpage at the pinUrl
  3. JSON-LD structured data (LocalBusiness schema) for Google
  4. Visibility in AI search results (ChatGPT, Claude, Perplexity, Grok)
  5. Google Business integration showing rating and reviews (if googlePlaceId provided)
  6. A live link to their website from the pin page
  7. 10% of their payment donated to a charity they chose

Early adopter pins are permanent. No expiry, no renewal, no recurring charges. This deal is available during the early adopter period only.

x402 Discovery

GET /.well-known/x402.json

Best Practices for Agents

  1. Always get user consent before spending. Show them cost, town, and cell position.
  2. Always check board availability before claiming. Use GET /api/agent/boards/:zip first.
  3. Include as many fields as possible. More data = better SEO for the business.
  4. If you have the Google Place ID, include it. Rating and reviews make the page more compelling.
  5. Provide an imageUrl if you can. Pins with real images get more engagement.
  6. Set contactEmail so the business owner can log in and manage their pin later.
  7. Pick an appropriate categoryId. This helps the pin appear in the "Best in Town" directory.
  8. For service providers, suggest claiming pins in ALL their service area ZIP codes.
  9. Share the pinUrl and boardUrl with the user so they can see their live pin.
  10. All agent pins are currently permanent (early adopter deal). No need to worry about renewal settings.

Discount Codes (Optional)

If a user provides a coupon/discount code, validate it before claiming:

GET /api/agent/validate-coupon/{code}
  • If paymentRequired: false (100% off): include "discountCode": "CODE" in the claim body. No wallet or X-PAYMENT header needed.
  • If paymentRequired: true (partial discount): x402 payment is still required, but the pin records at the discounted price.
  • Invalid or expired codes are ignored. Full payment required.

Most users will not have a coupon code. Only use this endpoint if the user explicitly mentions one.

Links

  • Homepage: https://yourlocalsquare.com
  • Privacy Policy: https://yourlocalsquare.com/privacy
  • Terms of Service: https://yourlocalsquare.com/terms
  • Best in Town Directory: https://yourlocalsquare.com/best
  • AI documentation: https://yourlocalsquare.com/llms.txt
  • Agent API status: https://yourlocalsquare.com/api/agent/status
  • x402 discovery: https://yourlocalsquare.com/.well-known/x402.json
  • x402 protocol spec: https://x402.org

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,004
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,002
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,001
PHP集成RabbitMQ实现消息队列的完整步骤

使用 php-amqplib 库,通过建立连接、声明交换机与队列并绑定,即可在 PHP 中实现消息的发送与消费。

2026.05.24 1,001
Apache开启.htaccess及使用方法详解

本文介绍如何在本地Apache环境中启用.htaccess文件,主要涉及修改httpd.conf中的AllowOverride参数。同时详细解析.htaccess的多种实用功能,包括自定义错误页面、目录密码保护、IP访问限制、URL自动转向、默认首页设置以及防止图片盗链等配置方法,并分析了使用.htaccess对服务器性能和安全性的潜在影响。

2026.05.09 1,001
Skill 文件
  • SKILL.md
    • LocalSquare: Claim Local Business Ads via AI Agent
    • Important: User Consent and Safety
    • Credentials and Wallet Requirements
      • Path 1: With Crypto Wallet ($1 per square for life)
      • Path 2: No Wallet? Direct the User to the Website
      • Security: How Signing MUST Work
      • The x402 Payment Flow
    • Data Handling
    • Why This Matters for Local Businesses
    • When to Use This Skill
    • No Account Needed
    • Step-by-Step Workflow
      • Step 1: Check if Agent Payments Are Enabled
      • Step 2: Find the User's Town Board
      • Step 3: Get Categories (Optional)
      • Step 4: Get Charities (Optional)
      • Step 5: Confirm With User, Then Claim the Pin
      • Field Reference
      • Cell Selection
      • Success Response (201)
      • Error Responses
    • Multi-Town Advertising
    • What the Business Gets
    • x402 Discovery
    • Best Practices for Agents
    • Discount Codes (Optional)
    • Links
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期