Peru · pe_sunat_padron_search
OpenAPI

Search sunat · padron

GET https://api.latinfo.dev/pe/sunat/padron/search

Search the published razon_social index. Results are candidates, not confirmed identity matches. Confirm the country and identifier before fetching a profile. An empty list is not proof of absence. For a reproducible integration check, fetch the documented lookup example for this source and choose one complete whitespace-separated word of at least three letters from its razon_social value as q. Choose a word containing only letters, avoiding damaged publisher text or partial words; keep q within 200 characters. Search returns a bounded candidate list, not an exhaustive export. Candidate names and status text may be truncated. Fetch the source lookup to obtain the complete record and interpret its status vocabulary; do not classify a company from candidate text alone.

Source contract

Publisher
SUNAT, Peru
Coverage
Legal-entity RUCs beginning with 20 in the reduced taxpayer padron.
Record meaning
A taxpayer registration and fiscal-address components.
Identifier
Lookup by ruc as a string, preserving leading zeros. Accepted syntax and normalization are defined by the contract below.
Accepted pattern
^\d{11}$
Cardinality
one
License
Reuse permission has not been verified. Public access is not a reuse license.

Known limitations

  • departamento is an apartment/unit component, not geography. Taxpayer status and fiscal-address condition are separate.

Machine-readable source contract · Source documentation

Authentication required. REST requests use a Latinfo API key. The interactive console builds the authorization header and does not store the key.

Parameters

qstringqueryrequired

Name query, 3–200 characters.

Request example

curl https://api.latinfo.dev/pe/sunat/padron/search?q=q \
  -H "Authorization: Bearer $LATINFO_API_KEY"

Responses

200Published source records. Missing data is not a clearance or a negative finding.

Response headers

X-Latinfo-Imported-At

Import time, not the date of the government observation.

X-Source-Updated-At

Publisher update time, when known.

X-Latest-Observation-At

Latest observation date in this response page, when known. For a complete paginated history, preserve each page date or take the maximum date across all pages. Never use import time as observation time.

X-Freshness-Status

string

CURRENT · DELAYED · STALE · UNKNOWN
X-Credits-Cost

Legacy compatibility header; always zero because Latinfo is free.

Link

Source attribution, modification notices and reuse conditions at rel=describedby; verified declared license at rel=license. Paginated responses also include rel=next when another page exists.

X-Source-Generation

Opaque immutable source generation. Follow the guarded next-page Link when collecting a history.

Content-Type: application/json

Response fields

[].id string
[].razon_social string

Registered legal name.

[].estado string

Publisher status; interpret in the context of this dataset.

Response schema
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "razon_social": {
        "type": "string",
        "description": "Registered legal name.",
        "x-latinfo-meaning": "text"
      },
      "estado": {
        "type": "string",
        "description": "Publisher status; interpret in the context of this dataset.",
        "x-latinfo-meaning": "text"
      }
    }
  }
}
400Invalid identifier or query. Correct the input before retrying.
No response body documented.
401Missing or invalid API key. Authenticate before retrying.
No response body documented.
404No published record, or identifier outside the legal-entity scope. Not proof that the company does not exist.
No response body documented.
429Queries-per-minute limit exceeded. Wait for Retry-After before retrying.
No response body documented.
503Source unavailable. Report unavailable, not an empty result.
No response body documented.
Example JSON

Illustrative schema example. This is not a live response.

[
  {
    "id": "string",
    "razon_social": "string",
    "estado": "string"
  }
]

Provenance and limitations

Coverage varies by country and public source. A missing field is not evidence that the underlying fact does not exist. Public registries may be delayed or contain source errors; inspect the returned evidence and source date before relying on a result.