CNPJws
English
English
  • Overview
  • Data Models
    • Countries
    • States
    • Cities
    • Legal Natures
    • Company Sizes
    • Economic Activities
    • Corporate Qualifications
    • Partners
    • Simples Nacional and MEI
    • Establishments
    • State Registrations
    • Suframa
    • Tax Regimes
    • Registration Statuses
    • Error Messages
  • Changelog
  • API Reference
    • API - Commercial
      • Consulting CNPJ in the Commercial API
      • Consulting by CNPJ Root
      • Company Search
      • Consulting Monthly Request Consumption
      • Validating Suframa Registration
    • API - Public
      • Consulting CNPJ in the Public API
      • Validating Suframa Registration in the Public API
      • Limitations
  • BLOG
    • What is CNPJ
    • Consult CNPJ with Java
    • Consult CNPJ for Free with Excel
    • Consult CNPJ with PHP
    • Trigger to Consult CNPJ in Protheus
    • Keep Customer and Supplier Records Updated
    • Consult CNPJ with Javascript and Node.JS
    • Consult CNPJ with ADVPL (Protheus)
    • CNPJ.ws Project
Powered by GitBook
On this page

Was this helpful?

  1. API Reference
  2. API - Public

Limitations

The Public API has a limitation of serving only 3 requests per minute from the same IP. Understand that this limitation is independent of whether the query was successful in finding the CNPJ. After exceeding this limit, the requester will have to wait for 60 seconds to make the next request.

The user will receive an error message and HTTP Status Code 429:

{
  "status": 429,
  "title": "Too Many Requests",
  "details": "Exceeded the maximum limit of 3 queries per minute. Release will occur on Thu Jun 03 2021 16:15:00 GMT-0300 (Brasilia Standard Time)"
}

If the API identifies that the user has made more than 360 queries per hour (the allowed limit is 3 x 60 = 180), the user will be penalized and will not be able to make queries for 1 hour. If this persists, the penalty will be renewed for another hour. Example:

{
  "status": 429,
  "title": "Too Many Requests",
  "details": "Exceeded the maximum limit of 429 errors per hour. Release will occur on Thu Jun 03 2021 16:15:00 GMT-0300 (Brasilia Standard Time)"
}
PreviousValidating Suframa Registration in the Public APINextWhat is CNPJ

Last updated 4 months ago

Was this helpful?