Spiral gives your agent every tool with one account. Browse the tools →

opencode · E-commerce

How to Use Facebook Marketplace location search in opencode

Find Facebook Marketplace places with names, location labels, page IDs, and coordinates. Use it to choose the right search location before looking for listings, especially when several places share a name.

Prompts to try with Facebook Marketplace location search in opencode

Copy an example into opencode, or ask in your own words.

Use Facebook Marketplace location search for Austin and add a location picker to this project that displays each returned name, subtitle, and city before saving the selected coordinates.

Facebook Marketplace location searchopencode
Try asking
  • Use Facebook Marketplace location search for Springfield and inspect how this project's location resolver distinguishes the returned places using their subtitles and postal codes.

  • Use Facebook Marketplace location search for Dallas, Houston, and San Antonio, then write the returned names, page IDs, and coordinates to a JSON file in this project.

  • Use Facebook Marketplace location search for Phoenix and update this project's location display to handle an empty address array using the returned place label.

  • Use Facebook Marketplace location search for Portland and add the returned candidate coordinates to this project's map so I can select the intended place.

How to set up Facebook Marketplace location search in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Facebook Marketplace location search

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "scrapecreators",
        "model": "scrapecreators/facebook-marketplace-location-search",
        "input": {
          "query": "Austin"
        }
      }'

Then paste one of the prompts above: opencode finds Facebook Marketplace location search on Spiral, shows the price and runs it.

Facebook Marketplace location search providers and prices

Spiral runs Facebook Marketplace location search through ScrapeCreators. Open a card for today's price, with every fee included.

ScrapeCreatorsE-commerce
Facebook Marketplace · Marketplace Location Search
scrapecreators/facebook-marketplace-location-search

What can you do with Facebook Marketplace location search in opencode?

Build a Marketplace location picker that displays place labels alongside coordinates. A coding agent can use returned place IDs and city details to add location selection to your project's search workflow.

Choose a Marketplace search center

Look up Austin and inspect the returned location labels before choosing coordinates for a used-furniture search in Texas.

Resolve ambiguous city names

Look up Springfield and compare the returned subtitles, cities, and postal codes to select the intended place.

Prepare research across several cities

Resolve Dallas, Houston, and San Antonio into separate place records before conducting Marketplace inventory research in each city.

Populate a location picker

Use returned place names and subtitles to let users choose a Marketplace search location, then retain the selected page ID and coordinates.

Check saved search locations

Look up the cities used by a resale business and compare returned place IDs and coordinates with its saved search centers.

Map sourcing markets

Plot returned coordinates for Phoenix, Tucson, and Flagstaff to review proposed Marketplace sourcing locations before researching listings.

Questions about Facebook Marketplace location search in opencode

Can opencode use Facebook Marketplace location search?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Facebook Marketplace location search like any built-in tool.

How much does Facebook Marketplace location search cost in opencode?

Up to $0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need a ScrapeCreators account to use Facebook Marketplace location search in opencode?

No. Spiral runs Facebook Marketplace location search on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

How long does it take to set up Facebook Marketplace location search in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Facebook Marketplace location search runs?

Facebook Marketplace location search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Does location search return Marketplace listings?

It returns places and coordinates for a subsequent Marketplace listing search. The documented response contains location records rather than products or listing descriptions.

Can a place name match the wrong city?

Yes. The documented Austin example includes an Illinois match whose city is Chicago, so check the subtitle and city before selecting coordinates for Austin, Texas.

Does every location include a street address?

The documented Austin, Illinois record has an empty address array despite including coordinates and a postal code. A location result does not necessarily provide a street address.

Is the source an on-demand lookup or a historical location archive?

ScrapeCreators describes its service as retrieving publicly available information on demand. That description supports using it for place lookup, rather than treating it as a dated archive of Facebook locations.

Are the returned coordinates guaranteed to be accurate?

ScrapeCreators explicitly does not guarantee data accuracy or availability. The coordinates identify the returned Facebook place; check the accompanying location label before using them as a search center.

Get started

Start using Facebook Marketplace location search in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options