Developers

Agency API

A small JSON API for agencies that manage local businesses’ listings on Free Local Yellow Pages: search the directory, add and update your clients’ listings, and pull their customer requests into your own tools.

Version 1 · base URL https://freelocalyellowpages.com/api/v1 · free while we’re in beta, pricing coming soon.

Authentication

Create a key in your agency dashboard (your agency account must be approved first). Keys look like flyp_AbCd1234_… and are shown once — we only store a fingerprint. Send the key on every request:

curl https://freelocalyellowpages.com/api/v1/me \
  -H "Authorization: Bearer flyp_AbCd1234_your-secret-part"

An X-Api-Key: <key> header works too (handy if a proxy strips Authorization). Keep keys on your server: never put them in a web page or mobile app. There are no cookies or sessions, and we don’t send CORS headers, so browsers can’t call the API directly. Revoke a key at any time; it stops working immediately. Removing someone from your team revokes the keys they created.

Limits

The free trial allows 1,000 requests a day per agency, 60 a minute per key, and 25 client listings. Need more? Ask us.

  • Every authenticated request is counted (including ones that return an error). Requests refused for going over a limit are not. The day resets at midnight UTC. See your history under Usage.
  • Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (per-minute, per key), and X-Quota-Limit, X-Quota-Remaining and X-Quota-Reset (daily, per agency). Resets are Unix timestamps.
  • Over a limit you get 429 with a Retry-After header (seconds). Back off and retry after that.
  • No bulk export: search pages hold at most 50 results and stop at page 20. Narrow your search instead of paging further.

Errors

Errors always have the same shape, with a stable code and a message you can show people:

{"error": {"code": "validation_failed", "message": "Some fields need fixing.", "fields": {"phone": "Please enter a 10-digit U.S. phone number, like (405) 555-0123."}}}
StatusCodes
400missing_query, invalid_paging, per_page_too_large, page_limit, unknown_category, invalid_location, invalid_json, empty_body
401missing_key, invalid_key, revoked_key
403agency_pending, agency_suspended, no_member, email_unconfirmed, leads_not_approved
404not_found — also for listings you don’t manage, so ids can’t be probed
405method_not_allowed (see the Allow header)
409possible_duplicate, listing_unclaimed, client_limit, recently_declined
422validation_failed, business_closed
429rate_limited, quota_exceeded, google_check_limit, request_limit

Attribution you must show

Some listing data comes from open datasets with conditions. Responses that return listings include an attribution object listing each source, its licence, the notice to show and which records it applies to:

"attribution": {
  "required": true,
  "notice": "Show each listed source's attribution wherever you display these records. ...",
  "sources": [{"code": "osm", "name": "OpenStreetMap", "license": "ODbL 1.0", "share_alike": true,
               "obligations": "© OpenStreetMap contributors. Available under the Open Database License (ODbL 1.0): https://www.openstreetmap.org/copyright",
               "url": "https://www.openstreetmap.org/copyright"}],
  "records": {"812": ["osm"]}
}
  • OpenStreetMap (ODbL 1.0, share-alike): show “© OpenStreetMap contributors” with a link to openstreetmap.org/copyright wherever you display those records. If you store them in your own database, that database must also be offered under the ODbL.
  • Overture Maps Foundation: show the notice given in obligations (CDLA Permissive 2.0 / Apache 2.0).
  • Records with no sources listed were provided by the business itself or our team.

Endpoints

MethodPathWhat it does
GET/api/v1/meYour agency, plan, limits and today’s usage.
GET/api/v1/categoriesEvery category slug (use these in searches and when adding listings).
GET/api/v1/locations?q=Resolve a city, “City, ST” or ZIP, plus up to 10 place suggestions.
GET/api/v1/businessesSearch published listings (public fields only).
GET/api/v1/businesses/{id}One published listing’s public profile.
GET/api/v1/clientsListings your agency manages or has asked to manage.
POST/api/v1/clientsAdd a new listing for a client.
GET/api/v1/clients/{id}One managed listing, with the fields its owner sees.
PATCH/api/v1/clients/{id}Update a managed listing.
POST/api/v1/clients/{id}/access-requestAsk the owner of an existing listing to let you manage it.
GET/api/v1/clients/{id}/leadsQuote requests and messages for a managed listing (owner approval needed).

Successful responses put the result in data; lists add meta. Request bodies are JSON (Content-Type: application/json).

GET /me

{"data": {"agency": {"id": 4, "name": "Brightside Local Marketing", "slug": "brightside-local-marketing", "status": "active", ...},
  "plan": {"code": "trial", "name": "Free trial (beta)", "limits": {"daily_requests": 1000, "per_minute": 60, "max_clients": 25}},
  "usage": {"today": 37, "remaining_today": 963, "clients": 6, "resets_at": "2026-11-08T00:00:00+00:00"},
  "key": {"name": "CRM sync", "prefix": "AbCd1234", "created_at": "2026-11-07 15:00:00"}}}

Parameters: q (words, e.g. “garage door repair”), loc (city, “City, ST” or ZIP), lat + lng, radius (miles, 5–100, default 30), category (slug), open_now, emergency, verified, licensed, sort (relevance, distance, name, updated), page (1–20), per_page (1–50, default 20). Send at least one of q, loc, lat+lng or category. Order is the same organic order as the website — never paid. Sponsored placements are not part of the API.

curl "https://freelocalyellowpages.com/api/v1/businesses?q=plumber&loc=Edmond,%20OK&per_page=10" -H "Authorization: Bearer $FLYP_KEY"
{"data": [{"id": 812, "slug": "sooner-rooter-plumbing-edmond-ok", "name": "Sooner Rooter Plumbing",
    "url": "https://freelocalyellowpages.com/business/sooner-rooter-plumbing-edmond-ok",
    "categories": [{"slug": "plumbers", "name": "Plumbing"}], "phone": "(405) 555-0142", "website": "https://soonerrooter.example/",
    "address": {"street": "120 N Main St", "city": "Edmond", "state": "OK", "zip": "73034"}, "geo": {"lat": 35.65, "lng": -97.48},
    "service_area_business": false, "open_24h": false, "emergency": true, "claimed": true, "updated_at": "2026-10-30 12:00:00",
    "distance_mi": 1.2, "open_now": true}],
 "meta": {"total": 42, "page": 1, "per_page": 10, "pages": 5, "max_page": 20, "query": "plumber", "location": "Edmond, OK", ...},
 "attribution": {...}}

Only public profile fields are returned. A service-area business (one that travels to customers) has no street, ZIP or coordinates, and a rounded distance. Business email addresses are never included for listings you don’t manage.

GET /businesses/{id}

The full public profile of a published listing: everything above plus description, hours ({"mon": [["08:00", "17:00"]], …}; a missing day is closed; null means unknown), services, service_areas, founded_year, payment_methods, financing, estimates, licenses, social, logo_url, photos, rating, review_count, attributes. Unknown facts stay null — we never guess.

GET /clients · GET /clients/{id}

Your client listings. Each entry has a link (status: requested or active; owner_approved) and the business. For active links you get the owner’s view: the full profile plus email, the real address even when hidden, hide_address, service_radius_mi, status (pending, published, …), public, needs (what’s missing before it can go live), completeness (%), leads_access and google_profile (our Google Business Profile check).

POST /clients

Add a listing for a business that isn’t in the directory yet. Same rules as our “Add your business” form: name, category (slug) and city + state are required, plus a phone or website, and a street unless hide_address is true. Optional: categories (up to 6 more slugs), email, zip, description, areas (list of “City, ST”), services (list), hours, open_24h, emergency, founded_year, service_radius_mi.

curl -X POST https://freelocalyellowpages.com/api/v1/clients -H "Authorization: Bearer $FLYP_KEY" -H "Content-Type: application/json" -d '{
  "name": "Prairie Garage Doors", "category": "garage-door-repair", "phone": "(405) 555-0199",
  "street": "200 W Main St", "city": "Edmond", "state": "OK", "zip": "73034",
  "areas": ["Oklahoma City, OK", "Moore, OK"], "services": ["Spring repair", "Opener installation"]}'

Returns 201 with the owner’s view and notes. New listings start as pending: we check every new listing against its Google Business Profile, and it appears in the directory once it matches one or our team reviews it. If it looks like a listing we already have you get 409 possible_duplicate (with the existing listing when it’s public) — request access to that one instead, or resend with "confirm_new": true if it really is a different business. A business Google lists as permanently closed returns 422 business_closed. Each new listing uses a Google check, and an agency can run 50 a day (429 google_check_limit).

A listing you add is yours to edit, but you only see its customer requests once its owner claims it and approves your agency.

PATCH /clients/{id}

Send only the fields you want to change (same fields and rules as above). hours: null marks hours as unknown. Changes are recorded as made by the business’s representative (your team member who created the key) and logged with your agency and key. Paid features (special offers, photos, sponsored placements) can’t be changed through the API. If no verified owner has approved your agency, a change to the name, phone or website of a live listing goes live but is also checked by our team. The client endpoints need the person who created the key to have confirmed their email address (403 email_unconfirmed).

{"data": {...owner view...}, "changed": ["phone", "hours_json", "services"]}

POST /clients/{id}/access-request

For a listing that’s already in the directory (use its id from search). We email the listing’s owner, who approves or declines from their dashboard; you get an email either way. Returns 202 with "status": "requested" (or 200 if you already have a request or access). A listing nobody has claimed yet returns 409 listing_unclaimed — ask the business to claim it first (it’s free). Because every request emails the owner, you can ask at most 3 times per listing in 30 days (429 request_limit), and after an owner declines or removes you, please wait 7 days (409 recently_declined).

GET /clients/{id}/leads

Quote requests and messages customers sent to a managed listing, newest first, only when the listing’s owner approved your agency (403 leads_not_approved otherwise). Parameters: since (date, e.g. 2026-11-01), page, per_page (≤ 50). Treat this as personal information: use it only to help that business answer its customers. Every read is logged.

{"data": [{"id": 4211, "type": "quote", "name": "Pat Example", "email": "pat@example.com", "phone": "(405) 555-0123", "zip": "73034",
  "message": "Garage door spring broke", "status": "new", "created_at": "2026-11-06 15:00:00"}], "meta": {"total": 1, "page": 1, "per_page": 20, "pages": 1}}

GET /categories · GET /locations?q=

{"data": [{"slug": "garage-door-repair", "name": "Garage Doors", "plural": "Garage Door Companies", "parent": null, "vertical": "home"}, ...]}

{"data": {"match": {"label": "Edmond, OK", "lat": 35.65, "lng": -97.48, "state": "OK", "zip": null, "place": {"id": 1201, "name": "Edmond", "state": "OK", "slug": "edmond", ...}},
          "suggestions": [...]}}

Fair use

  • Only work on listings for businesses that actually hired you. Owners can see and remove your access at any time.
  • Don’t try to copy the directory. The paging limits are deliberate, and we suspend agencies that work around them.
  • Keep listing facts true: unknown is better than a guess.

Questions or need higher limits? Contact us.