---
title: Lists Buyer Intent Segments
slug: lists-buyer-intent-segments
docTags: 
createdAt: 2025-10-10T21:08:35.627Z
---

{
  "id": "0t0HIEg2iZhqueso7MtSQ",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://sourceforge.net/rest/p/sfapi/v1/segments",
    "servers": [
      {
        "url": "https://sourceforge.net/rest/p/sfapi/v1/segments"
      }
    ],
    "name": "Lists Buyer Intent Segments",
    "description": "<p>Gets the segments defined for a Business Software Listing (BSL)</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "bsl_id",
          "type": "integer<int32>",
          "description": "Id of the BSL to query"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "bearerAuth",
          "name": "bearerAuth",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Success",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "data",
                "kind": "optional",
                "type": "array",
                "description": "",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "integer<int32>",
                    "description": "",
                    "example": 1
                  },
                  {
                    "name": "segment_name",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Business Segment"
                  },
                  {
                    "name": "company",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "[\"Google\",\"Microsoft\"]",
                    "itemType": "string",
                    "customType": "string[]",
                    "itemExample": "",
                    "itemDefault": ""
                  },
                  {
                    "name": "exclude_companies",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "",
                    "example": false
                  },
                  {
                    "name": "country",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "[\"United Kingdom\"]",
                    "itemType": "string",
                    "customType": "string[]",
                    "itemExample": "",
                    "itemDefault": ""
                  },
                  {
                    "name": "region",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "EURO"
                  },
                  {
                    "name": "categories",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "[\"IT Management\",\"Data Center Management\"]",
                    "itemType": "string",
                    "customType": "string[]",
                    "itemExample": "",
                    "itemDefault": ""
                  },
                  {
                    "name": "products",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "[\"Microsoft\",\"Google\"]",
                    "itemType": "string",
                    "customType": "string[]",
                    "itemExample": "",
                    "itemDefault": ""
                  },
                  {
                    "name": "company_size",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "[\"Medium (200 - 499 Employees)\"]",
                    "itemType": "string",
                    "customType": "string[]",
                    "itemExample": "",
                    "itemDefault": ""
                  },
                  {
                    "name": "industry",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "[\"Software > Business Intelligence\"]",
                    "itemType": "string",
                    "customType": "string[]",
                    "itemExample": "",
                    "itemDefault": ""
                  },
                  {
                    "name": "search_term",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Business"
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad Request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "Invalid request parameters"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "Permission denied"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Not Found",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "Segments not found"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "429",
        "description": "Too Many Requests",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "Rate limit exceeded"
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "eSPbDD9XtH18I8-VIIrjV",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url 'https://sourceforge.net/rest/p/sfapi/v1/segments?bsl_id=integer%3Cint32%3E' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "4iYGQfklIrEvwaklUn0rG",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://sourceforge.net/rest/p/sfapi/v1/segments?bsl_id=integer<int32>\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "8L1xFKo6hR8p5yvw8lSRu",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://sourceforge.net/rest/p/sfapi/v1/segments?bsl_id=integer<int32>\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "6FBGKx83g629pgR6CPY1L",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://sourceforge.net/rest/p/sfapi/v1/segments?bsl_id=integer<int32>\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "eSPbDD9XtH18I8-VIIrjV"
    },
    "results": {
      "languages": [
        {
          "id": "ZkD9xNHlJCzS952Nk8lok",
          "language": "200",
          "code": "// Success\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"segment_name\": \"Business Segment\",\n      \"company\": [\n        \"\"\n      ],\n      \"exclude_companies\": false,\n      \"country\": [\n        \"\"\n      ],\n      \"region\": \"EURO\",\n      \"categories\": [\n        \"\"\n      ],\n      \"products\": [\n        \"\"\n      ],\n      \"company_size\": [\n        \"\"\n      ],\n      \"industry\": [\n        \"\"\n      ],\n      \"search_term\": \"Business\"\n    }\n  ]\n}"
        },
        {
          "id": "Ejx5ElLB3IzK8mrxUvEhH",
          "language": "400",
          "code": "// Bad Request\n{\n  \"message\": \"Invalid request parameters\"\n}"
        },
        {
          "id": "pY8dsdmU4IACgRCypRBft",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"message\": \"Permission denied\"\n}"
        },
        {
          "id": "nAcZaUXZegT10TE31JjmR",
          "language": "404",
          "code": "// Not Found\n{\n  \"message\": \"Segments not found\"\n}"
        },
        {
          "id": "nRVwLYayMuBa7F7CJHYPh",
          "language": "429",
          "code": "// Too Many Requests\n{\n  \"message\": \"Rate limit exceeded\"\n}"
        }
      ],
      "selectedLanguageId": "ZkD9xNHlJCzS952Nk8lok"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}