{"openapi":"3.1.0","info":{"title":"Lomitos: API pública de adopción","version":"1.0.0","summary":"Read-only catalog of dogs and cats for adoption in Mexico.","description":"Lomitos (https://lomitos.mx) is a free platform. Mexican shelters publish dogs and cats for adoption there. This API is read-only and needs no token. It shows only pets that accept adoption inquiries now, from activated shelters.\n\nAdoption always happens through the shelter. Every pet has `url` (its public page) and `solicitud_url` (the inquiry form). Send people to these pages to adopt. Lomitos never charges a fee.\n\nLimit: 60 requests per minute per IP address. A successful response is cacheable for 5 minutes. Field names and values are in Spanish.\n\nThe same catalog is available as an MCP server at https://lomitos.mx/mcp.","contact":{"url":"https://lomitos.mx/desarrolladores"}},"servers":[{"url":"https://lomitos.mx/api/publica/v1","description":"Lomitos"}],"externalDocs":{"description":"Guía para desarrolladores y asistentes","url":"https://lomitos.mx/desarrolladores"},"tags":[{"name":"mascotas","description":"Pets for adoption"},{"name":"refugios","description":"Activated shelters"},{"name":"estados","description":"Availability per state and city"}],"paths":{"/mascotas":{"get":{"tags":["mascotas"],"operationId":"buscarMascotas","summary":"Search pets for adoption","description":"Returns the pets that accept inquiries now, newest first. All filters are optional and combine with AND.","parameters":[{"$ref":"#/components/parameters/q"},{"name":"especie","in":"query","schema":{"type":"string","enum":["perro","gato"]},"description":"Species: perro (dog) or gato (cat)."},{"$ref":"#/components/parameters/estado"},{"$ref":"#/components/parameters/ciudad"},{"name":"refugio","in":"query","schema":{"type":"string","maxLength":120},"description":"Shelter slug, for example `patitas-gdl`."},{"name":"sexo","in":"query","schema":{"type":"string","enum":["hembra","macho"]},"description":"Sex: hembra (female) or macho (male)."},{"name":"tamano","in":"query","schema":{"type":"string","enum":["chico","mediano","grande","gigante"]},"description":"Size."},{"name":"energia","in":"query","schema":{"type":"string","enum":["bajo","medio","alto"]},"description":"Energy level: bajo (calm), medio (active), alto (very active)."},{"name":"etapa","in":"query","schema":{"type":"string","enum":["cachorro","joven","adulto","senior"]},"description":"Life stage: cachorro 0-11 months, joven 12-35, adulto 36-95, senior 96 or more."},{"name":"edad_min_meses","in":"query","schema":{"type":"integer","minimum":0,"maximum":360},"description":"Minimum age in months."},{"name":"edad_max_meses","in":"query","schema":{"type":"integer","minimum":0,"maximum":360},"description":"Maximum age in months. It must be equal to or more than edad_min_meses."},{"name":"apto_ninos","in":"query","schema":{"type":"boolean"},"description":"true: the shelter says that the pet is good with children. false: the shelter says that it is not. Also accepts si/no and 1/0."},{"name":"apto_perros","in":"query","schema":{"type":"boolean"},"description":"Good with dogs. Same values as apto_ninos."},{"name":"apto_gatos","in":"query","schema":{"type":"boolean"},"description":"Good with cats. Same values as apto_ninos."},{"$ref":"#/components/parameters/pagina"},{"$ref":"#/components/parameters/por_pagina"}],"responses":{"200":{"description":"A page of pets.","content":{"application/json":{"schema":{"type":"object","required":["data","paginacion"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Mascota"}},"paginacion":{"$ref":"#/components/schemas/Paginacion"}}}}}},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/mascotas/{uuid}":{"get":{"tags":["mascotas"],"operationId":"verMascota","summary":"Get one pet","description":"Returns one pet that accepts inquiries now. A pet that is adopted, reserved, a draft, hidden or from a shelter that is not activated returns 404.","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The pet, with all of its photos.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Mascota"}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/refugios":{"get":{"tags":["refugios"],"operationId":"buscarRefugios","summary":"Search activated shelters","description":"Returns activated shelters. The shelters with the most available pets come first.","parameters":[{"$ref":"#/components/parameters/q"},{"$ref":"#/components/parameters/estado"},{"$ref":"#/components/parameters/ciudad"},{"$ref":"#/components/parameters/pagina"},{"$ref":"#/components/parameters/por_pagina"}],"responses":{"200":{"description":"A page of shelters.","content":{"application/json":{"schema":{"type":"object","required":["data","paginacion"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Refugio"}},"paginacion":{"$ref":"#/components/schemas/Paginacion"}}}}}},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/refugios/{slug}":{"get":{"tags":["refugios"],"operationId":"verRefugio","summary":"Get one shelter and its available pets","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]+$"}},{"$ref":"#/components/parameters/pagina"},{"$ref":"#/components/parameters/por_pagina"}],"responses":{"200":{"description":"The shelter and a page of its pets.","content":{"application/json":{"schema":{"type":"object","required":["data","mascotas","paginacion"],"properties":{"data":{"$ref":"#/components/schemas/Refugio"},"mascotas":{"type":"array","items":{"$ref":"#/components/schemas/Mascota"}},"paginacion":{"$ref":"#/components/schemas/Paginacion"}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/estados":{"get":{"tags":["estados"],"operationId":"listarEstados","summary":"List states and cities with available pets","description":"Returns only the states and cities that have at least one available pet, with the counts and the listing page URLs.","responses":{"200":{"description":"States, in alphabetical order.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Estado"}}}}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}}},"components":{"parameters":{"q":{"name":"q","in":"query","schema":{"type":"string","maxLength":80},"description":"Free text. For pets it searches the name, breed, color and description. For shelters it searches the name."},"estado":{"name":"estado","in":"query","schema":{"type":"string","maxLength":60},"description":"Mexican state, as a name (`Nuevo León`) or a slug (`nuevo-leon`)."},"ciudad":{"name":"ciudad","in":"query","schema":{"type":"string","maxLength":80},"description":"City name or slug, for example `Guadalajara`."},"pagina":{"name":"pagina","in":"query","schema":{"type":"integer","minimum":1,"maximum":1000,"default":1},"description":"Page number."},"por_pagina":{"name":"por_pagina","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":12},"description":"Items per page. The maximum is 50."}},"responses":{"NotFound":{"description":"The resource does not exist or is not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ValidationFailed":{"description":"A query parameter is not valid. `error.details` names each parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"More than 60 requests in one minute from one IP address.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Mascota":{"type":"object","required":["uuid","nombre","especie","url","solicitud_url","foto_url","refugio"],"properties":{"uuid":{"type":"string","format":"uuid"},"nombre":{"type":"string"},"especie":{"type":"string","enum":["perro","gato"]},"sexo":{"type":["string","null"],"enum":["hembra","macho",null]},"edad_meses":{"type":["integer","null"]},"edad":{"type":["string","null"],"description":"Age as text, for example `2 años 3 meses`."},"etapa":{"type":["string","null"],"enum":["cachorro","joven","adulto","senior",null]},"tamano":{"type":["string","null"],"enum":["chico","mediano","grande","gigante",null]},"peso_kg":{"type":["number","null"]},"energia":{"type":["string","null"],"enum":["bajo","medio","alto",null]},"raza":{"type":["string","null"]},"color":{"type":["string","null"]},"descripcion":{"type":["string","null"]},"necesidades_especiales":{"type":["string","null"]},"salud":{"type":"object","description":"null means that the shelter did not say.","properties":{"esterilizado":{"type":["boolean","null"]},"vacunado":{"type":["boolean","null"]},"desparasitado":{"type":["boolean","null"]},"microchip":{"type":["boolean","null"]}}},"convivencia":{"type":"object","description":"Good with children, dogs and cats. null means that the shelter did not say.","properties":{"ninos":{"type":["boolean","null"]},"perros":{"type":["boolean","null"]},"gatos":{"type":["boolean","null"]}}},"foto_url":{"type":"string","format":"uri","description":"Square photo, 500 px."},"fotos":{"type":"array","items":{"type":"string","format":"uri"},"description":"All photos, 1200 px. Only in the pet detail."},"url":{"type":"string","format":"uri","description":"The public page of the pet. Link this page."},"solicitud_url":{"type":"string","format":"uri","description":"The adoption inquiry form. No account is necessary."},"refugio":{"type":"object","properties":{"nombre":{"type":"string"},"slug":{"type":"string"},"ciudad":{"type":["string","null"]},"estado":{"type":["string","null"]},"url":{"type":"string","format":"uri"}}}}},"Refugio":{"type":"object","required":["slug","nombre","url","mascotas_disponibles"],"properties":{"slug":{"type":"string"},"nombre":{"type":"string"},"descripcion":{"type":["string","null"]},"ciudad":{"type":["string","null"]},"estado":{"type":["string","null"]},"logo_url":{"type":["string","null"],"format":"uri"},"url":{"type":"string","format":"uri","description":"The public page of the shelter."},"mascotas_disponibles":{"type":"integer"},"en_lomitos_desde":{"type":["string","null"],"format":"date"}}},"Estado":{"type":"object","properties":{"estado":{"type":"string"},"slug":{"type":"string"},"mascotas_disponibles":{"type":"integer"},"perros":{"type":"integer"},"gatos":{"type":"integer"},"url":{"type":"string","format":"uri"},"url_perros":{"type":"string","format":"uri"},"url_gatos":{"type":"string","format":"uri"},"ciudades":{"type":"array","items":{"type":"object","properties":{"ciudad":{"type":"string"},"slug":{"type":"string"},"mascotas_disponibles":{"type":"integer"}}}}}},"Paginacion":{"type":"object","properties":{"pagina":{"type":"integer"},"por_pagina":{"type":"integer"},"total":{"type":"integer"},"total_paginas":{"type":"integer"},"hay_mas":{"type":"boolean"},"siguiente_url":{"type":["string","null"],"format":"uri"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["validation_failed","not_found","method_not_allowed","rate_limited","server_error"]},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}}}}}}