Discover/Com API
live

Com APIpaginasamarillas.com.pe

Search and retrieve contact details for Peruvian businesses from paginasamarillas.com.pe: phones, emails, WhatsApp, addresses, hours, and reviews.

Endpoint health
verified 4d ago
search_businesses
get_business_detail
2/2 passing latest checkself-healing
Endpoints
2
Updated
26d ago

What is the Com API?

The Páginas Amarillas Peru API provides access to Peru's Yellow Pages directory through 2 endpoints, returning contact data for businesses across the country. The search_businesses endpoint lets you query by keyword and city, surfacing names, addresses, phone numbers, emails, social media links, and geo-coordinates. Paired with get_business_detail, you get full opening hours, reviews, and service keywords for any individual listing.

Try it
Page number (0-indexed)
Results per page
Search keyword (e.g., 'inmobiliarias', 'restaurantes', 'abogados')
Location/city to search in
api.parse.bot/scraper/dcf1b77e-5ec4-4897-beef-c9c7cd494019/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/dcf1b77e-5ec4-4897-beef-c9c7cd494019/search_businesses?page=0&size=5&query=inmobiliarias&location=lima' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace paginasamarillas-com-pe-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: PaginasAmarillas SDK — search Peru Yellow Pages and drill into business details."""
from parse_apis.páginas_amarillas_peru_business_directory_api import (
    PaginasAmarillas, Query, Location, BusinessNotFound
)

client = PaginasAmarillas()

# Search for real estate businesses in Lima — limit caps total items fetched.
for biz in client.businesses.search(query=Query.INMOBILIARIAS, location=Location.LIMA, limit=3):
    print(biz.name, biz.locality, biz.detail_url)

# Drill into the first result's full detail (opening hours, reviews, keywords).
first = client.businesses.search(query=Query.RESTAURANTES, location=Location.CUSCO, limit=1).first()
if first:
    detail = first.detail.get()
    print(detail.name, detail.rating)
    for day in detail.opening_hours:
        print(day.day_name, day.is_24_hours)
    for addr in detail.addresses:
        print(addr.address, addr.locality)

# Typed error handling: catch a not-found business.
try:
    missing = client.businesses.search(query=Query.ABOGADOS, limit=1).first()
    if missing:
        _ = missing.detail.get()
except BusinessNotFound as exc:
    print(f"Business gone: {exc.url_path}")

print("exercised: businesses.search / detail.get / opening_hours / addresses")
All endpoints · 2 totalmissing one? ·

Full-text search over Peru Yellow Pages business listings by keyword and city. Returns a paginated list of businesses with contact info, social media links, and addresses. Pagination is 0-indexed. Each business includes a detail_url path usable with get_business_detail for full info including hours and reviews.

Input
ParamTypeDescription
pageintegerPage number (0-indexed)
sizeintegerResults per page
queryrequiredstringSearch keyword (e.g., 'inmobiliarias', 'restaurantes', 'abogados')
locationstringLocation/city to search in
Response
{
  "type": "object",
  "fields": {
    "page": "integer - current page number",
    "size": "integer - page size",
    "total": "integer - total matching businesses",
    "businesses": "array of business objects with id, name, product_type, slogan, description, detail_info, address, locality, latitude, longitude, phones, emails, whatsapp, website, facebook, instagram, youtube, messenger, logo_url, detail_url, all_addresses",
    "total_pages": "integer - total pages available",
    "results_count": "integer - number of results on this page"
  }
}

About the Com API

What the API Covers

The API exposes business directory data from paginasamarillas.com.pe, Peru's primary Yellow Pages platform. Each response includes structured contact information: phone numbers with international formatting, email addresses, WhatsApp availability, websites, and links to Facebook and YouTube profiles. Address fields include street-level data alongside latitude and longitude coordinates, making the data suitable for mapping and geospatial analysis.

Searching for Businesses

The search_businesses endpoint accepts a required query string (e.g., 'inmobiliarias', 'restaurantes', 'abogados') and an optional location parameter to scope results to a specific city or district. Pagination is 0-indexed via page and size parameters. Each response includes total, total_pages, and results_count fields so you can walk through large result sets. Every business object in the businesses array includes a detail_url path that feeds directly into get_business_detail.

Retrieving Business Detail

Passing a url_path from search_businesses to get_business_detail returns a richer record for that business: structured phones objects with number, international, and description fields; an emails array; rating and reviews objects with comments; and keyword and service tags. Opening hours are included as a schedule object not present in search results. Fields like slogan, youtube, and facebook may be null if the business has not populated them.

Coverage and Limitations

Coverage reflects what is publicly listed on paginasamarillas.com.pe. Businesses that have not claimed or updated their listing may have sparse contact fields. Geo-coordinates are present when the source listing includes them. The API does not currently expose category-browse navigation or sponsored/featured listing rankings.

Reliability & maintenanceVerified

The Com API is a managed, monitored endpoint for paginasamarillas.com.pe — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when paginasamarillas.com.pe changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official paginasamarillas.com.pe API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
2/2 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a CRM enrichment pipeline using phone, email, and WhatsApp fields from Peruvian business listings
  • Generate a geo-mapped directory of businesses in a specific Lima district using latitude and longitude fields
  • Aggregate review ratings and comments across a business category (e.g., notarías or clínicas) for market research
  • Monitor opening hours for a set of competitor businesses by periodically calling get_business_detail
  • Compile social media handles (Facebook, YouTube) for businesses in a sector to build outreach lists
  • Feed business addresses and contact details into a logistics or delivery routing application
  • Identify businesses without websites or emails to target for digital services sales prospecting
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does paginasamarillas.com.pe have an official developer API?+
No. Páginas Amarillas Peru does not offer a publicly documented developer API. This Parse API provides structured programmatic access to the same directory data.
What does get_business_detail return that search_businesses does not?+
The get_business_detail endpoint returns opening hours schedules, a reviews object containing individual comments and an aggregate rating, and service keyword tags. The search_businesses endpoint returns these fields only partially or not at all — it focuses on address, contact links, geo-coordinates, and a summary description suitable for listing views.
Is location filtering available, and how granular is it?+
The search_businesses endpoint accepts a location parameter that maps to city or district names as they appear on the directory (e.g., 'Lima', 'Miraflores', 'Arequipa'). Sub-district or neighborhood filtering is not independently supported as a separate parameter — precision depends on what the location string matches in the directory index.
Does the API cover business categories or browsable category trees?+
Not currently. The API covers keyword search via the query parameter and individual business detail via get_business_detail, but does not expose a category-browse endpoint for navigating the directory taxonomy. You can fork this API on Parse and revise it to add a category-listing endpoint.
Are all contact fields guaranteed to be populated for every business?+
No. Fields like emails, website, facebook, youtube, slogan, and rating can be null or empty arrays depending on what the business has listed. Phone numbers are the most consistently present field. Treat optional fields as nullable in your data model.
Page content last updated . Spec covers 2 endpoints from paginasamarillas.com.pe.
Related APIs in B2b DirectorySee all →
paginasamarillas.es API
Search and discover Spanish businesses with detailed information including contact details, social links, and customer reviews, with specialized features for finding restaurants and getting search suggestions. Access comprehensive business profiles to find exactly what you're looking for in Spain's leading business directory.
paginasamarillas.com.mx API
Access Mexico's largest business directory to find company profiles, browse business categories, search for specific services, and discover industry insights from curated blog content. Build applications that help users discover and learn about Mexican businesses all in one place.
seccionamarilla.com.mx API
Search for Mexican businesses and get their detailed contact information, hours, and locations from Sección Amarilla's comprehensive directory. Browse popular business categories to discover services and companies across Mexico.
páginasamarelas.pt API
Search for Portuguese businesses by name or category, browse Yellow Pages listings, and access detailed company information like contact details, addresses, and services. Find the right local business quickly with filters and comprehensive business profiles from Portugal's official business directory.
yellowpages.com API
Search and retrieve business listings, contact info, hours, categories, and customer reviews from YellowPages.com. Browse by category or location across the US.
yellowpages.in API
Search for businesses across India and discover detailed information like contact details, addresses, and services from YellowPages.in's comprehensive business directory. Find relevant business categories with autocomplete suggestions to quickly locate the leads and companies you're looking for.
yellowpages.ca API
Search for businesses across Canada and retrieve detailed information including contact details, ratings, reviews, and website data. Supports keyword and location-based discovery of local businesses for research, analysis, and data enrichment use cases.
yellowpages.com.au API
Search Australian businesses by category to find contact details, addresses, and emails, then retrieve comprehensive business information for any listing. Perfect for building lead lists, verifying business information, or discovering local service providers across Australia.