Coder Social home page Coder Social logo

Comments (4)

marcreichel avatar marcreichel commented on July 18, 2024

Companies are not searchable sadly.
See https://api-docs.igdb.com/#search-1 for reference.

Only the following endpoints are searchable:

  • Characters
  • Collections
  • Games
  • People
  • Platforms
  • Themes

from igdb-laravel.

PiousVenom avatar PiousVenom commented on July 18, 2024

Okay, I've got another question that's similar. I'm trying to find the manufacturer of a platform:

$plats = Platform::search('Xbox')->with(['versions', 'versions.companies', 'versions.companies.company'])->get();

But none of that shows the main_manufacturer that is listed in the docs for Platform Version ([docs](endpoint: platform_versions)). Nor does the company show a name as the docs show ([endpoint: companies]https://api-docs.igdb.com/?java#company). Am I missing something with this?

Thanks for your help.

EDIT:
UGH! Sorry about putting the question here. I meant to reply to my other post, not necro this one.

from igdb-laravel.

marcreichel avatar marcreichel commented on July 18, 2024

@PiousVenom This seems to be a problem with the API itself. The data is not returned by the API either if you call it directly.

Try calling the following (via Postman for example) with your Client-ID and access token:

POST https://api.igdb.com/v4/platforms

fields *,versions.*,versions.companies.*,versions.companies.company.*,versions.main_manufacturer.*;
search "Xbox";

It seems you found some data inconsistencies between igdb.com and the API. Because https://www.igdb.com/platforms/xbox shows a manufacturer (even if without a "real" name because the name seems to be just the ID) but the API does not return a company which has manufacturer set to true or a main_manufacturer.

What is more the API only returns data if it is filled. So if there is no name for a company it is not returned at all.

Try reaching out to the guys at IGDB (via their Discord for example). They may sort you out and can check why the data is missing in the API. If I remember correctly they have some sort of sync job between the data on the website and the API. Maybe there is a problem and therefore the data is missing in the API.

from igdb-laravel.

PiousVenom avatar PiousVenom commented on July 18, 2024

Thanks. I've reached out on Discord. Wonder how long it's been an issue...

from igdb-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.