{
  "openapi": "3.0.1",
  "info": {
    "title": "Nigeria Tenders Scraper: NOCOPO & State Procurement to Excel",
    "description": "Export Nigerian government procurement plans, tenders, awards and contracts from the Bureau of Public Procurement (NOCOPO) and state portals (Osun, Anambra, Ekiti, Plateau...) via official OCDS open data. No API key. Filter by MDA, keyword, stage, value, date. Excel, CSV, JSON.",
    "version": "1.0",
    "x-build-id": "5AruGc2OPCI3UDZPU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tenderfeed~nigeria-nocopo-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tenderfeed-nigeria-nocopo-tenders",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/tenderfeed~nigeria-nocopo-tenders/runs": {
      "post": {
        "operationId": "runs-sync-tenderfeed-nigeria-nocopo-tenders",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/tenderfeed~nigeria-nocopo-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-tenderfeed-nigeria-nocopo-tenders",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to look for in the title, description, OCID and buyer (MDA) name, e.g. [\"road\", \"borehole\", \"ICT\", \"drugs\"]. Empty = all records.",
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Match ANY or ALL keywords.",
            "default": "any"
          },
          "publicationIds": {
            "title": "Publication IDs",
            "type": "array",
            "description": "Optional OCP Data Registry publication ids for Nigeria, e.g. [\"64\"] = Bureau of Public Procurement (federal NOCOPO), [\"118\"] = Osun State, [\"127\"] = Anambra State. Empty = every Nigerian publication.",
            "items": {
              "type": "string"
            }
          },
          "publishers": {
            "title": "Publisher / state contains",
            "type": "array",
            "description": "Match the registry publisher title (case-insensitive contains), e.g. [\"BPP\"] for federal NOCOPO, [\"Osun\", \"Ekiti\", \"Anambra\", \"Plateau\"] for state portals. Empty = federal + all states.",
            "items": {
              "type": "string"
            }
          },
          "stages": {
            "title": "Stages",
            "type": "array",
            "description": "Contracting-process stages to keep. Default: all (procurement plans, tenders, awards, contracts). Nigerian feeds are mostly planning and award records.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "planning",
                "award",
                "contract"
              ]
            },
            "default": [
              "tender",
              "planning",
              "award",
              "contract"
            ]
          },
          "contractTypes": {
            "title": "Contract types",
            "type": "array",
            "description": "OCDS mainProcurementCategory. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "goods",
                "works",
                "services"
              ]
            }
          },
          "procurementMethods": {
            "title": "Procurement methods",
            "type": "array",
            "description": "Empty = all. Match against procurementMethod or procurementMethodDetails (contains), e.g. [\"open\", \"selective\", \"limited\", \"direct\"].",
            "items": {
              "type": "string"
            }
          },
          "buyerName": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Procuring entity / MDA name contains, e.g. \"Federal Ministry of Health\", \"FERMA\", \"University\"."
          },
          "cpvCodes": {
            "title": "Classification code prefixes",
            "type": "array",
            "description": "Match item classification ids by prefix (when the publisher provides them).",
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "YYYY-MM-DD or relative (\"90 days\", \"12 months\"). Default: last 365 days. Compared to the compiled-release date (or tender.datePublished). Nigerian feeds are refreshed about monthly, so short windows may be empty.",
            "default": "365 days"
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "YYYY-MM-DD. Default: no upper bound."
          },
          "onlyOpen": {
            "title": "Only open for offers",
            "type": "boolean",
            "description": "Keep only tender-stage notices whose status is active and whose deadline is today or later. Off by default (Nigerian OCDS feeds are published with a lag and are best used for market intelligence).",
            "default": false
          },
          "includeFrozen": {
            "title": "Include discontinued datasets",
            "type": "boolean",
            "description": "Include Nigerian state datasets the registry marks as frozen (no longer updated). On by default; they are skipped anyway when outside the date window.",
            "default": true
          },
          "maxFileMb": {
            "title": "Max download size per year file (MB)",
            "minimum": 1,
            "type": "integer",
            "description": "Skip a yearly JSONL.gz larger than this (unless listed in publicationIds). Nigerian files are small (BPP 2025 is ~3.4 MB).",
            "default": 100
          },
          "minValue": {
            "title": "Minimum value",
            "type": "number",
            "description": "Minimum estimated value (usually NGN). Records with no value are kept."
          },
          "maxValue": {
            "title": "Maximum value",
            "type": "number",
            "description": "Maximum estimated value (usually NGN). Records with no value are kept."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit. Default 50. The Actor scans matching year files, then returns the newest notices first.",
            "default": 50
          },
          "includeBuyerContacts": {
            "title": "Include buyer contacts",
            "type": "boolean",
            "description": "Adds contactPoint name/email/phone from the buyer or procuring entity when the notice publishes them (buyerContactName / Email / Phone). Off by default — many OCDS contact points are named individuals.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new tenders (monitoring mode)",
            "type": "boolean",
            "description": "Remember what earlier runs delivered and return (and charge for) only processes you have not received yet. Ideal for scheduled alerts.",
            "default": false
          },
          "monitoringId": {
            "title": "Monitoring ID",
            "type": "string",
            "description": "Name of the watch-list memory used by 'Only new'. Use a different ID per saved search/schedule."
          },
          "includeRawData": {
            "title": "Include raw OCDS compiled release",
            "type": "boolean",
            "description": "Adds the compiled release under `raw` (much bigger output). Person-level contactPoint fields are removed unless buyer contacts are on.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}