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

# Marketplace Item

> Collect public Facebook Marketplace item details by URL.

# Marketplace Item

Collect detailed listing information from one or more public Marketplace item URLs.

Each URL is processed independently and can produce at most one listing. If an item is unavailable or not found, the remaining URLs continue processing.

## Request Example

```json theme={"system"}
{
  "urls": [
    "https://www.facebook.com/marketplace/item/1656586118821988/"
  ]
}
```

## Use with MCP

| Interface      | Value                                                       |
| -------------- | ----------------------------------------------------------- |
| REST           | `POST /v1/facebook-marketplace/item`                        |
| Compact MCP    | `socq_execute` with `endpoint: "facebook-marketplace/item"` |
| Typed MCP      | `socq_facebook_marketplace_item`                            |
| Exact-tool URL | `https://api.socq.ai/mcp?tools=facebook_marketplace_item`   |
| CLI            | `socq facebook-marketplace item`                            |

Use the JSON request body above as the nested `input` object for `socq_execute`, or pass the same fields directly to the typed tool. Typed tools also accept `_wait_seconds`, `_result_limit`, and `_idempotency_key`.

<Info>
  A successful collection returns a `task_id`. Continue with `socq_get_task` until the task succeeds, then read normalized records from `results.items`.
</Info>

See [MCP quickstart](/integrations/mcp) for the complete submission and polling flow.

Billing is based on the number of item records successfully returned. URLs that do not produce a record are not included in the final charge.

## Completed Task Response

```json theme={"system"}
{
  "code": 200,
  "data": {
    "task_id": "A1B2C3D4E5F6G7H8",
    "status": "succeeded",
    "public_id": "facebook-marketplace/item",
    "result_count": 1,
    "credits_amount": 0.6,
    "results": {
      "limit": 50,
      "next_cursor": null,
      "has_more": false,
      "items": [{
        "id": "1656586118821988",
        "platform": "facebook-marketplace",
        "resource": "item",
        "type": "listing",
        "url": "https://www.facebook.com/marketplace/item/1656586118821988/",
        "name": "Mountain bike",
        "text": "Used bike in good condition.",
        "author": {"id": null, "username": null, "name": null, "url": null},
        "metrics": {},
        "media": [{"type": "image", "url": "https://example.com/item.jpg", "width": 960, "height": 720}],
        "created_at": "2026-05-15T16:57:39",
        "collected_at": "2026-07-18T10:30:00",
        "extra": {
          "input_url": "https://www.facebook.com/marketplace/item/1656586118821988/",
          "price": {"amount": 380, "currency": "USD", "formatted": "$380"},
          "location": {"text": "Austin, TX", "latitude": 30.4019, "longitude": -97.7618},
          "attributes": [{"attribute_name": "Condition", "value": "used_good", "label": "Used - Good"}],
          "is_live": true,
          "is_sold": false
        }
      }]
    }
  }
}
```


## OpenAPI

````yaml api-manual/agent-api/agent-api.json POST /v1/facebook-marketplace/item
openapi: 3.1.0
info:
  title: SocQ Agent API
  version: v1-063d1c96173a
  description: Asynchronous social data API generated from the SocQ Capability Registry.
servers:
  - url: https://api.socq.ai
security: []
paths:
  /v1/facebook-marketplace/item:
    post:
      tags:
        - facebook-marketplace
      summary: Facebook Marketplace Item API
      description: Facebook Marketplace Item API
      operationId: socq_facebook_marketplace_item
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              additionalProperties: false
              properties:
                urls:
                  type: array
                  items:
                    type: string
                    minLength: 1
                  minItems: 1
                  description: Public profile or content URLs.
              required:
                - urls
      responses:
        '200':
          description: Task accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSubmitResponse'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    AgentSubmitResponse:
      type: object
      properties:
        code:
          type: integer
          const: 200
        data:
          type: object
          properties:
            task_id:
              type: string
            status:
              type: string
            created_time:
              type:
                - string
                - 'null'
            idempotent_replay:
              type: boolean
          required:
            - task_id
            - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````