FACEBOOK API

Search Videos

Retrieve search videos from Facebook with a single API request.

GET/api/data/v1/facebook/search/videos
1credit base cost

Request parameters

Up to 1 credit

The keyword or phrase to search for

The opaque cursor returned by the previous response. Keep the query unchanged when paginating. Stop when cursor is null or has_more is false.

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/facebook/search/videos?query=ai+agents' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "query": "dogs",
  "videos": [
    {
      "id": "1972139093484105",
      "url": "https://www.facebook.com/reel/1972139093484105/",
      "title": "Extremely strong dogs 🦍",
      "description": "You shouldn't underestimate the strength of your large dogs 🦍#dog #bigdog #dogs #jozodogs #pet",
      "author": {
        "id": "100071029295578",
        "name": "Jozo Dogs",
        "url": "https://www.facebook.com/jozodogs"
      },
      "creation_time": null,
      "publish_time": null,
      "relative_time_text": "Sep 5 · 89K views",
      "duration_ms": null,
      "duration_text": "0:17",
      "thumbnail_url": "https://scontent-lax3-2.xx.fbcdn.net/v/t15.5256-10/797452339_4437994959794452_2679783842489764932_n.jpg?stp=c0.83.206.115a_dst-jpg_p206x206_tt6&_nc_cat=111&ccb=1-7&_nc_sid=e3495b&_nc_ohc=xtv7jwiwuNQQ7kNvwEbj3vl&_nc_oc=AdoHeYyJmQ9f55LFZDTEnu_GlPQudlYYT5BGRCkZQvvXVaxUz4VgCyShthnifB9vaMs&_nc_zt=23&_nc_ht=scontent-lax3-2.xx&_nc_gid=r5QqvHq8oDddJgzN0OeHGw&_nc_ss=79180&oh=00_AQPGWtsD2mkz5PUZN7u9xH2PnLYfdYpmq2TeyIpwXdC3tA&oe=6AC8E5A4"
    }
  ],
  "cursor": "eyJ...",
  "has_more": true,
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
Example data from the API specification. Run a request to retrieve current data.

Response shape

This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.

View JSON Schema +
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "query": {
      "type": "string"
    },
    "videos": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "author": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          },
          "creation_time": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "publish_time": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "relative_time_text": {
            "type": "string"
          },
          "duration_ms": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "duration_text": {
            "type": "string"
          },
          "thumbnail_url": {
            "type": "string"
          }
        }
      }
    },
    "cursor": {
      "type": "string"
    },
    "has_more": {
      "type": "boolean"
    },
    "credits_charged": {
      "type": "integer",
      "minimum": 0,
      "description": "FetchGoblin credits charged for this request."
    },
    "credits_remaining": {
      "type": "integer",
      "description": "Your FetchGoblin credit balance after this request."
    },
    "request_id": {
      "type": "string",
      "format": "uuid",
      "description": "FetchGoblin request identifier."
    }
  }
}