{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/open-data:gsa/list-contracts-get":{"get":{"operationId":"open_data_gsa_list_contracts_get","summary":"This endpoint returns contract history from FPDS for a specific vendor","description":"GET /api/contracts/","tags":["open-data"],"parameters":[{"name":"duns","in":"query","required":true,"description":"A 9-digit DUNS number that uniquely identifies a vendor (required).","schema":{"type":"string","description":"A 9-digit DUNS number that uniquely identifies a vendor (required)."}},{"name":"naics","in":"query","required":false,"description":"a six digit NAICS code used to filter by contracts with a certain NAICS","schema":{"type":"string","description":"a six digit NAICS code used to filter by contracts with a certain NAICS"}},{"name":"sort","in":"query","required":false,"description":"a field to sort on. Choices are date, status, agency, and amount","schema":{"type":"string","description":"a field to sort on. Choices are date, status, agency, and amount"}},{"name":"direction","in":"query","required":false,"description":"The sort direction of the results. Choices are asc or desc.","schema":{"type":"string","description":"The sort direction of the results. Choices are asc or desc."}},{"name":"page","in":"query","required":false,"description":"the page to start on. Results are paginated in increments of 100. Begins at page=1.","schema":{"type":"string","description":"the page to start on. Results are paginated in increments of 100. Begins at page=1."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:gsa/metadata-get":{"get":{"operationId":"open_data_gsa_metadata_get","summary":"This endpoint returns metadata for the most recent data loads of SAM and FPDS data","description":"GET /api/metadata/","tags":["open-data"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:gsa/list-naics-get":{"get":{"operationId":"open_data_gsa_list_naics_get","summary":"This endpoint lists all of the NAICS codes that are relevant to the OASIS family of vehicles","description":"GET /api/naics/","tags":["open-data"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:gsa/get-vendor-get":{"get":{"operationId":"open_data_gsa_get_vendor_get","summary":"This endpoint returns a single vendor by their 9 digit DUNS number","description":"GET /api/vendor/{duns}","tags":["open-data"],"parameters":[{"name":"duns","in":"query","required":true,"description":"a nine digit DUNS number that uniquely identifies the vendor (required)","schema":{"type":"string","description":"a nine digit DUNS number that uniquely identifies the vendor (required)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:gsa/list-vendors-get":{"get":{"operationId":"open_data_gsa_list_vendors_get","summary":"This endpoint returns a list of vendors filtered by a NAICS code","description":"GET /api/vendors/","tags":["open-data"],"parameters":[{"name":"naics","in":"query","required":true,"description":"a six digit NAICS code (required)","schema":{"type":"string","description":"a six digit NAICS code (required)"}},{"name":"setasides","in":"query","required":false,"description":"a comma delimited list of two character setaside codes to filter by. Ex. setasides=A6,A5 will filter by 8a and veteran owned business.","schema":{"type":"array","description":"a comma delimited list of two character setaside codes to filter by. Ex. setasides=A6,A5 will filter by 8a and veteran owned business."}},{"name":"vehicle","in":"query","required":false,"description":"Choices are either oasis or oasissb. Will filter vendors by their presence in either the OASIS unrestricted vehicle or the OASIS Small…","schema":{"type":"string","description":"Choices are either oasis or oasissb. Will filter vendors by their presence in either the OASIS unrestricted vehicle or the OASIS Small…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}