> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Search tenders

> To find tenders by keyword/filters or to resolve a 12-digit reference number to its tender_id_string before calling get_tender.

## Request contract

* **Method and path:** POST /apis/v1/tenders-etimad-sa/public-procurement-tenders/search-tenders
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/tenders-etimad-sa/public-procurement-tenders/search-tenders`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/tenders-etimad-sa.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "tenders-etimad-sa.public-procurement-tenders.search-tenders",
  "method": "POST",
  "path": "/apis/v1/tenders-etimad-sa/public-procurement-tenders/search-tenders",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "page_size": 6,
              "reference_number": "260639010130"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "activity_id": {
              "description": "Main activity id from list_lookups kind=activities.\n\nProvider reference: minimum 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            },
            "agency_code": {
              "description": "12-digit agency code from list_lookups kind=agencies. Pattern: ^[0-9]{12}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "area_ids": {
              "description": "Region ids from list_lookups kind=regions (TenderAreasIdString).",
              "items": {
                "type": "number"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "booklet_price_range": {
              "description": "ConditionaBookletRange band 0-6 as offered by the site's price filter.\n\nProvider reference: minimum 0; maximum 6.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 6,
                "min": 0
              }
            },
            "category": {
              "description": "TenderCategory: 0 all, 2 active/open, 3 enquiries stage, 4 offers stage, 5 opening stage, 6 awarded, 8 finished. Omitted = the site's default (all).\n\nProvider reference: allowed values [\"0\", \"2\", \"3\", \"4\", \"5\", \"6\", \"8\"].",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "0",
                  "2",
                  "3",
                  "4",
                  "5",
                  "6",
                  "8"
                ]
              }
            },
            "page": {
              "default": 1,
              "description": "1-based page number. The response reports the total and the runner's `next_cursor` carries the next page number.\n\nProvider reference: minimum 1; default 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            },
            "page_size": {
              "default": 12,
              "description": "Rows per page, 1-24 (the server caps every page at 24 rows).\n\nProvider reference: minimum 1; maximum 24; default 12.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 24,
                "min": 1
              }
            },
            "published_within": {
              "default": 1,
              "description": "PublishDateId: 1 any time (default here), 2 last two days, 3 last week, 4 last month, 5 last three months (the site's own UI default).\n\nProvider reference: allowed values [\"1\", \"2\", \"3\", \"4\", \"5\"]; default 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "1",
                  "2",
                  "3",
                  "4",
                  "5"
                ]
              }
            },
            "query": {
              "description": "Free-text keyword (MultipleSearch): matched against tender name, number, agency.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "reference_number": {
              "description": "Exact 10-12 digit reference number. Pattern: ^[0-9]{10,12}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "sort": {
              "default": "submission_date",
              "description": "Sort key.\n\nProvider reference: allowed values [\"submission_date\", \"offers_opening_date\"]; default \"submission_date\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "submission_date",
                  "offers_opening_date"
                ]
              }
            },
            "sort_direction": {
              "default": "desc",
              "description": "sort_direction\n\nProvider reference: allowed values [\"asc\", \"desc\"]; default \"desc\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "asc",
                  "desc"
                ]
              }
            },
            "sub_activity_id": {
              "description": "Sub-activity id from list_lookups kind=sub_activities.\n\nProvider reference: minimum 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            },
            "tender_number": {
              "description": "Agency tender number (TenderNumber).",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "tender_type_id": {
              "description": "Tender type id from list_lookups kind=tender_types (1 = منافسة عامة / public tender).\n\nProvider reference: minimum 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/tenders-etimad-sa.json POST /apis/v1/tenders-etimad-sa/public-procurement-tenders/search-tenders
openapi: 3.1.0
info:
  description: ''
  title: Etimad tenders (tenders.etimad.sa)
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    tenders-etimad-sa:
      description: ''
      title: Etimad tenders (tenders.etimad.sa)
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: e4378c8f3f44c31a165361a76bb0d33f38351ec10d3f814a92f451a06afc13e2
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/tenders-etimad-sa/public-procurement-tenders/get-tender
    - /apis/v1/tenders-etimad-sa/public-procurement-tenders/list-lookups
    - /apis/v1/tenders-etimad-sa/public-procurement-tenders/search-announcements
    - >-
      /apis/v1/tenders-etimad-sa/public-procurement-tenders/search-future-projects
    - >-
      /apis/v1/tenders-etimad-sa/public-procurement-tenders/search-prequalifications
    - /apis/v1/tenders-etimad-sa/public-procurement-tenders/search-tenders
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:4c2cef2700f3ce724a29d52f531fe812b61f565701cf249765abc16cc47f5bd7
    facts_hash: e4378c8f3f44c31a165361a76bb0d33f38351ec10d3f814a92f451a06afc13e2
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: tenders-etimad-sa
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/tenders-etimad-sa/public-procurement-tenders/search-tenders:
    post:
      tags:
        - Etimad tenders (tenders.etimad.sa)
      summary: Search tenders
      description: >-
        To find tenders by keyword/filters or to resolve a 12-digit reference
        number to its tender_id_string before calling get_tender.
      operationId: tenders-etimad-sa.public-procurement-tenders.search-tenders
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  page_size: 6
                  reference_number: '260639010130'
            schema:
              additionalProperties: true
              properties:
                activity_id:
                  description: |-
                    Main activity id from list_lookups kind=activities.

                    Provider reference: minimum 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
                agency_code:
                  description: >-
                    12-digit agency code from list_lookups kind=agencies.
                    Pattern: ^[0-9]{12}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                area_ids:
                  description: >-
                    Region ids from list_lookups kind=regions
                    (TenderAreasIdString).
                  items:
                    type: number
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                booklet_price_range:
                  description: >-
                    ConditionaBookletRange band 0-6 as offered by the site's
                    price filter.


                    Provider reference: minimum 0; maximum 6.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 6
                    min: 0
                category:
                  description: >-
                    TenderCategory: 0 all, 2 active/open, 3 enquiries stage, 4
                    offers stage, 5 opening stage, 6 awarded, 8 finished.
                    Omitted = the site's default (all).


                    Provider reference: allowed values ["0", "2", "3", "4", "5",
                    "6", "8"].
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - '0'
                      - '2'
                      - '3'
                      - '4'
                      - '5'
                      - '6'
                      - '8'
                page:
                  default: 1
                  description: >-
                    1-based page number. The response reports the total and the
                    runner's `next_cursor` carries the next page number.


                    Provider reference: minimum 1; default 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
                page_size:
                  default: 12
                  description: |-
                    Rows per page, 1-24 (the server caps every page at 24 rows).

                    Provider reference: minimum 1; maximum 24; default 12.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 24
                    min: 1
                published_within:
                  default: 1
                  description: >-
                    PublishDateId: 1 any time (default here), 2 last two days, 3
                    last week, 4 last month, 5 last three months (the site's own
                    UI default).


                    Provider reference: allowed values ["1", "2", "3", "4",
                    "5"]; default 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - '1'
                      - '2'
                      - '3'
                      - '4'
                      - '5'
                query:
                  description: >-
                    Free-text keyword (MultipleSearch): matched against tender
                    name, number, agency.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                reference_number:
                  description: 'Exact 10-12 digit reference number. Pattern: ^[0-9]{10,12}$.'
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                sort:
                  default: submission_date
                  description: >-
                    Sort key.


                    Provider reference: allowed values ["submission_date",
                    "offers_opening_date"]; default "submission_date".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - submission_date
                      - offers_opening_date
                sort_direction:
                  default: desc
                  description: >-
                    sort_direction


                    Provider reference: allowed values ["asc", "desc"]; default
                    "desc".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - asc
                      - desc
                sub_activity_id:
                  description: |-
                    Sub-activity id from list_lookups kind=sub_activities.

                    Provider reference: minimum 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
                tender_number:
                  description: Agency tender number (TenderNumber).
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                tender_type_id:
                  description: >-
                    Tender type id from list_lookups kind=tender_types (1 =
                    منافسة عامة / public tender).


                    Provider reference: minimum 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-04.
                  summary: Official provider example
                  value:
                    count: 1
                    observed_at_ms: 1791131839500
                    page: 1
                    page_size: 6
                    request_url: >-
                      https://tenders.etimad.sa/Tender/AllSupplierTendersForVisitorAsync?ReferenceNumber=260639010130&SortDirection=DESC&Sort=SubmitionDate&PageSize=6&IsSearch=true&PublishDateId=1&PageNumber=1
                    source_url: https://tenders.etimad.sa/Tender/AllTendersForVisitor
                    tenders:
                      - agency_name: جامعة الملك سعود بن عبد العزیز للعلوم الصحیة
                        booklet_price: 1000
                        branch_name: >-
                          ادارة التموين والعقود بجامعة الملك سعود بن عبدالعزيز
                          للعلوم الصحية بالرياض
                        buying_cost: 500
                        currency: SAR
                        financial_fees: 500
                        has_invitations: false
                        invitation_cost: 200
                        is_ugrp: false
                        last_enquiries_date: '2026-11-03T16:50:22.2690837'
                        last_enquiries_date_hijri: '1448-05-23'
                        last_offer_presentation_date: '2026-11-08T09:59:00'
                        last_offer_presentation_date_hijri: '1448-05-28'
                        offers_opening_date: '2026-11-09T10:00:00'
                        offers_opening_date_hijri: '1448-05-29'
                        reference_number: '260639010130'
                        remaining:
                          days: 34
                          hours: 14
                          minutes: 21
                        server_time: '2026-10-04T19:37:19.392702+03:00'
                        source_url: >-
                          https://tenders.etimad.sa/Tender/DetailsForVisitor?STenderId=yCXTwlfa9SRZE2o67WnycQ%3D%3D
                        submission_date: '2026-10-04T16:50:22.2693158'
                        tender_activity_id: 208
                        tender_activity_name: التشغيل والصيانة والنظافة للمنشآت - التشغيل والصيانة
                        tender_id: 1085706
                        tender_id_string: yCXTwlfa9SRZE2o67WnycQ==
                        tender_name: >-
                          عقد تشغيل وصيانة محطة معالجة مياه الصرف الصحي لمدة 5
                          سنوات لجامعة الملك سعود بن عبدالعزيز للعلوم الصحية
                          التابعة لوزراة الحرس الوطني بالمنطقة الوسطى والغربية
                          ذات الإعلان رقم كاساو/2026/009
                        tender_number: كاساو/2026/009
                        tender_status_id: 4
                        tender_type_id: 1
                        tender_type_name: منافسة عامة
                    total_count: 1
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search the public (visitor) tender list of Etimad, Saudi Arabia's
            government procurement portal: keyword, reference number, tender
            number, type, activity/sub-activity, agency, regions, status
            category, publish window, document-price band, sort and page.
            Returns the listing rows (ids, names, agency, type, status, fees in
            SAR, Gregorian and Hijri deadlines, remaining time, server clock)
            with the tender_id_string that get_tender needs. Data is Arabic-only
            as the site publishes it.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `count` | number | Rows in this page. |

            | `observed_at_ms` | number | Retrieval time, Unix epoch
            milliseconds. |

            | `page` | number |  |

            | `page_size` | number | Page size the server applied (it caps at
            24). |

            | `request_url` | string | The JSON listing request that produced
            this page. |

            | `source_url` | string | The site's visitor listing page for this
            surface. |

            | `tenders` | object[] |  |

            | `total_count` | number | Total matching rows reported by the site.
            |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.