Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Petnecto Search API
version: 1.0.0
summary: Paw to paw. Shelter pets, one question away.
description: Adoptable pets as JSON. No key. Every pet in one plain format, with its own page here (url) and a link to the shelter's listing (listing_url; Taiwan's is the national adoption site). Add ?output=md for Markdown.
contact:
email: hello@petnecto.com
servers:
- url: https://petnecto.com
tags:
- name: Search
paths:
/api/v1/search:
get:
operationId: search_by_description
summary: Search by a sentence in any language
parameters:
- name: q
in: query
required: false
description: What you want, in your own words, up to 200 characters
schema:
type: string
maxLength: 200
- name: mode
in: query
required: false
description: 'hybrid (the default: words + meaning now, the AI reader fills its cache in the background), smart (also waits briefly for the AI reader), keyword (plain q= search), bm25 (plain BM25, every word required)'
schema:
type: string
enum:
- smart
- hybrid
- keyword
- bm25
- name: 'off'
in: query
required: false
description: Comma list of chip ids to leave out, e.g. good_with:kids,size:Small
schema:
type: string
- name: unknown
in: query
required: false
description: 'include: also show pets whose listing does not say whether they are good with dogs/cats/kids (marked not_stated)'
schema:
type: string
enum:
- include
- name: near
in: query
required: false
description: A place if you did not put it in the sentence
schema:
type: string
maxLength: 60
- name: country
in: query
required: false
description: TW, US, ES, AT, JP
schema:
type: string
enum:
- TW
- US
- ES
- AT
- JP
- name: species
in: query
required: false
description: Dog, Cat...
schema:
type: string
enum:
- Dog
- Cat
- Rabbit
- Bird
- Horse
- Small pet
- Reptile
- Pig
- Barnyard
- name: photo
in: query
required: false
description: 'good: only pets with a good photo'
schema:
type: string
enum:
- good
- name: page
in: query
required: false
description: Page, 1-100
schema:
type: integer
- name: limit
in: query
required: false
description: Results per page, 1-50
schema:
type: integer
- name: lang
in: query
required: false
description: Language for names and text (else Accept-Language)
schema:
type: string
enum:
- en
- es
- zh-Hant
- zh-Hans
- ko
- ja
- vi
- fr
- ar
- tl
- name: output
in: query
required: false
description: md for Markdown instead of JSON
schema:
type: string
enum:
- json
- md
responses:
'200':
description: The answer as JSON (or Markdown with output=md)
content:
application/json:
schema:
type: object
text/markdown:
schema:
type: string
'400':
$ref: '#/components/responses/error'
'429':
$ref: '#/components/responses/error'
'502':
$ref: '#/components/responses/error'
tags:
- Search
components:
responses:
error:
description: What went wrong, in a sentence
content:
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error