Piloterr Target API

The Target API from Piloterr — 2 operation(s) for target.

GitHub OpenAPI

Operations 4

POST /v2/target/search Target Search #
GET /v2/target/product Target Product #
POST /v2/target/product Target Product #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/piloterr-com:piloterr-com-target-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

piloterr-com-target-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Piloterr API Reference Target API
  description: Complete API reference documentation.
  version: 1.0.0
servers:
- url: https://api.piloterr.com
  description: API Server
tags:
- name: Target
paths:
  /v2/target/search:
    get:
      summary: Target Search
      description: 'Search Target.com by keyword or search URL. Returns product cards with price, rating and pagination via browser rendering.


        **Credit cost:** 2 credits per call'
      operationId: get-target-search
      security:
      - ApiKeyAuth: []
      parameters:
      - name: query
        in: query
        required: true
        description: 'Keyword or Target search URL.


          **Examples:**


          ```

          shampoo

          ```


          ```

          root touch up hair dye

          ```


          ```

          https://www.target.com/s?searchTerm=shampoo

          ```'
        schema:
          type: string
          description: 'Keyword or Target search URL.


            **Examples:**


            ```

            shampoo

            ```


            ```

            root touch up hair dye

            ```


            ```

            https://www.target.com/s?searchTerm=shampoo

            ```'
      - name: page
        in: query
        required: false
        description: Page number (1-based).
        schema:
          type: string
          description: Page number (1-based).
      - name: return_page_source
        in: query
        required: false
        description: When `true`, return rendered HTML instead of JSON.
        schema:
          type: boolean
          description: When `true`, return rendered HTML instead of JSON.
      - $ref: '#/components/parameters/fields'
      - $ref: '#/components/parameters/is_async'
      - $ref: '#/components/parameters/soft_fail'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                        name:
                          type: string
                        tcin:
                          type: string
                        brand:
                          type: string
                        price:
                          type: number
                        rating:
                          type: integer
                        currency:
                          type: string
                        image_url:
                          type: string
                        sponsored:
                          type: boolean
                        review_count:
                          type: integer
                  pagination:
                    type: object
                    properties:
                      next:
                        type: string
                      page:
                        type: integer
                      per_page:
                        type: integer
                      total_pages:
                        type: integer
                      total_results:
                        type: integer
              examples:
                Root touch up hair dye:
                  value:
                    results:
                    - url: https://www.target.com/p/l-oreal-paris-magic-root-rescue-10-minute-root-hair-coloring-kit/-/A-54397299
                      name: L'Oreal Paris Magic Root Rescue 10 Minute Root Hair Coloring Kit
                      tcin: '54397299'
                      brand: L'Oreal Paris
                      price: 6.99
                      rating: 4
                      currency: USD
                      image_url: https://target.scene7.com/is/image/Target/GUEST_c22ac354-59d7-4187-ab0b-8cd8a4707e07?qlt=65&fmt=webp&hei=350&wid=350
                      sponsored: true
                      review_count: 1525
                    pagination:
                      next: https://www.target.com/s?searchTerm=root+touch+up+hair+dye&Nao=24
                      page: 1
                      per_page: 24
                      total_pages: 9
                      total_results: 201
        '400':
          description: Bad Request — missing or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Bad Request
        '401':
          description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidKey:
                  value:
                    error: Invalid API Key
                planRateLimit:
                  value:
                    error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
                keyQuota:
                  value:
                    error: 'Rate limit exceeded for the API key: quota monthly'
        '402':
          description: Payment Required — your subscription or credit balance is insufficient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Payment required
        '500':
          description: Internal Server Error — something went wrong on our side.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal Error
      tags:
      - Target
    post:
      summary: Target Search
      description: 'Search Target.com by keyword or search URL. Returns product cards with price, rating and pagination via browser rendering.


        **Credit cost:** 2 credits per call'
      operationId: post-target-search
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/fields'
      - $ref: '#/components/parameters/is_async'
      - $ref: '#/components/parameters/soft_fail'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  description: 'Keyword or Target search URL.


                    **Examples:**


                    ```

                    shampoo

                    ```


                    ```

                    root touch up hair dye

                    ```


                    ```

                    https://www.target.com/s?searchTerm=shampoo

                    ```'
                page:
                  type: string
                  description: Page number (1-based).
                return_page_source:
                  type: boolean
                  description: When `true`, return rendered HTML instead of JSON.
              required:
              - query
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                        name:
                          type: string
                        tcin:
                          type: string
                        brand:
                          type: string
                        price:
                          type: number
                        rating:
                          type: integer
                        currency:
                          type: string
                        image_url:
                          type: string
                        sponsored:
                          type: boolean
                        review_count:
                          type: integer
                  pagination:
                    type: object
                    properties:
                      next:
                        type: string
                      page:
                        type: integer
                      per_page:
                        type: integer
                      total_pages:
                        type: integer
                      total_results:
                        type: integer
              examples:
                Root touch up hair dye:
                  value:
                    results:
                    - url: https://www.target.com/p/l-oreal-paris-magic-root-rescue-10-minute-root-hair-coloring-kit/-/A-54397299
                      name: L'Oreal Paris Magic Root Rescue 10 Minute Root Hair Coloring Kit
                      tcin: '54397299'
                      brand: L'Oreal Paris
                      price: 6.99
                      rating: 4
                      currency: USD
                      image_url: https://target.scene7.com/is/image/Target/GUEST_c22ac354-59d7-4187-ab0b-8cd8a4707e07?qlt=65&fmt=webp&hei=350&wid=350
                      sponsored: true
                      review_count: 1525
                    pagination:
                      next: https://www.target.com/s?searchTerm=root+touch+up+hair+dye&Nao=24
                      page: 1
                      per_page: 24
                      total_pages: 9
                      total_results: 201
        '400':
          description: Bad Request — missing or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Bad Request
        '401':
          description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidKey:
                  value:
                    error: Invalid API Key
                planRateLimit:
                  value:
                    error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
                keyQuota:
                  value:
                    error: 'Rate limit exceeded for the API key: quota monthly'
        '402':
          description: Payment Required — your subscription or credit balance is insufficient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Payment required
        '500':
          description: Internal Server Error — something went wrong on our side.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal Error
      tags:
      - Target
  /v2/target/product:
    get:
      summary: Target Product
      description: 'Get a Target.com product page: price, description, images and variations via browser rendering.


        **Credit cost:** 2 credits per call'
      operationId: get-target-product
      security:
      - ApiKeyAuth: []
      parameters:
      - name: query
        in: query
        required: true
        description: 'Target product URL or bare TCIN.


          **Examples:**


          ```

          17457624

          ```


          ```

          https://www.target.com/p/-/A-17457624

          ```


          ```

          https://www.target.com/p/l-oreal-paris-magic-root-cover-up-medium-brown-2-0oz/-/A-17457624

          ```'
        schema:
          type: string
          description: 'Target product URL or bare TCIN.


            **Examples:**


            ```

            17457624

            ```


            ```

            https://www.target.com/p/-/A-17457624

            ```


            ```

            https://www.target.com/p/l-oreal-paris-magic-root-cover-up-medium-brown-2-0oz/-/A-17457624

            ```'
      - name: return_page_source
        in: query
        required: false
        description: When `true`, return rendered HTML instead of JSON.
        schema:
          type: boolean
          description: When `true`, return rendered HTML instead of JSON.
      - $ref: '#/components/parameters/fields'
      - $ref: '#/components/parameters/is_async'
      - $ref: '#/components/parameters/soft_fail'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  upc:
                    type: string
                  url:
                    type: string
                  dpci:
                    type: string
                  name:
                    type: string
                  tcin:
                    type: string
                  brand:
                    type: string
                  price:
                    type: number
                  images:
                    type: array
                    items:
                      type: string
                  rating:
                    type: number
                  currency:
                    type: string
                  ornaments:
                    type: array
                    items:
                      type: string
                  highlights:
                    type: array
                    items:
                      type: string
                  variations:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                        name:
                          type: string
                        tcin:
                          type: string
                        value:
                          type: string
                        selected:
                          type: boolean
                  breadcrumbs:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                        name:
                          type: string
                  description:
                    type: string
                  ingredients:
                    nullable: true
                  review_count:
                    type: integer
                  bullet_descriptions:
                    type: array
                    items:
                      type: string
              examples:
                L'Oreal Magic Root Cover Up:
                  value:
                    upc: 071249318553
                    url: https://www.target.com/p/l-oreal-paris-magic-root-cover-up-medium-brown-2-0oz/-/A-17457624
                    dpci: 063-01-0615
                    name: L'Oreal Paris Magic Root Cover Up - Medium Brown - 2.0oz
                    tcin: '17457624'
                    brand: L'Oreal Paris
                    price: 11.99
                    images:
                    - https://target.scene7.com/is/image/Target/GUEST_2947578e-fc62-4731-a22a-42211a91cbe5
                    rating: 4.02
                    currency: USD
                    ornaments:
                    - Rarely returned
                    - Highly rated
                    highlights:
                    - Conceals grays in seconds for flawless roots
                    - Lightweight formula, no smudging or sticky residue
                    variations:
                    - url: https://www.target.com/p/l-oreal-paris-magic-root-cover-up-medium-brown-2-0oz/-/A-17457624
                      name: Color
                      tcin: '17457624'
                      value: Medium Brown
                      selected: true
                    - url: https://www.target.com/p/l-oreal-paris-magic-root-cover-up-black-2-0oz/-/A-17457618
                      name: Color
                      tcin: '17457618'
                      value: Black
                      selected: false
                    breadcrumbs:
                    - url: https://www.target.com/
                      name: Target
                    - url: https://www.target.com/c/beauty/-/N-55r1x
                      name: Beauty
                    description: Temporary hair color spray to cover gray roots in seconds. Ammonia-free and sulfate-free.
                    ingredients: null
                    review_count: 7057
                    bullet_descriptions:
                    - 'Hair Type: All Hair Types'
                    - 'Product Form: Aerosol'
                    - 'Beauty Purpose: Hair Coloring'
        '400':
          description: Bad Request — missing or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Bad Request
        '401':
          description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidKey:
                  value:
                    error: Invalid API Key
                planRateLimit:
                  value:
                    error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
                keyQuota:
                  value:
                    error: 'Rate limit exceeded for the API key: quota monthly'
        '402':
          description: Payment Required — your subscription or credit balance is insufficient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Payment required
        '500':
          description: Internal Server Error — something went wrong on our side.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal Error
      tags:
      - Target
    post:
      summary: Target Product
      description: 'Get a Target.com product page: price, description, images and variations via browser rendering.


        **Credit cost:** 2 credits per call'
      operationId: post-target-product
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/fields'
      - $ref: '#/components/parameters/is_async'
      - $ref: '#/components/parameters/soft_fail'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  description: 'Target product URL or bare TCIN.


                    **Examples:**


                    ```

                    17457624

                    ```


                    ```

                    https://www.target.com/p/-/A-17457624

                    ```


                    ```

                    https://www.target.com/p/l-oreal-paris-magic-root-cover-up-medium-brown-2-0oz/-/A-17457624

                    ```'
                return_page_source:
                  type: boolean
                  description: When `true`, return rendered HTML instead of JSON.
              required:
              - query
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  upc:
                    type: string
                  url:
                    type: string
                  dpci:
                    type: string
                  name:
                    type: string
                  tcin:
                    type: string
                  brand:
                    type: string
                  price:
                    type: number
                  images:
                    type: array
                    items:
                      type: string
                  rating:
                    type: number
                  currency:
                    type: string
                  ornaments:
                    type: array
                    items:
                      type: string
                  highlights:
                    type: array
                    items:
                      type: string
                  variations:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                        name:
                          type: string
                        tcin:
                          type: string
                        value:
                          type: string
                        selected:
                          type: boolean
                  breadcrumbs:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                        name:
                          type: string
                  description:
                    type: string
                  ingredients:
                    nullable: true
                  review_count:
                    type: integer
                  bullet_descriptions:
                    type: array
                    items:
                      type: string
              examples:
                L'Oreal Magic Root Cover Up:
                  value:
                    upc: 071249318553
                    url: https://www.target.com/p/l-oreal-paris-magic-root-cover-up-medium-brown-2-0oz/-/A-17457624
                    dpci: 063-01-0615
                    name: L'Oreal Paris Magic Root Cover Up - Medium Brown - 2.0oz
                    tcin: '17457624'
                    brand: L'Oreal Paris
                    price: 11.99
                    images:
                    - https://target.scene7.com/is/image/Target/GUEST_2947578e-fc62-4731-a22a-42211a91cbe5
                    rating: 4.02
                    currency: USD
                    ornaments:
                    - Rarely returned
                    - Highly rated
                    highlights:
                    - Conceals grays in seconds for flawless roots
                    - Lightweight formula, no smudging or sticky residue
                    variations:
                    - url: https://www.target.com/p/l-oreal-paris-magic-root-cover-up-medium-brown-2-0oz/-/A-17457624
                      name: Color
                      tcin: '17457624'
                      value: Medium Brown
                      selected: true
                    - url: https://www.target.com/p/l-oreal-paris-magic-root-cover-up-black-2-0oz/-/A-17457618
                      name: Color
                      tcin: '17457618'
                      value: Black
                      selected: false
                    breadcrumbs:
                    - url: https://www.target.com/
                      name: Target
                    - url: https://www.target.com/c/beauty/-/N-55r1x
                      name: Beauty
                    description: Temporary hair color spray to cover gray roots in seconds. Ammonia-free and sulfate-free.
                    ingredients: null
                    review_count: 7057
                    bullet_descriptions:
                    - 'Hair Type: All Hair Types'
                    - 'Product Form: Aerosol'
                    - 'Beauty Purpose: Hair Coloring'
        '400':
          description: Bad Request — missing or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Bad Request
        '401':
          description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidKey:
                  value:
                    error: Invalid API Key
                planRateLimit:
                  value:
                    error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
                keyQuota:
                  value:
                    error: 'Rate limit exceeded for the API key: quota monthly'
        '402':
          description: Payment Required — your subscription or credit balance is insufficient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Payment required
        '500':
          description: Internal Server Error — something went wrong on our side.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal Error
      tags:
      - Target
components:
  parameters:
    fields:
      name: fields
      in: query
      required: false
      description: Comma-separated list of response fields to return, with dot notation for nested fields (e.g. `name,location.city`).
      schema:
        type: string
    is_async:
      name: is_async
      in: query
      required: false
      description: 'Run the request as a background job: the API answers `202` with a `job_id` to poll on `GET /v1/jobs/{id}`.'
      schema:
        type: boolean
        default: false
    soft_fail:
      name: soft_fail
      in: query
      required: false
      description: Return HTTP 200 even when the request fails; the error is in the `error` field of the body.
      schema:
        type: boolean
        default: false
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Human-readable error message.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your API key. Include it in the x-api-key header for every request.